public final class DAOManager extends java.lang.Object implements ServerDAO
Modifier and Type | Class and Description |
---|---|
static class |
DAOManager.DELETE_EVENT |
static class |
DAOManager.EXISTS_EVENT |
static class |
DAOManager.GET_EVENT<T extends TransientObject> |
static class |
DAOManager.QUERY_EVENT<T extends TransientObject> |
static class |
DAOManager.SAVE_EVENT |
DAO.DAOException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_DELETE |
static java.lang.String |
ACTION_EXISTS |
static java.lang.String |
ACTION_GET |
static java.lang.String |
ACTION_QUERY |
static java.lang.String |
ACTION_SAVE |
Constructor and Description |
---|
DAOManager(ServerDAO serverDao) |
Modifier and Type | Method and Description |
---|---|
int |
count(java.lang.String objectType) |
void |
delete(TransientObject... objects) |
boolean |
exists(TransientObject... objects) |
<O extends TransientObject> |
get(java.lang.String objectType,
java.lang.String... keys) |
java.security.KeyPair |
keys(java.security.KeyPair keys) |
<O extends TransientObject> |
query(Query query) |
void |
save(TransientObject... objects) |
public static final java.lang.String ACTION_QUERY
public static final java.lang.String ACTION_GET
public static final java.lang.String ACTION_SAVE
public static final java.lang.String ACTION_DELETE
public static final java.lang.String ACTION_EXISTS
public DAOManager(ServerDAO serverDao)
public <O extends TransientObject> java.util.Collection<O> get(java.lang.String objectType, java.lang.String... keys) throws DAO.DAOException
get
in interface DAO<TransientObject,TransientObject>
DAO.DAOException
public <O extends TransientObject> java.util.List<O> query(Query query) throws DAO.DAOException
query
in interface DAO<TransientObject,TransientObject>
DAO.DAOException
public void save(TransientObject... objects) throws DAO.DAOException
save
in interface DAO<TransientObject,TransientObject>
DAO.DAOException
public void delete(TransientObject... objects) throws DAO.DAOException
delete
in interface DAO<TransientObject,TransientObject>
DAO.DAOException
public boolean exists(TransientObject... objects)
exists
in interface DAO<TransientObject,TransientObject>
public int count(java.lang.String objectType)
count
in interface DAO<TransientObject,TransientObject>