Class OrientStandardTransaction

java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
org.apache.tinkerpop.gremlin.orientdb.OrientStandardTransaction
All Implemented Interfaces:
AutoCloseable, org.apache.tinkerpop.gremlin.structure.Transaction

public class OrientStandardTransaction extends org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
Created by Enrico Risa on 30/08/2017.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction

    org.apache.tinkerpop.gremlin.structure.Transaction.CLOSE_BEHAVIOR, org.apache.tinkerpop.gremlin.structure.Transaction.Exceptions, org.apache.tinkerpop.gremlin.structure.Transaction.READ_WRITE_BEHAVIOR, org.apache.tinkerpop.gremlin.structure.Transaction.Status, org.apache.tinkerpop.gremlin.structure.Transaction.Symbols
  • Field Summary

    Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction

    NO_OP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTransactionListener(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction.Status> listener)
     
    void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    boolean
     
    org.apache.tinkerpop.gremlin.structure.Transaction
    onClose(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction> consumer)
     
    org.apache.tinkerpop.gremlin.structure.Transaction
    onReadWrite(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction> consumer)
     
    void
    removeTransactionListener(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction.Status> listener)
     

    Methods inherited from class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction

    begin, close, commit, createThreadedTx, open, readWrite, rollback

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction

    begin
  • Constructor Details

  • Method Details

    • doOpen

      protected void doOpen()
      Specified by:
      doOpen in class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
    • doCommit

      protected void doCommit() throws org.apache.tinkerpop.gremlin.structure.util.TransactionException
      Specified by:
      doCommit in class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
      Throws:
      org.apache.tinkerpop.gremlin.structure.util.TransactionException
    • doRollback

      protected void doRollback() throws org.apache.tinkerpop.gremlin.structure.util.TransactionException
      Specified by:
      doRollback in class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
      Throws:
      org.apache.tinkerpop.gremlin.structure.util.TransactionException
    • fireOnCommit

      protected void fireOnCommit()
      Specified by:
      fireOnCommit in class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
    • fireOnRollback

      protected void fireOnRollback()
      Specified by:
      fireOnRollback in class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
    • doReadWrite

      protected void doReadWrite()
      Specified by:
      doReadWrite in class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
    • doClose

      protected void doClose()
      Specified by:
      doClose in class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
    • onReadWrite

      public org.apache.tinkerpop.gremlin.structure.Transaction onReadWrite(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction> consumer)
    • onClose

      public org.apache.tinkerpop.gremlin.structure.Transaction onClose(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction> consumer)
    • addTransactionListener

      public void addTransactionListener(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction.Status> listener)
    • removeTransactionListener

      public void removeTransactionListener(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction.Status> listener)
    • clearTransactionListeners

      public void clearTransactionListeners()
    • isOpen

      public boolean isOpen()