Class OrientGraphFactoryV2

java.lang.Object
com.tinkerpop.blueprints.impls.orient.OrientGraphFactoryV2

public class OrientGraphFactoryV2 extends Object
Basic implementation of an Orient Graph factory that supports new OrientDB v 3.0 capabilities
Author:
Luigi Dell'Aquila
  • Constructor Details

    • OrientGraphFactoryV2

      public OrientGraphFactoryV2(OrientDB orientDB, String dbName, String username, String password)
      Parameters:
      orientDB -
      dbName -
      username -
      password -
  • Method Details

    • close

      public void close()
      Closes all pooled databases and clear the pool.
    • drop

      public void drop()
      Drops current database if such one exists.
    • getTx

      public OrientGraph getTx()
      Gets transactional graph with the database from pool if pool is configured. Otherwise creates a graph with new db instance. The Graph instance inherits the factory's configuration.
      Returns:
      transactional graph
    • getNoTx

      public OrientGraphNoTx getNoTx()
      Gets non transactional graph with the database from pool if pool is configured. Otherwise creates a graph with new db instance. The Graph instance inherits the factory's configuration.
      Returns:
      non transactional graph
    • exists

      public boolean exists()
      Check if the database with path given to the factory exists.

      this api can be used only in embedded mode, and has no need of authentication.

      Returns:
      true if database is exists