Class OrientTransactionalGraph
java.lang.Object
com.tinkerpop.blueprints.impls.orient.OrientConfigurableGraph
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph
com.tinkerpop.blueprints.impls.orient.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)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tinkerpop.blueprints.impls.orient.OrientConfigurableGraph
OrientConfigurableGraph.Settings, OrientConfigurableGraph.THREAD_MODENested classes/interfaces inherited from interface com.tinkerpop.blueprints.TransactionalGraph
com.tinkerpop.blueprints.TransactionalGraph.Conclusion -
Field Summary
Fields inherited from class com.tinkerpop.blueprints.impls.orient.OrientBaseGraph
ADMIN, CLASS_PREFIX, CLUSTER_PREFIX, CONNECTION_IN, CONNECTION_OUT, databaseFields inherited from class com.tinkerpop.blueprints.impls.orient.OrientConfigurableGraph
AUTO_SCALE_EDGE_TYPE_DEFAULT, AUTO_START_TX_DEFAULT, EDGE_CONTAINER_EMBEDDED_2_TREE_THRESHOLD_DEFAULT, EDGE_CONTAINER_TREE_2_EMBEDDED_THRESHOLD_DEFAULT, KEEP_IN_MEMORY_REFERENCES_DEFAULT, REQUIRE_TRANSACTION_DEFAULT, SAVE_ORIGINAL_IDS_DEFAULT, settings, STANDARD_ELEMENT_CONSTRAINTS_DEFAULT, STANDARD_EXCEPTIONS, STANDARD_MAX_RETRIES, STANDARD_TX_REQUIRE_FOR_SQL_OPERATIONS, THREAD_MODE_DEFAULT, USE_CLASS_FOR_EDGE_LABEL_DEFAULT, USE_CLASS_FOR_VERTEX_LABEL_DEFAULT, USE_LIGHTWEIGHT_EDGES_DEFAULT, USE_LOG_DEFAULT, USE_VERTEX_FIELDS_FOR_EDGE_LABELS, WARN_ON_FORCE_CLOSING_TX_DEFAULT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a new object using an existent database instance.protectedOrientTransactionalGraph(ODatabaseDocumentInternal iDatabase, boolean iAutoStartTx, String iUserName, String iUserPasswd) protectedOrientTransactionalGraph(ODatabaseDocumentInternal iDatabase, String iUserName, String iUserPasswd, OrientConfigurableGraph.Settings iConfiguration) protectedprotectedOrientTransactionalGraph(OPartitionedDatabasePool pool, OrientConfigurableGraph.Settings configuration) protectedprotectedOrientTransactionalGraph(String url, boolean iAutoStartTx) protectedOrientTransactionalGraph(String url, String username, String password) protectedOrientTransactionalGraph(String url, String username, String password, boolean iAutoStartTx) protectedOrientTransactionalGraph(org.apache.commons.configuration.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidbegin()begins current transaction (if the graph is transactional)voidcommit()Commits the current active transaction.booleanisUseLog()voidrollback()Rollbacks the current active transaction.voidsetAutoStartTx(boolean autoStartTx) If enabled auto starts a new transaction right before the graph is changed.setUseLog(boolean useLog) voidstopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion) Closes a transaction.Methods inherited from class com.tinkerpop.blueprints.impls.orient.OrientBaseGraph
addEdge, addTemporaryVertex, addVertex, addVertex, addVertex, attach, clearInitStack, command, configure, convertKey, convertKeys, countEdges, countEdges, countVertices, countVertices, createEdgeType, createEdgeType, createEdgeType, createEdgeType, createEdgeType, createEdgeType, createIndex, createKeyIndex, createVertexType, createVertexType, createVertexType, createVertexType, createVertexType, createVertexType, declareIntent, decodeClassName, deleteEdgeIfAny, detach, drop, dropEdgeType, dropIndex, dropKeyIndex, dropVertexType, encodeClassName, encodeClassNames, executeOutsideTx, getActiveGraph, getActiveIntent, getClassName, getConflictStrategy, getDatabase, getDocument, getEdge, getEdgeBaseType, getEdgeClassNames, getEdgeInstance, getEdgeInstance, getEdgeInstance, getEdges, getEdges, getEdges, getEdgesOfClass, getEdgesOfClass, getEdgeType, getElement, getIndex, getIndexedKeys, getIndexedKeys, getIndices, getProperties, getProperty, getRawGraph, getVertex, getVertexBaseType, getVertexByKey, getVertexInstance, getVertexInstance, getVertexType, getVertices, getVertices, getVertices, getVertices, getVerticesOfClass, getVerticesOfClass, isClosed, makeActive, onStorageRecover, query, removeEdge, removeEdges, removeVertex, reuse, saveIndexConfiguration, setConflictStrategy, setConflictStrategy, setCurrentGraphInThreadLocal, setProperty, setUseLightweightEdges, shutdown, shutdown, shutdown, toString, traverseMethods inherited from class com.tinkerpop.blueprints.impls.orient.OrientConfigurableGraph
getConnectionStrategy, getEdgeContainerEmbedded2TreeThreshold, getEdgeContainerTree2EmbeddedThreshold, getMaxRetries, getThreadMode, init, isAutoScaleEdgeType, isAutoStartTx, isKeepInMemoryReferences, isRequireTransaction, isSaveOriginalIds, isStandardElementConstraints, isStandardExceptions, isTxRequiredForSQLGraphOperations, isUseClassForEdgeLabel, isUseClassForVertexLabel, isUseLightweightEdges, isUseVertexFieldsForEdgeLabels, isWarnOnForceClosingTx, setAutoScaleEdgeType, setConnectionStrategy, setEdgeContainerEmbedded2TreeThreshold, setEdgeContainerTree2EmbeddedThreshold, setKeepInMemoryReferences, setMaxRetries, setRequireTransaction, setSaveOriginalIds, setStandardElementConstraints, setStandardExceptions, setThreadMode, setTxRequiredForSQLGraphOperations, setUseClassForEdgeLabel, setUseClassForVertexLabel, setUseVertexFieldsForEdgeLabels, setWarnOnForceClosingTxMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tinkerpop.blueprints.Graph
addEdge, addVertex, getEdge, getEdges, getEdges, getFeatures, getVertex, getVertices, getVertices, removeEdge, removeVertex, shutdown
-
Constructor Details
-
OrientTransactionalGraph
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
-
OrientTransactionalGraph
protected OrientTransactionalGraph(OPartitionedDatabasePool pool, OrientConfigurableGraph.Settings configuration) -
OrientTransactionalGraph
-
OrientTransactionalGraph
-
OrientTransactionalGraph
-
OrientTransactionalGraph
-
OrientTransactionalGraph
protected OrientTransactionalGraph(org.apache.commons.configuration.Configuration configuration)
-
-
Method Details
-
isUseLog
public boolean isUseLog() -
setUseLog
- Overrides:
setUseLogin classOrientConfigurableGraph
-
setAutoStartTx
public void setAutoStartTx(boolean autoStartTx) Description copied from class:OrientConfigurableGraphIf 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:
setAutoStartTxin classOrientConfigurableGraph
-
stopTransaction
public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion) Closes a transaction.- Specified by:
stopTransactionin interfacecom.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:
commitin interfacecom.tinkerpop.blueprints.TransactionalGraph- Overrides:
commitin classOrientBaseGraph
-
rollback
public void rollback()Rollbacks the current active transaction. All the pending changes are rollbacked.- Specified by:
rollbackin interfacecom.tinkerpop.blueprints.TransactionalGraph- Overrides:
rollbackin classOrientBaseGraph
-
begin
public void begin()Description copied from class:OrientBaseGraphbegins current transaction (if the graph is transactional)- Overrides:
beginin classOrientBaseGraph
-
autoStartTransaction
protected void autoStartTransaction()- Overrides:
autoStartTransactionin classOrientBaseGraph
-