net.sf.easyweb4j.repository.orm.hibernate
Class HibernateRepository<T>
java.lang.Object
net.sf.easyweb4j.repository.orm.hibernate.HibernateRepository<T>
- All Implemented Interfaces:
- Serializable, ORMRepository<T>, Repository<T>
public abstract class HibernateRepository<T>
- extends Object
- implements Serializable, ORMRepository<T>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateRepository
public HibernateRepository()
getCurrentSession
protected org.hibernate.Session getCurrentSession()
find
public T find(Serializable id)
- Specified by:
find
in interface ORMRepository<T>
find
public T find(Serializable id,
boolean lock)
- Specified by:
find
in interface ORMRepository<T>
findAll
public List<T> findAll()
- Specified by:
findAll
in interface ORMRepository<T>
find
protected List<T> find(org.hibernate.criterion.DetachedCriteria criteria)
findPage
protected List<T> findPage(org.hibernate.Query query,
int page,
int pageSize)
findPage
protected List<T> findPage(org.hibernate.criterion.DetachedCriteria criteria,
int page,
int pageSize)
persist
public void persist(T model)
- Specified by:
persist
in interface ORMRepository<T>
merge
public T merge(T model)
- Specified by:
merge
in interface ORMRepository<T>
remove
public void remove(T model)
- Specified by:
remove
in interface ORMRepository<T>
merge
public List<T> merge(T... models)
- Specified by:
merge
in interface ORMRepository<T>
persist
public void persist(T... models)
- Specified by:
persist
in interface ORMRepository<T>
remove
public void remove(T... models)
- Specified by:
remove
in interface ORMRepository<T>
persist
public void persist(Collection<T> models)
- Specified by:
persist
in interface ORMRepository<T>
merge
public List<T> merge(Collection<T> models)
- Specified by:
merge
in interface ORMRepository<T>
remove
public void remove(Collection<T> models)
- Specified by:
remove
in interface ORMRepository<T>
Copyright © 2009-2010 Chandra Sekar S. All Rights Reserved.