Package com.pyranid
Class Transaction
java.lang.Object
com.pyranid.Transaction
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPostCommitOperation
(Runnable postCommitOperation) void
addPostRollbackOperation
(Runnable postRollbackOperation) boolean
Should this transaction be rolled back upon completion?boolean
removePostCommitOperation
(Runnable postCommitOperation) boolean
removePostRollbackOperation
(Runnable postRollbackOperation) void
void
setRollbackOnly
(boolean rollbackOnly) toString()
-
Method Details
-
toString
-
createSavepoint
-
rollback
-
isRollbackOnly
Should this transaction be rolled back upon completion?Default value is
false
.- Returns:
true
if this transaction should be rolled back,false
otherwise.
-
setRollbackOnly
-
addPostCommitOperation
-
removePostCommitOperation
-
addPostRollbackOperation
-
removePostRollbackOperation
-
transactionIsolation
-
postCommitOperations
-
postRollbackOperations
-