public static interface PersistenceService.NetworkDevicePersistenceService
extends org.opendaylight.persistence.store.ObjectStore<org.opendaylight.testapp.common.type.SerialNumber,org.opendaylight.testapp.common.model.NetworkDevice,org.opendaylight.testapp.common.model.NetworkDeviceFilter,org.opendaylight.testapp.common.model.NetworkDeviceSortKey>
| Modifier and Type | Method and Description |
|---|---|
void |
delete(org.opendaylight.persistence.util.common.type.Id<org.opendaylight.testapp.common.model.NetworkDevice,org.opendaylight.testapp.common.type.SerialNumber> id)
Deletes a network device.
|
List<org.opendaylight.testapp.common.model.NetworkDevice> |
find(org.opendaylight.testapp.common.model.NetworkDeviceFilter filter,
List<org.opendaylight.persistence.util.common.type.Sort<org.opendaylight.testapp.common.model.NetworkDeviceSortKey>> sort)
Finds network devices.
|
org.opendaylight.testapp.common.model.NetworkDevice |
get(org.opendaylight.persistence.util.common.type.Id<org.opendaylight.testapp.common.model.NetworkDevice,org.opendaylight.testapp.common.type.SerialNumber> id)
Loads a network device.
|
void |
store(org.opendaylight.testapp.common.model.NetworkDevice device)
Stores a network device.
|
void store(org.opendaylight.testapp.common.model.NetworkDevice device)
throws org.opendaylight.persistence.PersistenceException
device - device to storeorg.opendaylight.persistence.PersistenceException - if persistence errors occur while executing the operationorg.opendaylight.testapp.common.model.NetworkDevice get(org.opendaylight.persistence.util.common.type.Id<org.opendaylight.testapp.common.model.NetworkDevice,org.opendaylight.testapp.common.type.SerialNumber> id)
throws org.opendaylight.persistence.PersistenceException
id - device's idnull otherwiseorg.opendaylight.persistence.PersistenceException - if persistence errors occur while executing the operationList<org.opendaylight.testapp.common.model.NetworkDevice> find(org.opendaylight.testapp.common.model.NetworkDeviceFilter filter, List<org.opendaylight.persistence.util.common.type.Sort<org.opendaylight.testapp.common.model.NetworkDeviceSortKey>> sort) throws org.opendaylight.persistence.PersistenceException
find in interface org.opendaylight.persistence.store.ObjectStore<org.opendaylight.testapp.common.type.SerialNumber,org.opendaylight.testapp.common.model.NetworkDevice,org.opendaylight.testapp.common.model.NetworkDeviceFilter,org.opendaylight.testapp.common.model.NetworkDeviceSortKey>filter - filtersort - sort specificationorg.opendaylight.persistence.PersistenceException - if persistence errors occur while executing the operationvoid delete(org.opendaylight.persistence.util.common.type.Id<org.opendaylight.testapp.common.model.NetworkDevice,org.opendaylight.testapp.common.type.SerialNumber> id)
throws org.opendaylight.persistence.PersistenceException
id - device's idorg.opendaylight.persistence.PersistenceException - if persistence errors occur while executing the operationCopyright © 2015. All rights reserved.