public class LocalOrientDB extends Object
Constructor and Description |
---|
LocalOrientDB(File location)
Create a local Orient database.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Delete the database and recreate it.
|
void |
delete()
Delete the database.
|
DatabaseReference<com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx> |
openRead()
Get a database reference with read access.
NOTE: Getting the database reference locks a read lock on the database. |
DatabaseReference<com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx> |
openWrite()
Get a database reference with write access.
NOTE: Getting the database reference locks a write lock on the database. |
public LocalOrientDB(File location)
location
- the data base locationpublic DatabaseReference<com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx> openRead()
DatabaseReference.dispose()
must be called when the database
reference isn't needed any more.public DatabaseReference<com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx> openWrite()
DatabaseReference.dispose()
must be called when the database
reference isn't needed any more.public void clear()
public void delete()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a