Closed
Description
It would be nice to be able to use the resource pattern around a Transaction:
try (Transaction tx = datastore.newTransaction()) {
// do stuff
tx.commit();
}
Default behaviour of close() would be to roll back a transaction. This is to avoid potential errors caused by the application failing to catch unexpected Throwables causing incomplete work to be auto-committed.
Activity