|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Manager
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 a 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. |
void |
setDao(Dao dao)
Expose the setDao method for testing purposes |
Method Detail |
---|
void setDao(Dao dao)
dao
- List getObjects(Class clazz)
clazz
- the type of objects
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 of the class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |