public interface UniversalManager
Modifier and Type | Method and Description |
---|---|
Object |
get(Class<?> clazz,
Serializable id)
Generic method to get an object based on class and identifier.
|
List<?> |
getAll(Class<?> clazz)
Generic method used to get a all objects of a particular type.
|
void |
remove(Class<?> clazz,
Serializable id)
Generic method to delete an object based on class and id
|
Object |
save(Object o)
Generic method to save an object.
|
List<?> getAll(Class<?> clazz)
clazz
- the type of objectsObject get(Class<?> clazz, Serializable id)
clazz
- model class to lookupid
- the identifier (primary key) of the classObjectRetrievalFailureException
Object save(Object o)
o
- the object to savevoid remove(Class<?> clazz, Serializable id)
clazz
- model class to lookupid
- the identifier of the classCopyright © 2015. All rights reserved.