|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- a type variablePK
- the primary key for that typepublic interface GenericManager<T,PK extends Serializable>
Generic Manager that talks to GenericDao to CRUD POJOs.
Extend this interface if you want typesafe (no casting necessary) managers for your domain objects.
Method Summary | |
---|---|
boolean |
exists(PK id)
Checks for existence of an object of type T using the id arg. |
T |
get(PK id)
Generic method to get an object based on class and identifier. |
List<T> |
getAll()
Generic method used to get all objects of a particular type. |
void |
remove(PK id)
Generic method to delete an object based on class and id |
T |
save(T object)
Generic method to save an object - handles both update and insert. |
Method Detail |
---|
List<T> getAll()
T get(PK id)
id
- the identifier (primary key) of the object to get
ObjectRetrievalFailureException
boolean exists(PK id)
id
- the identifier (primary key) of the object to get
T save(T object)
object
- the object to save
void remove(PK id)
id
- the identifier (primary key) of the object to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |