public class TxNeo4jGraph extends Neo4j2Graph implements TxGraph
| Modifier and Type | Class and Description |
|---|---|
class |
TxNeo4jGraph.Neo4jTx |
static class |
TxNeo4jGraph.UnderlyingTxRemovedError |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
checkElementsInTransaction, tx| Constructor and Description |
|---|
TxNeo4jGraph(org.neo4j.graphdb.GraphDatabaseService rawGraph) |
TxNeo4jGraph(String directory) |
| Modifier and Type | Method and Description |
|---|---|
void |
autoStartTransaction(boolean forWrite)
This overridden function is now a no-op.
|
Tx |
beginTx()
Obtain a wrapped transaction object.
|
void |
commit() |
void |
init()
Since we override autoStartTx to do nothing, we must also
override this function (which loads key indices and sneakily
commits them) when the graph is constructed.
|
boolean |
isInTransaction()
Checks if the graph is currently in a transaction.
|
void |
shutdown() |
addEdge, addVertex, checkElementsInTransaction, getEdge, getEdges, getEdges, getFeatures, getRawGraph, getVertex, getVertices, getVertices, getVerticesByLabel, getVerticesByLabelKeyValue, getVerticesByQuery, query, query, removeEdge, removeVertex, rollback, stopTransaction, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic TxNeo4jGraph(String directory)
public TxNeo4jGraph(org.neo4j.graphdb.GraphDatabaseService rawGraph)
public Tx beginTx()
TxGraphpublic void commit()
commit in interface com.tinkerpop.blueprints.TransactionalGraphcommit in class Neo4j2Graphpublic void shutdown()
shutdown in interface com.tinkerpop.blueprints.Graphshutdown in class Neo4j2Graphpublic void autoStartTransaction(boolean forWrite)
autoStartTransaction in class Neo4j2GraphforWrite - unused parameterpublic void init()
init in class Neo4j2Graphpublic boolean isInTransaction()
isInTransaction in interface TxGraphCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.