@Test public void simple_rollback(){ DB db =tx.makeTx(); db.getHashMap("test").put("aa", "bb"); db.rollback(); assertEquals(null, tx.makeTx().getHashMap("test").get("aa")); }
public DB makeTx(){ return new DB(new TxEngine(engine)); }
TxMaker { public DB makeTx(){ return new DB(new TxEngine(engine)); } }
TxMaker { public DB makeTx(){ return new DB(new TxEngine(engine)); } TxMaker(Engine engine); }
TxMaker { public DB makeTx(){ return new DB(new TxEngine(engine)); } TxMaker(Engine engine); DB makeTx(); void close(); void execute(TxBlock txBlock); }
TxMaker { public DB makeTx(){ return new DB(new TxEngine(engine)); } TxMaker(Engine engine); DB makeTx(); void close(); void execute(TxBlock txBlock);  }