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