|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UniversalDao
Data Access Object (DAO) interface.
GenericDao
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.Class<?> clazz,
java.io.Serializable id)
Generic method to get an object based on class and identifier. |
java.util.List<?> |
getAll(java.lang.Class<?> clazz)
Generic method used to get all objects of a particular type. |
void |
remove(java.lang.Class<?> clazz,
java.io.Serializable id)
Generic method to delete an object based on class and id |
java.lang.Object |
save(java.lang.Object o)
Generic method to save an object - handles both update and insert. |
Method Detail |
---|
java.util.List<?> getAll(java.lang.Class<?> clazz)
clazz
- the type of objects (a.k.a. while table) to get data from
java.lang.Object get(java.lang.Class<?> clazz, java.io.Serializable id)
clazz
- model class to lookupid
- the identifier (primary key) of the class
ObjectRetrievalFailureException
java.lang.Object save(java.lang.Object o)
o
- the object to save
void remove(java.lang.Class<?> clazz, java.io.Serializable id)
clazz
- model class to lookupid
- the identifier (primary key) of the class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |