public class DatabaseHandle extends Object
Constructor and Description |
---|
DatabaseHandle(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx database)
Create a database handle
|
Modifier and Type | Method and Description |
---|---|
void |
addReference(Object object)
Add an object that references the database connection
|
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
getDatabase() |
void |
tryClose()
Try closing the database connection
|
public DatabaseHandle(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx database)
database
- the database connectionpublic void addReference(Object object)
object
- the object referencing the databasepublic void tryClose()
public com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx getDatabase()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a