Package com.google.appengine.tck.temp

Examples of com.google.appengine.tck.temp.TempData.preDelete()


    protected static void deleteTempDataInTx(DatastoreService ds, Entity entity, Class<? extends TempData> type) {
        Transaction txn = ds.beginTransaction(TransactionOptions.Builder.withXG(true));
        try {
            TempData data = type.newInstance();
            data.fromProperties(entity.getProperties());
            data.preDelete(ds);
            ds.delete(txn, entity.getKey());
            data.postDelete(ds);
            txn.commit();
        } catch (Exception e) {
            throw new IllegalStateException(e);
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.