try {
initEnvTransactional(true);
Transaction txn = exampleEnv.beginTransaction(null, null);
Cursor c = exampleDb.openCursor(txn, null);
OperationStatus status =
c.put(new StringDbt("oneKey"),
new StringDbt("firstData"));
assertEquals(OperationStatus.SUCCESS, status);
c.close();
txn.commit();
txn = exampleEnv.beginTransaction(null, null);
c = exampleDb.openCursor(txn, null);
status =
c.put(new StringDbt("oneKey"),
new StringDbt("secondData"));
assertEquals(OperationStatus.SUCCESS, status);
c.close();
txn.abort();
txn = exampleEnv.beginTransaction(null, null);
c = exampleDb.openCursor(txn, null);