Package com.googlecode.objectify.impl
Class TransactionImpl
java.lang.Object
com.googlecode.objectify.util.cmd.TransactionWrapper
com.googlecode.objectify.impl.TransactionImpl
- All Implemented Interfaces:
com.google.appengine.api.datastore.Transaction
public class TransactionImpl extends TransactionWrapper
-
Constructor Summary
ConstructorDescriptionTransactionImpl(com.google.appengine.api.datastore.Transaction raw, TransactorYes<?> transactor)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
void
Enlist any operations that modify the session.void
listenForCommit(Runnable listener)
Add a listener to be called after the transaction commits.void
Methods inherited from class com.googlecode.objectify.util.cmd.TransactionWrapper
getApp, getId, getRaw, isActive, rollback, rollbackAsync
-
Constructor Details
-
TransactionImpl
public TransactionImpl(com.google.appengine.api.datastore.Transaction raw, TransactorYes<?> transactor)
-
-
Method Details
-
enlist
Enlist any operations that modify the session. -
listenForCommit
Add a listener to be called after the transaction commits. -
runCommitListeners
public void runCommitListeners() -
commit
public void commit()- Specified by:
commit
in interfacecom.google.appengine.api.datastore.Transaction
- Overrides:
commit
in classTransactionWrapper
-
commitAsync
- Specified by:
commitAsync
in interfacecom.google.appengine.api.datastore.Transaction
- Overrides:
commitAsync
in classTransactionWrapper
-