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
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
Blob createBlob(InputStream stream) throws IOException
IOException