public static interface PersistenceService.UserPersistenceService extends org.opendaylight.persistence.store.ObjectStore<org.opendaylight.testapp.common.type.Username,org.opendaylight.testapp.common.model.User,org.opendaylight.testapp.common.model.UserFilter,Void>
| Modifier and Type | Method and Description |
|---|---|
void |
delete(org.opendaylight.persistence.util.common.type.Id<org.opendaylight.testapp.common.model.User,org.opendaylight.testapp.common.type.Username> id)
Deletes a user.
|
List<org.opendaylight.testapp.common.model.User> |
find(org.opendaylight.testapp.common.model.UserFilter filter)
Find users.
|
org.opendaylight.testapp.common.model.User |
get(org.opendaylight.persistence.util.common.type.Id<org.opendaylight.testapp.common.model.User,org.opendaylight.testapp.common.type.Username> id)
Loads a user.
|
void |
store(org.opendaylight.testapp.common.model.User user)
Stores a user.
|
void store(org.opendaylight.testapp.common.model.User user)
throws org.opendaylight.persistence.PersistenceException
user - user to storeorg.opendaylight.persistence.PersistenceException - if persistence errors occur while executing the operationorg.opendaylight.testapp.common.model.User get(org.opendaylight.persistence.util.common.type.Id<org.opendaylight.testapp.common.model.User,org.opendaylight.testapp.common.type.Username> id)
throws org.opendaylight.persistence.PersistenceException
id - user's idnull otherwiseorg.opendaylight.persistence.PersistenceException - if persistence errors occur while executing the operationList<org.opendaylight.testapp.common.model.User> find(org.opendaylight.testapp.common.model.UserFilter filter) throws org.opendaylight.persistence.PersistenceException
filter - filterorg.opendaylight.persistence.PersistenceException - if persistence errors occur while executing the operationvoid delete(org.opendaylight.persistence.util.common.type.Id<org.opendaylight.testapp.common.model.User,org.opendaylight.testapp.common.type.Username> id)
throws org.opendaylight.persistence.PersistenceException
id - user's idorg.opendaylight.persistence.PersistenceException - if persistence errors occur while executing the operationCopyright © 2015. All rights reserved.