public interface DaoContext
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction() |
void |
commitTransaction() |
Blob |
createBlob(InputStream stream) |
int |
getTransactionNestCount() |
<T> T |
loadEntity(Class<T> clazz,
Serializable id) |
void |
mergeEntity(Object entity) |
void |
refreshEntity(Object entity) |
void |
rollbackTransaction() |
void |
updateEntity(Object entity) |
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
DaoExceptionBlob createBlob(InputStream stream) throws IOException
IOException