コード例 #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();
 }