Class OrientTransaction
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
org.apache.tinkerpop.gremlin.orientdb.OrientTransaction
- All Implemented Interfaces:
AutoCloseable,org.apache.tinkerpop.gremlin.structure.Transaction
- Direct Known Subclasses:
OrientNoTransaction
public class OrientTransaction
extends org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
-
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
FieldsModifier and TypeFieldDescriptionprotected Consumer<org.apache.tinkerpop.gremlin.structure.Transaction>protected OrientGraphprotected Consumer<org.apache.tinkerpop.gremlin.structure.Transaction>Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction
NO_OP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransactionListener(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction.Status> listener) voidprotected ODatabaseDocumentdb()protected voiddoClose()protected voiddoCommit()protected voiddoOpen()protected voidprotected voidprotected voidprotected voidbooleanisOpen()org.apache.tinkerpop.gremlin.structure.Transactionorg.apache.tinkerpop.gremlin.structure.TransactiononReadWrite(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction> consumer) voidremoveTransactionListener(Consumer<org.apache.tinkerpop.gremlin.structure.Transaction.Status> listener) protected OTransactiontx()Methods inherited from class org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
begin, close, commit, createThreadedTx, open, readWrite, rollbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction
begin
-
Field Details
-
graph
-
readWriteConsumerInternal
-
closeConsumerInternal
-
transactionListeners
-
-
Constructor Details
-
OrientTransaction
-
-
Method Details
-
isOpen
public boolean isOpen() -
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() -
doOpen
protected void doOpen()- Specified by:
doOpenin classorg.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
-
doCommit
protected void doCommit() throws org.apache.tinkerpop.gremlin.structure.util.TransactionException- Specified by:
doCommitin classorg.apache.tinkerpop.gremlin.structure.util.AbstractTransaction- Throws:
org.apache.tinkerpop.gremlin.structure.util.TransactionException
-
doClose
protected void doClose()- Specified by:
doClosein classorg.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
-
doReadWrite
protected void doReadWrite()- Specified by:
doReadWritein classorg.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
-
fireOnCommit
protected void fireOnCommit()- Specified by:
fireOnCommitin classorg.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
-
fireOnRollback
protected void fireOnRollback()- Specified by:
fireOnRollbackin classorg.apache.tinkerpop.gremlin.structure.util.AbstractTransaction
-
doRollback
protected void doRollback() throws org.apache.tinkerpop.gremlin.structure.util.TransactionException- Specified by:
doRollbackin classorg.apache.tinkerpop.gremlin.structure.util.AbstractTransaction- Throws:
org.apache.tinkerpop.gremlin.structure.util.TransactionException
-
tx
-
db
-