public class OrientDBDao extends java.lang.Object implements ServerDAO
DAO.DAOException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CONFIG |
Constructor and Description |
---|
OrientDBDao() |
OrientDBDao(com.orientechnologies.orient.core.db.document.ODatabaseDocument db) |
Modifier and Type | Method and Description |
---|---|
int |
count(java.lang.String objectType) |
void |
delete(TransientObject... objects) |
boolean |
exists(TransientObject... objects) |
java.util.Collection<TransientObject> |
get(java.lang.String objectType,
java.lang.String... keys) |
java.security.KeyPair |
keys(java.security.KeyPair keys) |
java.util.List<TransientObject> |
query(Query query) |
void |
save(TransientObject... objects) |
public static final java.lang.String DEFAULT_CONFIG
public OrientDBDao()
public OrientDBDao(com.orientechnologies.orient.core.db.document.ODatabaseDocument db)
public java.util.List<TransientObject> query(Query query) throws DAO.DAOException
query
in interface DAO<TransientObject,TransientObject>
DAO.DAOException
public java.util.Collection<TransientObject> get(java.lang.String objectType, java.lang.String... keys) throws DAO.DAOException
get
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>