test_class.declarator: tx = DBMaker.newMemoryDB().makeTxMaker()
test_class.original_string: TxMaker tx = DBMaker.newMemoryDB().makeTxMaker();
test_class.type: TxMaker
test_class.var_name: tx
test_class.file: migration/third-party/org.mapdb/src/test/java/org/mapdb/TxMakerTest.java
test_class.identifier: TxMakerTest
test_case.body: @Test public void commit_conflict(){
          DB db0 = tx.makeTx();
          long recid = db0.getEngine().put(111, Serializer.INTEGER_SERIALIZER);
          db0.commit();
          DB db1 = tx.makeTx();
          db1.getEngine().update(recid, 222, Serializer.INTEGER_SERIALIZER);
          try{
              tx.makeTx().getEngine().update(recid, 333, Serializer.INTEGER_SERIALIZER);
              fail("should throw exception");
          }catch(TxRollbackException e){
              //expected
          }
  
          //original transaction should complete well
          db1.commit();
  
          assertEquals(Integer.valueOf(222), tx.makeTx().getEngine().get(recid, Serializer.INTEGER_SERIALIZER));
  
      }
test_case.class_method_signature: TxMakerTest.commit_conflict()
test_case.full_signature: @Test public void commit_conflict()
test_case.identifier: commit_conflict
test_case.invocations: makeTx put getEngine commit makeTx update getEngine update getEngine makeTx fail commit assertEquals valueOf get getEngine makeTx
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void commit_conflict()
focal_class.declarator: DELETED = new Fun.Tuple2(null, Serializer.STRING_SERIALIZER)
focal_class.modifier: protected static final
focal_class.original_string: protected static final Fun.Tuple2<Object, Serializer> DELETED = new Fun.Tuple2(null, Serializer.STRING_SERIALIZER);
focal_class.type: Fun.Tuple2<Object, Serializer>
focal_class.var_name: DELETED
focal_class.declarator: engine
focal_class.modifier: protected
focal_class.original_string: protected Engine engine;
focal_class.type: Engine
focal_class.var_name: engine
focal_class.declarator: lock = new Object()
focal_class.modifier: protected final
focal_class.original_string: protected final Object lock = new Object();
focal_class.type: Object
focal_class.var_name: lock
focal_class.declarator: globalMod = new LongHashMap<TxEngine>()
focal_class.modifier: protected final
focal_class.original_string: protected final LongMap<TxEngine> globalMod = new LongHashMap<TxEngine>();
focal_class.type: LongMap<TxEngine>
focal_class.var_name: globalMod
focal_class.file: migration/third-party/org.mapdb/src/main/java/org/mapdb/TxMaker.java
focal_class.identifier: TxMaker
focal_class.class_method_signature: TxMaker.TxMaker(Engine engine)
focal_class.full_signature: public  TxMaker(Engine engine)
focal_class.identifier: TxMaker
focal_class.modifiers: public
focal_class.parameters: (Engine engine)
focal_class.signature:  TxMaker(Engine engine)
focal_class.class_method_signature: TxMaker.makeTx()
focal_class.full_signature: public DB makeTx()
focal_class.identifier: makeTx
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DB
focal_class.signature: DB makeTx()
focal_class.class_method_signature: TxMaker.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: TxMaker.execute(TxBlock txBlock)
focal_class.full_signature: public void execute(TxBlock txBlock)
focal_class.identifier: execute
focal_class.modifiers: public
focal_class.parameters: (TxBlock txBlock)
focal_class.return: void
focal_class.signature: void execute(TxBlock txBlock)
focal_method.body: public DB makeTx(){
          return new DB(new TxEngine(engine));
      }
focal_method.class_method_signature: TxMaker.makeTx()
focal_method.full_signature: public DB makeTx()
focal_method.identifier: makeTx
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: DB
focal_method.signature: DB makeTx()