|
Anyframe Core | |||||||||
| 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 GenericDao<T,PK extends Serializable>
Generic DAO (Data Access Object) with common methods to CRUD POJOs.
Extend this interface if you want typesafe (no casting necessary) DAO's 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. |
Page |
getList(SearchVO searchVO)
Generic method to get object list based on search condition and search keyword |
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 |
|---|
T get(PK id)
throws Exception
id - the identifier (primary key) of the
object to get
ExceptionObjectRetrievalFailureException
boolean exists(PK id)
throws Exception
id - the id of the entity
Exception
T save(T object)
throws Exception
object - the object to save
Exception
void remove(PK id)
throws Exception
id - the identifier (primary key) of the
object to remove
Exception
Page getList(SearchVO searchVO)
throws Exception
searchVO - search condition and search keyword
Exception
|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||