public abstract class OrientTransactionalGraph extends OrientBaseGraph implements com.tinkerpop.blueprints.TransactionalGraph
OrientBaseGraph.Settings, OrientBaseGraph.THREAD_MODE| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoStartTx |
ADMIN, CLASS_PREFIX, CLUSTER_PREFIX, CONNECTION_IN, CONNECTION_OUT, settings| Modifier | Constructor and Description |
|---|---|
protected |
OrientTransactionalGraph(org.apache.commons.configuration.Configuration configuration) |
protected |
OrientTransactionalGraph(ODatabaseDocumentPool pool) |
protected |
OrientTransactionalGraph(ODatabaseDocumentTx iDatabase)
Constructs a new object using an existent database instance.
|
protected |
OrientTransactionalGraph(ODatabaseDocumentTx iDatabase,
boolean iAutoStartTx) |
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 |
commit()
Commits the current active transaction.
|
boolean |
isAutoStartTx()
Tells if a transaction is started automatically when the graph is changed.
|
void |
rollback()
Rollbacks the current active transaction.
|
void |
setAutoStartTx(boolean autoStartTx)
If enabled auto starts a new transaction right before the graph is changed.
|
void |
stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
Closes a transaction.
|
addEdge, addTemporaryVertex, addVertex, addVertex, addVertex, attach, checkForGraphSchema, command, convertKey, convertKeys, countEdges, countEdges, countVertices, countVertices, createEdgeType, createEdgeType, createEdgeType, createIndex, createKeyIndex, createVertexType, createVertexType, createVertexType, decodeClassName, detach, drop, dropEdgeType, dropIndex, dropKeyIndex, dropVertexType, encodeClassName, encodeClassNames, executeOutsideTx, getClassName, getContext, getEdge, getEdgeBaseType, getEdges, getEdges, getEdges, getEdgesOfClass, getEdgesOfClass, getEdgeType, getElement, getIndex, getIndexedKeys, getIndexedKeys, getIndices, getRawGraph, getThreadMode, getVertex, getVertexBaseType, getVertexType, getVertices, getVertices, getVertices, getVertices, getVerticesOfClass, getVerticesOfClass, isClosed, isKeepInMemoryReferences, isSaveOriginalIds, isStandardElementConstraints, isUseClassForEdgeLabel, isUseClassForVertexLabel, isUseLightweightEdges, isUseVertexFieldsForEdgeLabels, isWarnOnForceClosingTx, query, removeContext, removeEdge, removeVertex, reuse, saveIndexConfiguration, setCurrentGraphInThreadLocal, setKeepInMemoryReferences, setSaveOriginalIds, setStandardElementConstraints, setThreadMode, setUseClassForEdgeLabel, setUseClassForVertexLabel, setUseLightweightEdges, setUseVertexFieldsForEdgeLabels, setWarnOnForceClosingTx, shutdown, toString, traverseprotected OrientTransactionalGraph(ODatabaseDocumentTx iDatabase)
iDatabase - Underlying database object to attachprotected OrientTransactionalGraph(ODatabaseDocumentTx iDatabase, boolean iAutoStartTx)
protected OrientTransactionalGraph(ODatabaseDocumentPool pool)
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 void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
stopTransaction in interface com.tinkerpop.blueprints.TransactionalGraphconclusion - Can be SUCCESS for commit and FAILURE to rollback.public void commit()
commit in interface com.tinkerpop.blueprints.TransactionalGraphcommit in class OrientBaseGraphpublic void rollback()
rollback in interface com.tinkerpop.blueprints.TransactionalGraphrollback in class OrientBaseGraphpublic boolean isAutoStartTx()
public void setAutoStartTx(boolean autoStartTx)
autoStartTx - protected void autoStartTransaction()
autoStartTransaction in class OrientBaseGraphCopyright © 2009-2014 Orient Technologies. All Rights Reserved.