Exemplo n.º 1
0
 private TransactionContinuation createNodeAndKeepTxOpen(
     HighlyAvailableGraphDatabase db, Label label) {
   TransactionContinuation txc = new TransactionContinuation(db);
   txc.begin();
   db.createNode(label);
   txc.suspend();
   return txc;
 }
Exemplo n.º 2
0
 private void commit(HighlyAvailableGraphDatabase db, TransactionContinuation txc)
     throws Exception {
   txc.resume();
   txc.commit();
 }