|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.instance.orient.storage.DatabaseHandle
public class DatabaseHandle
Database handle that manages objects referencing the database object. It will release the connection when all those objects have been garbage collected.
Constructor Summary | |
---|---|
DatabaseHandle(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx database)
Create a database handle |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseHandle(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx database)
database
- the database connectionMethod Detail |
---|
public void addReference(Object object)
object
- the object referencing the databasepublic void tryClose()
public com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx getDatabase()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |