core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentAbstract.java
@Override
  public ODatabaseDocumentAbstract activateOnCurrentThread() {
    final ODatabaseRecordThreadLocal tl = ODatabaseRecordThreadLocal.instance();
    if (tl != null)
      tl.set(this);
    return this;
  }
@Override
  public ODatabaseDocumentAbstract activateOnCurrentThread() {
    final ODatabaseRecordThreadLocal tl = ODatabaseRecordThreadLocal.instance();
    if (tl != null)
      tl.set(this);
    return this;
  }
@ Override public ODatabaseDocumentAbstract activateOnCurrentThread ( ) { final ODatabaseRecordThreadLocal tl = ODatabaseRecordThreadLocal . instance ( ) ; if ( tl != null ) tl . set ( this ) ; return this ; }
Activates current database instance on current thread.
Activates current database instance on current thread .