|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dao
Data Access Object (Dao) interface. This is an interface used to tag our Dao classes and to provide common methods to all Daos.
Method Summary | |
---|---|
Object |
getObject(Class clazz,
Serializable id)
Generic method to get an object based on class and identifier. |
List |
getObjects(Class clazz)
Generic method used to get all objects of a particular type. |
void |
removeObject(Class clazz,
Serializable id)
Generic method to delete an object based on class and id |
void |
saveObject(Object o)
Generic method to save an object - handles both update and insert. |
Method Detail |
---|
List getObjects(Class clazz)
clazz
- the type of objects (a.k.a. while table) to get data from
Object getObject(Class clazz, Serializable id)
clazz
- model class to lookupid
- the identifier (primary key) of the class
ObjectRetrievalFailureException
void saveObject(Object o)
o
- the object to savevoid removeObject(Class clazz, 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 |