|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenericDao<T,ID extends java.io.Serializable>
A generic data access object (DAO) based on the GenericDAO class found in the Hibernate distribution.
All CRUD (create, read, update, delete) basic data access operations are isolated in this interface and shared accross all DAO implementations. The current design is for a state-management oriented persistence layer (for example, there is no UDPATE statement function) that provides automatic transactional dirty checking of business objects in persistent state. Id: $Id: $
Method Summary | |
---|---|
void |
clear()
Affects every managed instance in the current persistence context! |
java.util.List<T> |
findAll()
List of all of the entities. |
java.util.List<T> |
findByExample(T exampleInstance,
java.lang.String... excludeProperty)
Find an entity by example. |
T |
findById(ID id,
boolean lock)
Find an entity object given the entity's ID. |
void |
flush()
Affects every managed instance in the current persistence context! |
T |
makePersistent(T entity)
Make an entity object persistent. |
void |
makeTransient(T entity)
Make a currently persistent entity object transient. |
Method Detail |
---|
T findById(ID id, boolean lock)
id
- lock
-
java.util.List<T> findAll()
java.util.List<T> findByExample(T exampleInstance, java.lang.String... excludeProperty)
exampleInstance
- excludeProperty
-
T makePersistent(T entity)
entity
- The entity object to persist
void makeTransient(T entity)
entity
- The entity object to make persistentvoid flush()
void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |