public final class GAETransaction extends Object implements Transaction
Transaction simply.GAERepository| Modifier and Type | Field and Description |
|---|---|
private com.google.appengine.api.datastore.Transaction |
appEngineDatastoreTx
Underlying Google App Engine transaction.
|
static int |
COMMIT_RETRIES
Times of commit retries.
|
private static Logger |
LOGGER
Logger.
|
| Constructor and Description |
|---|
GAETransaction(com.google.appengine.api.datastore.Transaction appEngineDatastoreTx)
Constructs a
GAETransaction object with the specified Google App Engine datastore
transaction. |
private static final Logger LOGGER
private com.google.appengine.api.datastore.Transaction appEngineDatastoreTx
public static final int COMMIT_RETRIES
public GAETransaction(com.google.appengine.api.datastore.Transaction appEngineDatastoreTx)
GAETransaction object with the specified Google App Engine datastore
transaction.appEngineDatastoreTx - the specified Google App Engine datastore transactionpublic String getId()
getId in interface Transactionpublic void commit()
Throws:
ConcurrentModificationException - if commits failed
commit in interface TransactionCOMMIT_RETRIESpublic void rollback()
rollback in interface Transactionpublic boolean isActive()
isActive in interface TransactionCopyright © 2010–2016 B3log. All rights reserved.