Class OrientTransactionalGraph

All Implemented Interfaces:
OStorageRecoverListener, com.tinkerpop.blueprints.Graph, OrientExtendedGraph, com.tinkerpop.blueprints.IndexableGraph, com.tinkerpop.blueprints.KeyIndexableGraph, com.tinkerpop.blueprints.MetaGraph<ODatabaseDocumentTx>, com.tinkerpop.blueprints.TransactionalGraph
Direct Known Subclasses:
OrientGraph

public abstract class OrientTransactionalGraph extends OrientBaseGraph implements com.tinkerpop.blueprints.TransactionalGraph
A Blueprints implementation of the graph database OrientDB (http://orientdb.com)
Author:
Luca Garulli (l.garulli--(at)--orientdb.com) (http://orientdb.com)
  • Constructor Details

    • OrientTransactionalGraph

      protected OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase)
      Constructs a new object using an existent database instance.
      Parameters:
      iDatabase - Underlying database object to attach
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase, String iUserName, String iUserPasswd, OrientConfigurableGraph.Settings iConfiguration)
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase, boolean iAutoStartTx, String iUserName, String iUserPasswd)
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(OPartitionedDatabasePool pool)
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(OPartitionedDatabasePool pool, OrientConfigurableGraph.Settings configuration)
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(String url)
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(String url, boolean iAutoStartTx)
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(String url, String username, String password)
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(String url, String username, String password, boolean iAutoStartTx)
    • OrientTransactionalGraph

      protected OrientTransactionalGraph(org.apache.commons.configuration.Configuration configuration)
  • Method Details

    • isUseLog

      public boolean isUseLog()
    • setUseLog

      public OrientTransactionalGraph setUseLog(boolean useLog)
      Overrides:
      setUseLog in class OrientConfigurableGraph
    • setAutoStartTx

      public void setAutoStartTx(boolean autoStartTx)
      Description copied from class: OrientConfigurableGraph
      If enabled auto starts a new transaction right before the graph is changed. This affects only when a transaction hasn't been started. Default is true.
      Overrides:
      setAutoStartTx in class OrientConfigurableGraph
    • stopTransaction

      public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
      Closes a transaction.
      Specified by:
      stopTransaction in interface com.tinkerpop.blueprints.TransactionalGraph
      Parameters:
      conclusion - Can be SUCCESS for commit and FAILURE to rollback.
    • commit

      public void commit()
      Commits the current active transaction.
      Specified by:
      commit in interface com.tinkerpop.blueprints.TransactionalGraph
      Overrides:
      commit in class OrientBaseGraph
    • rollback

      public void rollback()
      Rollbacks the current active transaction. All the pending changes are rollbacked.
      Specified by:
      rollback in interface com.tinkerpop.blueprints.TransactionalGraph
      Overrides:
      rollback in class OrientBaseGraph
    • begin

      public void begin()
      Description copied from class: OrientBaseGraph
      begins current transaction (if the graph is transactional)
      Overrides:
      begin in class OrientBaseGraph
    • autoStartTransaction

      protected void autoStartTransaction()
      Overrides:
      autoStartTransaction in class OrientBaseGraph