|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Persistent type.ID - Primary Key type.public interface GenericDAO<T,ID extends Serializable>
Generic DAO interface.
| Method Summary | |
|---|---|
void |
delete(T entity)
Deletes an entity instance. |
void |
deleteById(ID id)
Deletes an entity instance. |
List<T> |
findAll()
Returns all entities of the persistent type. |
T |
findById(ID id,
boolean lock)
Finds an entity by ID. |
T |
save(T entity)
Saves an entity. |
T |
saveOrUpdate(T entity)
Saves or updates an entity, depending upon resolution of the unsaved-value checks. |
T |
update(T entity)
Updates an entity. |
| Methods inherited from interface net.sf.derquinsej.hib3.DAO |
|---|
clear, flush, sync |
| Method Detail |
|---|
T findById(ID id,
boolean lock)
id - IDlock - If the entity shall be locked.
null if it is not found.List<T> findAll()
T save(T entity)
entity - Entity to save.
T update(T entity)
entity - Entity to update.
T saveOrUpdate(T entity)
entity - Entity to persist.
void delete(T entity)
entity - Instance to delete.void deleteById(ID id)
id - Id of the instance to delete.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||