public class LocalStorageIBoxDb<T1 extends TransientObject,T2 extends TransientObject> extends java.lang.Object implements DAO<T1,T2>
Modifier and Type | Class and Description |
---|---|
static class |
LocalStorageIBoxDb.iBoxUtils |
static class |
LocalStorageIBoxDb.QueryArray |
DAO.DAOException
Constructor and Description |
---|
LocalStorageIBoxDb(Config config) |
LocalStorageIBoxDb(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
int |
count(java.lang.String type) |
void |
delete(T1... objects) |
boolean |
exists(TransientObject... objects) |
<O extends T2> |
get(java.lang.String type,
java.lang.String... keys) |
<B extends T2> |
query(Query query) |
void |
save(T1... objects) |
@Inject public LocalStorageIBoxDb(Config config)
public LocalStorageIBoxDb(java.lang.String path)
public void save(T1... objects) throws DAO.DAOException
save
in interface DAO<T1 extends TransientObject,T2 extends TransientObject>
DAO.DAOException
public void delete(T1... objects) throws DAO.DAOException
delete
in interface DAO<T1 extends TransientObject,T2 extends TransientObject>
DAO.DAOException
public boolean exists(TransientObject... objects)
exists
in interface DAO<T1 extends TransientObject,T2 extends TransientObject>
public int count(java.lang.String type)
count
in interface DAO<T1 extends TransientObject,T2 extends TransientObject>
public <B extends T2> java.util.List<B> query(Query query)
query
in interface DAO<T1 extends TransientObject,T2 extends TransientObject>
public <O extends T2> java.util.Collection<O> get(java.lang.String type, java.lang.String... keys) throws DAO.DAOException
get
in interface DAO<T1 extends TransientObject,T2 extends TransientObject>
DAO.DAOException