use of org.neo4j.kernel.api.exceptions.TransactionFailureException in project neo4j by neo4j.
the class TransitionalTxManagementKernelTransaction method commit.
public void commit() {
try {
KernelTransaction kernelTransactionBoundToThisThread = bridge.getKernelTransactionBoundToThisThread(true);
kernelTransactionBoundToThisThread.success();
kernelTransactionBoundToThisThread.close();
} catch (TransactionFailureException e) {
throw new RuntimeException(e);
} finally {
bridge.unbindTransactionFromCurrentThread();
}
}
Aggregations