Package com.orientechnologies.orient.core.db

Examples of com.orientechnologies.orient.core.db.ODatabaseThreadLocalFactory


    Assert.fail("Database Should not be set in Current Thread");
  }

  @Test(dependsOnMethods = "testNoFactory")
  public void testFactory() {
    Orient.instance().registerThreadDatabaseFactory(new ODatabaseThreadLocalFactory() {

      @Override
      public ODatabaseRecordInternal getThreadDatabase() {
        return ODatabaseDocumentPool.global().acquire(url, "admin", "admin");
      }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.db.ODatabaseThreadLocalFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.