public interface DaoContext
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addEntityListener(Class<T> clazz,
EntityListener<T> listener) |
void |
addTransactionListener(TransactionListener listener) |
void |
beginTransaction() |
void |
commitTransaction() |
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) |
<T> void addEntityListener(Class<T> clazz, EntityListener<T> listener)
<T> void removeEntityListener(Class<T> clazz, EntityListener<T> listener)
void addTransactionListener(TransactionListener listener)
void removeTransactionListener(TransactionListener listener)
void beginTransaction()
throws ConnectException,
DaoException
ConnectExceptionDaoExceptionvoid commitTransaction()
throws DaoException
DaoExceptionvoid rollbackTransaction()
throws DaoException
DaoExceptionint getTransactionNestCount()
<T> T loadEntity(Class<T> clazz, Serializable id) throws DaoException
DaoExceptionvoid mergeEntity(Object entity) throws DaoException
DaoExceptionvoid updateEntity(Object entity) throws DaoException
DaoExceptionvoid refreshEntity(Object entity) throws DaoException
DaoException