Package com.storedobject.core
Class AbstractTransaction
java.lang.Object
com.storedobject.core.AbstractTransaction
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.core.Transaction
Transaction.CommitListener -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommitListener(Transaction.CommitListener listener) Add a commit listener for this transaction.final ExceptiongetError()Gets the current error in Transaction.final IdgetId()Gets the Id of this transaction.final TransactionManagerGets the TransactionManager associated with this Transaction.final inthashCode()voidLog something.voidRemove a commit listener for this transaction.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.storedobject.core.Transaction
commit, get, get, get, getSession, getUserId, isActive, isInvolved, isInvolved, logStackTrace, logStackTrace, rollback
-
Method Details
-
addCommitListener
Description copied from interface:TransactionAdd a commit listener for this transaction.- Specified by:
addCommitListenerin interfaceTransaction- Parameters:
listener- Listener
-
removeCommitListener
Description copied from interface:TransactionRemove a commit listener for this transaction.- Specified by:
removeCommitListenerin interfaceTransaction- Parameters:
listener- Listener
-
getError
Gets the current error in Transaction. A transaction that was closed normally (committed) does not return any error.- Specified by:
getErrorin interfaceTransaction- Returns:
- Error if any, otherwise null.
-
getId
Gets the Id of this transaction.- Specified by:
getIdin interfaceTransaction- Returns:
- Id
-
hashCode
-
getManager
Gets the TransactionManager associated with this Transaction.- Specified by:
getManagerin interfaceTransaction- Returns:
- TransactionManager
-
toString
-
log
Log something.- Specified by:
login interfaceTransaction- Parameters:
anything- Anything, including exceptions, to be logged.
-