graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientBaseGraph.java
public OrientBaseGraph reuse(final ODatabaseDocumentInternal iDatabase) {
    ODatabaseRecordThreadLocal.instance().set(iDatabase);
    this.url = iDatabase.getURL();
    database = iDatabase;

    makeActive();

    return this;
  }
public OrientBaseGraph reuse(final ODatabaseDocumentInternal iDatabase) {
    ODatabaseRecordThreadLocal.instance().set(iDatabase);
    this.url = iDatabase.getURL();
    database = iDatabase;

    makeActive();

    return this;
  }
public OrientBaseGraph reuse ( final ODatabaseDocumentInternal iDatabase ) { ODatabaseRecordThreadLocal . instance ( ) . set ( iDatabase ) ; this . url = iDatabase . getURL ( ) ; database = iDatabase ; makeActive ( ) ; return this ; }
Reuses the underlying database avoiding to create and open it every time.

@param iDatabase Underlying database object
Reuses the underlying database avoiding to create and open it every time .