public class HibernateDao extends Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
HibernateDao.DaoBlock |
protected static interface |
HibernateDao.DaoBlockR<R> |
Constructor and Description |
---|
HibernateDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
protected org.hibernate.Query |
createDeleteQuery(Class<?> clazz) |
protected org.hibernate.Query |
createDeleteQuery(Class<?> clazz,
String whereClause) |
protected void |
deleteEntities(Class<?> entityClass) |
HibernateDaoContext |
getContext() |
protected org.hibernate.Session |
getSession() |
protected static void |
logAdditionalInfo(RuntimeException exception) |
protected static void |
logWhenRollbacking(Exception e) |
protected void |
transact(HibernateDao.DaoBlock block) |
protected <T> T |
transact(HibernateDao.DaoBlockR<T> block) |
public HibernateDao(HibernateDaoContext context)
public HibernateDaoContext getContext()
protected org.hibernate.Session getSession() throws org.hibernate.HibernateException
org.hibernate.HibernateException
protected void deleteEntities(Class<?> entityClass) throws DaoException
DaoException
protected void transact(HibernateDao.DaoBlock block) throws DaoException
DaoException
protected <T> T transact(HibernateDao.DaoBlockR<T> block) throws DaoException
DaoException
protected org.hibernate.Query createDeleteQuery(Class<?> clazz) throws org.hibernate.HibernateException
org.hibernate.HibernateException
protected org.hibernate.Query createDeleteQuery(Class<?> clazz, String whereClause) throws org.hibernate.HibernateException
org.hibernate.HibernateException
protected static void logAdditionalInfo(RuntimeException exception)
protected static void logWhenRollbacking(Exception e)