public abstract class OrientTransactionalGraph extends OrientBaseGraph implements com.tinkerpop.blueprints.TransactionalGraph
OrientConfigurableGraph.Settings, OrientConfigurableGraph.THREAD_MODE
ADMIN, CLASS_PREFIX, CLUSTER_PREFIX, CONNECTION_IN, CONNECTION_OUT, database
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
Modifier | Constructor and Description |
---|---|
protected |
OrientTransactionalGraph(org.apache.commons.configuration.Configuration configuration) |
protected |
OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase)
Constructs a new object using an existent database instance.
|
protected |
OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase,
boolean iAutoStartTx,
String iUserName,
String iUserPasswd) |
protected |
OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase,
String iUserName,
String iUserPasswd,
OrientConfigurableGraph.Settings iConfiguration) |
protected |
OrientTransactionalGraph(OPartitionedDatabasePool pool) |
protected |
OrientTransactionalGraph(OPartitionedDatabasePool pool,
OrientConfigurableGraph.Settings configuration) |
protected |
OrientTransactionalGraph(String url) |
protected |
OrientTransactionalGraph(String url,
boolean iAutoStartTx) |
protected |
OrientTransactionalGraph(String url,
String username,
String password) |
protected |
OrientTransactionalGraph(String url,
String username,
String password,
boolean iAutoStartTx) |
Modifier and Type | Method and Description |
---|---|
protected void |
autoStartTransaction() |
void |
begin()
begins current transaction (if the graph is transactional)
|
void |
commit()
Commits the current active transaction.
|
boolean |
isUseLog() |
void |
rollback()
Rollbacks the current active transaction.
|
void |
setAutoStartTx(boolean autoStartTx)
If enabled auto starts a new transaction right before the graph is changed.
|
OrientTransactionalGraph |
setUseLog(boolean useLog) |
void |
stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
Closes a transaction.
|
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, traverse
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, setWarnOnForceClosingTx
protected OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase)
iDatabase
- Underlying database object to attachprotected OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase, String iUserName, String iUserPasswd, OrientConfigurableGraph.Settings iConfiguration)
protected OrientTransactionalGraph(ODatabaseDocumentInternal iDatabase, boolean iAutoStartTx, String iUserName, String iUserPasswd)
protected OrientTransactionalGraph(OPartitionedDatabasePool pool)
protected OrientTransactionalGraph(OPartitionedDatabasePool pool, OrientConfigurableGraph.Settings configuration)
protected OrientTransactionalGraph(String url)
protected OrientTransactionalGraph(String url, boolean iAutoStartTx)
protected OrientTransactionalGraph(String url, String username, String password)
protected OrientTransactionalGraph(String url, String username, String password, boolean iAutoStartTx)
protected OrientTransactionalGraph(org.apache.commons.configuration.Configuration configuration)
public boolean isUseLog()
public OrientTransactionalGraph setUseLog(boolean useLog)
setUseLog
in class OrientConfigurableGraph
public void setAutoStartTx(boolean autoStartTx)
OrientConfigurableGraph
setAutoStartTx
in class OrientConfigurableGraph
public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
stopTransaction
in interface com.tinkerpop.blueprints.TransactionalGraph
conclusion
- Can be SUCCESS for commit and FAILURE to rollback.public void commit()
commit
in interface com.tinkerpop.blueprints.TransactionalGraph
commit
in class OrientBaseGraph
public void rollback()
rollback
in interface com.tinkerpop.blueprints.TransactionalGraph
rollback
in class OrientBaseGraph
public void begin()
OrientBaseGraph
begin
in class OrientBaseGraph
protected void autoStartTransaction()
autoStartTransaction
in class OrientBaseGraph
Copyright © 2009–2020 OrientDB. All rights reserved.