public class FileDaoContext extends Object implements DaoContext
Constructor and Description |
---|
FileDaoContext(String path) |
Modifier and Type | Method and Description |
---|---|
void |
beginTransaction() |
void |
commitTransaction() |
Blob |
createBlob(InputStream stream) |
int |
getTransactionNestCount() |
<T> Collection<T> |
list(Class<T> entityClass) |
String |
load(Class<?> entityClass,
String id) |
<T> T |
loadEntity(Class<T> clazz,
Serializable id) |
void |
mergeEntity(Object entity) |
void |
refreshEntity(Object entity) |
void |
rollbackTransaction() |
void |
store(Object value) |
void |
updateEntity(Object entity) |
public FileDaoContext(String path)
public void beginTransaction() throws ConnectException, DaoException
beginTransaction
in interface DaoContext
ConnectException
DaoException
public void commitTransaction() throws DaoException
commitTransaction
in interface DaoContext
DaoException
public void rollbackTransaction() throws DaoException
rollbackTransaction
in interface DaoContext
DaoException
public int getTransactionNestCount()
getTransactionNestCount
in interface DaoContext
public <T> T loadEntity(Class<T> clazz, Serializable id) throws DaoException
loadEntity
in interface DaoContext
DaoException
public void mergeEntity(Object entity) throws DaoException
mergeEntity
in interface DaoContext
DaoException
public void refreshEntity(Object entity) throws DaoException
refreshEntity
in interface DaoContext
DaoException
public void updateEntity(Object entity) throws DaoException
updateEntity
in interface DaoContext
DaoException
public Blob createBlob(InputStream stream) throws IOException
createBlob
in interface DaoContext
IOException
public String load(Class<?> entityClass, String id) throws IOException
IOException
public <T> Collection<T> list(Class<T> entityClass) throws IOException
IOException
public void store(Object value) throws IOException
IOException