|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Persistence classK
- Object Keypublic interface HibernateDAO<T,K extends java.io.Serializable>
Method Summary | |
---|---|
boolean |
delete(K key)
Used by the base DAO classes but here for your modification. |
void |
evict(T obj)
Remove the given object from the Session cache. |
java.util.List<T> |
find(java.lang.String query)
Execute a query. |
java.util.List<T> |
find(java.lang.String query,
java.lang.Object[] obj,
org.hibernate.type.Type[] type)
Execute a query. |
java.util.List<T> |
find(java.lang.String query,
java.lang.Object obj,
org.hibernate.type.Type type)
Execute a query. |
java.util.List<T> |
findAll()
Return all objects related to the implementation of this DAO with no filter. |
java.util.List<T> |
findAll(org.hibernate.criterion.Order[] orderProperties)
Return all objects related to the implementation of this DAO with no filter. |
java.util.List<T> |
findAll(org.hibernate.criterion.Order[] orderProperties,
java.util.List<org.hibernate.criterion.Criterion> criteria)
Return all objects related to the implementation of this DAO with no filter. |
java.util.List<T> |
findFiltered(T filter)
Return all objects related to the implementation of this DAO filtered using properties of the provided instance. |
java.util.List<T> |
findFiltered(T filter,
int maxResults,
int page)
Return all objects related to the implementation of this DAO filtered using properties of the provided instance. |
java.util.List<T> |
findFiltered(T filter,
java.util.Map<java.lang.String,FilterMetadata> metadata)
Return all objects related to the implementation of this DAO filtered using properties of the provided instance. |
java.util.List<T> |
findFiltered(T filter,
java.util.Map<java.lang.String,FilterMetadata> metadata,
int maxResults,
int page)
Return all objects related to the implementation of this DAO filtered using properties of the provided instance. |
java.util.List<T> |
findFiltered(T filter,
org.hibernate.criterion.Order[] orderProperties)
Return all objects related to the implementation of this DAO filtered using properties of the provided instance. |
java.util.List<T> |
findFiltered(T filter,
org.hibernate.criterion.Order[] customOrder,
java.util.Map<java.lang.String,FilterMetadata> metadata,
int maxResults,
int page)
Return all objects related to the implementation of this DAO filtered using properties of the provided instance. |
java.util.List<T> |
findFiltered(T filter,
org.hibernate.criterion.Order[] customOrder,
java.util.Map<java.lang.String,FilterMetadata> metadata,
int maxResults,
int page,
java.util.List<org.hibernate.criterion.Criterion> additionalCriteria)
Return all objects related to the implementation of this DAO filtered using properties of the provided instance. |
T |
findFilteredFirst(T filter)
Return the first object related to the implementation of this DAO filtered using properties of the provided instance. |
T |
findFilteredFirst(T filter,
java.util.List<org.hibernate.criterion.Criterion> criteria)
Return the first object related to the implementation of this DAO filtered using properties of the provided instance. |
T |
findFilteredFirst(T filter,
org.hibernate.criterion.Order[] order)
Return the first object related to the implementation of this DAO filtered using properties of the provided instance. |
java.util.List<?> |
findFilteredProperties(T filter,
org.hibernate.criterion.Order[] customOrder,
java.util.Map<java.lang.String,FilterMetadata> metadata,
int maxResults,
int page,
java.util.List<org.hibernate.criterion.Criterion> additionalCriteria,
java.util.List<java.lang.String> properties)
Return properties from all objects related to the implementation of this DAO filtered using properties of the provided instance. |
T |
get(K key)
Load object matching the given key and return it. |
T |
load(K key)
Load object matching the given key and return it. |
T |
loadIfAvailable(K key)
Load object matching the given key and return it. |
T |
merge(T obj)
Copy the state of the given object onto the persistent object with the same identifier. |
void |
refresh(T obj)
Re-read the state of the given instance from the underlying database. |
K |
save(T obj)
Persist the given transient instance, first assigning a generated identifier. |
void |
saveOrUpdate(T obj)
Used by the base DAO classes but here for your modification Either save() or update() the given instance, depending upon the value of its identifier property. |
void |
update(T obj)
Used by the base DAO classes but here for your modification Update the persistent state associated with the given identifier. |
Method Detail |
---|
java.util.List<T> find(java.lang.String query)
query
- a query expressed in Hibernate's query language
java.util.List<T> findAll()
java.util.List<T> findAll(org.hibernate.criterion.Order[] orderProperties)
orderProperties
- desc
or asc
java.util.List<T> findAll(org.hibernate.criterion.Order[] orderProperties, java.util.List<org.hibernate.criterion.Criterion> criteria)
orderProperties
- desc
or asc
criteria
- Additional Criterion conditions
java.util.List<T> find(java.lang.String query, java.lang.Object obj, org.hibernate.type.Type type)
query
- a query expressed in Hibernate's query languageobj
- filter valuetype
- filter type
java.util.List<T> find(java.lang.String query, java.lang.Object[] obj, org.hibernate.type.Type[] type)
query
- a query expressed in Hibernate's query languageobj
- filter valuestype
- filter types
void refresh(T obj)
obj
- Objectvoid evict(T obj)
obj
- ObjectT merge(T obj)
obj
- a detached instance with state to be copied
java.util.List<T> findFiltered(T filter, int maxResults, int page)
filter
- an instance of the object with the properties you wish to filter on.maxResults
- maximum number of resultspage
- result page (first result is maxResults * page)
java.util.List<T> findFiltered(T filter, java.util.Map<java.lang.String,FilterMetadata> metadata, int maxResults, int page)
filter
- an instance of the object with the properties you wish to filter on.metadata
- filter metadatamaxResults
- maximum number of resultspage
- result page (first result is maxResults * page)
java.util.List<T> findFiltered(T filter, org.hibernate.criterion.Order[] customOrder, java.util.Map<java.lang.String,FilterMetadata> metadata, int maxResults, int page)
filter
- an instance of the object with the properties you wish to filter on.customOrder
- order criteriasmetadata
- filter metadatamaxResults
- maximum number of resultspage
- result page (first result is maxResults * page)
java.util.List<T> findFiltered(T filter, org.hibernate.criterion.Order[] customOrder, java.util.Map<java.lang.String,FilterMetadata> metadata, int maxResults, int page, java.util.List<org.hibernate.criterion.Criterion> additionalCriteria)
filter
- an instance of the object with the properties you wish to filter on.customOrder
- order criteriasmetadata
- filter metadatamaxResults
- maximum number of resultspage
- result page (first result is maxResults * page)additionalCriteria
- additional criteria
java.util.List<?> findFilteredProperties(T filter, org.hibernate.criterion.Order[] customOrder, java.util.Map<java.lang.String,FilterMetadata> metadata, int maxResults, int page, java.util.List<org.hibernate.criterion.Criterion> additionalCriteria, java.util.List<java.lang.String> properties)
filter
- an instance of the object with the properties you wish to filter on.customOrder
- order criteriasmetadata
- filter metadatamaxResults
- maximum number of resultspage
- result page (first result is maxResults * page)additionalCriteria
- additional criteriaproperties
- properties to be returned
java.util.List<T> findFiltered(T filter)
filter
- an instance of the object with the properties you wish to filter on.
java.util.List<T> findFiltered(T filter, org.hibernate.criterion.Order[] orderProperties)
filter
- an instance of the object with the properties you wish to filter on.orderProperties
- the name of the property used for ordering
java.util.List<T> findFiltered(T filter, java.util.Map<java.lang.String,FilterMetadata> metadata)
filter
- an instance of the object with the properties you wish to filter on.metadata
- filter metadata
T findFilteredFirst(T filter)
filter
- an instance of the object with the properties you wish to filter on.
T findFilteredFirst(T filter, org.hibernate.criterion.Order[] order)
filter
- an instance of the object with the properties you wish to filter on.
T findFilteredFirst(T filter, java.util.List<org.hibernate.criterion.Criterion> criteria)
filter
- an instance of the object with the properties you wish to filter on.criteria
- additional criterion
boolean delete(K key)
key
- key
T load(K key)
key
- serializable key
T loadIfAvailable(K key)
key
- serializable key
T get(K key)
key
- serializable key
void saveOrUpdate(T obj)
obj
- Objectvoid update(T obj)
obj
- a transient instance containing updated stateK save(T obj)
obj
- Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |