Searched refs:txn (Results 1 – 5 of 5) sorted by relevance
87 Transaction txn = datastore.beginTransaction(); in addFavorite() local100 txn.commit(); in addFavorite()102 if (txn.isActive()) { in addFavorite()106 txn.rollback(); in addFavorite()139 Transaction txn = datastore.beginTransaction(); in updateFavorite() local143 txn.commit(); in updateFavorite()145 if (txn.isActive()) { in updateFavorite()149 txn.rollback(); in updateFavorite()
98 Transaction txn = datastore.beginTransaction(); in doPost() local101 txn.commit(); in doPost()110 txn.rollback(); in doPost()114 if (txn.isActive()) { in doPost()116 txn.rollback(); in doPost()
530 Transaction txn = datastore.beginTransaction(); in doPost()545 txn.commit(); in doPost()555 if (txn.isActive()) { in doPost()560 txn.rollback(); in doPost()644 Transaction txn = datastore.beginTransaction(); in doPost()652 txn.commit(); in doPost()660 if (txn.isActive()) { in doPost()665 txn.rollback(); in doPost()
189 Transaction txn; in datastoreTransactionalRetryWithXG() local192 txn = datastore.beginTransaction(options); in datastoreTransactionalRetryWithXG()194 txn = datastore.beginTransaction(); in datastoreTransactionalRetryWithXG()217 datastore.put(txn, entityList); in datastoreTransactionalRetryWithXG()218 txn.commit(); in datastoreTransactionalRetryWithXG()237 if (txn.isActive()) { in datastoreTransactionalRetryWithXG()240 txn.rollback(); in datastoreTransactionalRetryWithXG()
551 Transaction txn = datastore.beginTransaction(); in doPost() local560 txn.rollback(); in doPost()563 txn.commit(); in doPost()576 if (txn.isActive()) { in doPost()577 txn.rollback(); in doPost()