|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- Type of the entity's keyE
- Type of the entitypublic interface IGenericDAO<K,E>
Class GenericDAO
Method Summary | |
---|---|
void |
create(E entity)
Create an entity |
void |
detach(E entity)
Remove the given entity from the persistence context, causing a managed entity to become detached. |
List<E> |
findAll()
Find all entities |
E |
findById(K key)
Find an entity by its Id |
void |
flush()
Synchronize the persistence context to the underlying database. |
void |
remove(K key)
Remove an entity |
void |
update(E entity)
Update an entity |
Method Detail |
---|
void create(E entity)
entity
- The entity to createvoid update(E entity)
entity
- An entity that contains new valuesvoid remove(K key)
key
- The key of the entity to removeE findById(K key)
key
- The entity key
List<E> findAll()
void flush()
void detach(E entity)
entity
- the entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |