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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public TxNeo4jGraph(String directory)
public TxNeo4jGraph(org.neo4j.graphdb.GraphDatabaseService rawGraph)
public Tx beginTx()
TxGraph
public void commit()
commit
in interface com.tinkerpop.blueprints.TransactionalGraph
commit
in class Neo4j2Graph
public void shutdown()
shutdown
in interface com.tinkerpop.blueprints.Graph
shutdown
in class Neo4j2Graph
public void autoStartTransaction(boolean forWrite)
autoStartTransaction
in class Neo4j2Graph
forWrite
- unused parameterpublic void init()
init
in class Neo4j2Graph
public boolean isInTransaction()
isInTransaction
in interface TxGraph
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.