Type
- KeyType
- public abstract class HibernateDAO<Type extends AbstractHibernateObject,KeyType extends Serializable> extends Object
Constructor and Description |
---|
HibernateDAO() |
Modifier and Type | Method and Description |
---|---|
org.hibernate.Query |
createQuery(String queryString)
Get an HQL Query from the string you pass
|
List<Type> |
get(org.hibernate.criterion.Criterion... criterion)
A convenience menthod to run the given Criteria.
|
Type |
get(KeyType key) |
List<Type> |
get(org.hibernate.criterion.Order order,
org.hibernate.criterion.Criterion... criterion)
A convenience menthod to run the given Criteria.
|
protected Class<Type> |
getPersistentClass() |
Type |
getUnique(org.hibernate.criterion.Criterion... criterion)
A convenience menthod to run the given Criteria and return a unique
result.
|
List<Type> |
list()
Get a list of all hibernate objects of the given type.
|
Type |
load(KeyType key) |
public List<Type> get(org.hibernate.criterion.Criterion... criterion)
criterion
- public List<Type> get(org.hibernate.criterion.Order order, org.hibernate.criterion.Criterion... criterion)
order
- criterion
- public Type getUnique(org.hibernate.criterion.Criterion... criterion) throws org.hibernate.HibernateException
criterion
- org.hibernate.HibernateException
public List<Type> list()
public org.hibernate.Query createQuery(String queryString)
queryString
- the HQL queryCopyright © 2021. All rights reserved.