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 .