Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.orient.storage
Interface DatabaseReference<T extends com.orientechnologies.orient.core.db.ODatabase>

Type Parameters:
T - the concrete type of the reference

public interface DatabaseReference<T extends com.orientechnologies.orient.core.db.ODatabase>

Reference to an OrientDB database

Author:
Simon Templer

Method Summary
 void dispose()
          Dispose the reference when the database object isn't used any more.
 void dispose(boolean closeConnection)
          Dispose the reference when the database object isn't used any more.
 T getDatabase()
          Get the database reference.
 

Method Detail

getDatabase

T getDatabase()
Get the database reference.

Returns:
the database reference

dispose

void dispose()
Dispose the reference when the database object isn't used any more. The underlying connection is closed.
This should be called in a finally block after using the database reference.


dispose

void dispose(boolean closeConnection)
Dispose the reference when the database object isn't used any more. This should be called in a finally block after using the database reference.

Parameters:
closeConnection - if the underlying connection shall be closed, only use false here if you are providing other means of closing the database

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d