public class HibernateDaoContext extends Object implements DaoContext
| Constructor and Description |
|---|
HibernateDaoContext() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEntityClass(List<Class<?>> additionalEntities) |
<T> void |
addEntityListener(Class<T> clazz,
EntityListener<T> listener) |
void |
addTransactionListener(TransactionListener listener) |
void |
beginTransaction() |
void |
commitTransaction() |
void |
fireUpdate(Serializable id,
Object entity,
String[] modifiedFields) |
long |
generateSequence() |
org.hibernate.Session |
getSession() |
int |
getTransactionNestCount() |
<T> T |
loadEntity(Class<T> clazz,
Serializable id) |
void |
mergeEntity(Object entity) |
void |
refreshEntity(Object entity) |
<T> void |
removeEntityListener(Class<T> clazz,
EntityListener<T> listener) |
void |
removeTransactionListener(TransactionListener listener) |
void |
rollbackTransaction() |
void |
updateEntity(Object entity) |
public <T> void addEntityListener(Class<T> clazz, EntityListener<T> listener)
addEntityListener in interface DaoContextpublic <T> void removeEntityListener(Class<T> clazz, EntityListener<T> listener)
removeEntityListener in interface DaoContextpublic void fireUpdate(Serializable id, Object entity, String[] modifiedFields)
public void addTransactionListener(TransactionListener listener)
addTransactionListener in interface DaoContextpublic void removeTransactionListener(TransactionListener listener)
removeTransactionListener in interface DaoContextpublic void beginTransaction()
throws ConnectException,
DaoException
beginTransaction in interface DaoContextConnectExceptionDaoExceptionpublic void commitTransaction()
throws DaoException
commitTransaction in interface DaoContextDaoExceptionpublic void rollbackTransaction()
throws DaoException
rollbackTransaction in interface DaoContextDaoExceptionpublic int getTransactionNestCount()
getTransactionNestCount in interface DaoContextpublic <T> T loadEntity(Class<T> clazz, Serializable id) throws DaoException
loadEntity in interface DaoContextDaoExceptionpublic void mergeEntity(Object entity) throws DaoException
mergeEntity in interface DaoContextDaoExceptionpublic void refreshEntity(Object entity) throws DaoException
refreshEntity in interface DaoContextDaoExceptionpublic void updateEntity(Object entity) throws DaoException
updateEntity in interface DaoContextDaoExceptionpublic long generateSequence()
throws DaoException
DaoExceptionpublic org.hibernate.Session getSession()
public static void addEntityClass(List<Class<?>> additionalEntities) throws DaoException
DaoException