Examples of rollbackAsync()


Examples of com.google.appengine.api.datastore.Transaction.rollbackAsync()

    return new SienaFutureContainer<Void>(txn.commitAsync());
  }

  public SienaFuture<Void> rollbackTransaction() {
    Transaction txn = ds.getCurrentTransaction();
    return new SienaFutureContainer<Void>(txn.rollbackAsync());
  }

  public SienaFuture<Void> update(Object obj) {
    Entity entity = new Entity(GaeMappingUtils.getKey(obj));
    GaeMappingUtils.fillEntity(obj, entity);
View Full Code Here

Examples of com.google.appengine.api.datastore.Transaction.rollbackAsync()

        try {
            Future<Key> fKey = service.put(tx, new Entity("AsyncTx"));
            key = waitOnFuture(fKey);
            waitOnFuture(tx.commitAsync());
        } catch (Exception e) {
            waitOnFuture(tx.rollbackAsync());
            throw e;
        }

        if (key != null) {
            Assert.assertNotNull(getSingleEntity(service, key));
View Full Code Here

Examples of com.google.appengine.api.datastore.Transaction.rollbackAsync()

        Key key = null;
        try {
            Future<Key> fKey = service.put(tx, new Entity("AsyncTx"));
            key = waitOnFuture(fKey);
        } finally {
            waitOnFuture(tx.rollbackAsync());
        }

        if (key != null) {
            Assert.assertNull(getSingleEntity(service, key));
        }
View Full Code Here

Examples of com.google.appengine.api.datastore.Transaction.rollbackAsync()

            return result;
        } finally {
            if (ok)
                tx.commitAsync();
            else
                tx.rollbackAsync();

            sync(); // wait for tx to finish
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.