예제 #1
0
파일: LabelIT.java 프로젝트: Analect/neo4j
 private TransactionContinuation createNodeAndKeepTxOpen(
     HighlyAvailableGraphDatabase db, Label label) {
   TransactionContinuation txc = new TransactionContinuation(db);
   txc.begin();
   db.createNode(label);
   txc.suspend();
   return txc;
 }
예제 #2
0
파일: LabelIT.java 프로젝트: Analect/neo4j
 private void commit(HighlyAvailableGraphDatabase db, TransactionContinuation txc)
     throws Exception {
   txc.resume();
   txc.commit();
 }