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
ConnectException
DaoException
void commitTransaction() throws DaoException
DaoException
void rollbackTransaction() throws DaoException
DaoException
int getTransactionNestCount()
<T> T loadEntity(Class<T> clazz, Serializable id) throws DaoException
DaoException
void mergeEntity(Object entity) throws DaoException
DaoException
void updateEntity(Object entity) throws DaoException
DaoException
void refreshEntity(Object entity) throws DaoException
DaoException