A
BatchGraphDatabaseImpl that can produce
org.neo4j.graphdb.event.TransactionData despite the fact
that there are no transactions involved. Therefore,
TransactionEventHandler can be registered on it, using
#registerTransactionEventHandler(org.neo4j.graphdb.event.TransactionEventHandler).
By default, a transaction commit is simulated every
BatchTransactionData#COMMIT_TX_AFTER_MUTATIONS mutations,
but this can be changed by constructing this object using one of the appropriate constructors.
This is a hacky extension of
BatchGraphDatabaseImpl, which isn't really maintained by Neo4j as it is "fake"
and doesn't, for example, take indices into account. Thus, it is preferable to use
com.graphaware.neo4j.tx.batch.api.TransactionSimulatingBatchInserter.