public interface UniversalDao
GenericDao| 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 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 - handles both update and insert.
|
List<?> getAll(Class<?> clazz)
clazz - the type of objects (a.k.a. while table) to get data fromObject get(Class<?> clazz, Serializable id)
clazz - model class to lookupid - the identifier (primary key) of the classObjectRetrievalFailureExceptionObject save(Object o)
o - the object to savevoid remove(Class<?> clazz, Serializable id)
clazz - model class to lookupid - the identifier (primary key) of the classCopyright © 2015. All rights reserved.