Class AbstractPlatformTransactionManager
- All Implemented Interfaces:
- Serializable,- ConfigurableTransactionManager,- PlatformTransactionManager,- TransactionManager
- Direct Known Subclasses:
- DataSourceTransactionManager,- HibernateTransactionManager,- JmsTransactionManager,- JpaTransactionManager,- JtaTransactionManager
JtaTransactionManager.
 This base class provides the following workflow handling:
- determines if there is an existing transaction;
- applies the appropriate propagation behavior;
- suspends and resumes transactions if necessary;
- checks the rollback-only flag on commit;
- applies the appropriate modification on rollback (actual rollback or setting rollback-only);
- triggers registered synchronization callbacks (if transaction synchronization is active).
Subclasses have to implement specific template methods for specific states of a transaction, e.g.: begin, suspend, resume, commit, rollback. The most important of them are abstract and must be provided by a concrete implementation; for the rest, defaults are provided, so overriding is optional.
Transaction synchronization is a generic mechanism for registering callbacks that get invoked at transaction completion time. This is mainly used internally by the data access support classes for JDBC, Hibernate, JPA, etc when running within a JTA transaction: They register resources that are opened within the transaction for closing at transaction completion time, allowing e.g. for reuse of the same Hibernate Session within the transaction. The same mechanism can also be leveraged for custom synchronization needs in an application.
The state of this class is serializable, to allow for serializing the
 transaction strategy along with proxies that carry a transaction interceptor.
 It is up to subclasses if they wish to make their state to be serializable too.
 They should implement the java.io.Serializable marker interface in
 that case, and potentially a private readObject() method (according
 to Java serialization rules) if they need to restore any transient state.
- Since:
- 28.03.2003
- Author:
- Juergen Hoeller, Sam Brannen
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static final classHolder for suspended resources.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Logstatic final intAlways activate transaction synchronization, even for "empty" transactions that result from PROPAGATION_SUPPORTS with no existing backend transaction.static final intNever active transaction synchronization, not even for actual transactions.static final intActivate transaction synchronization only for actual transactions, that is, not for empty ones that result from PROPAGATION_SUPPORTS with no existing backend transaction.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidcommit(TransactionStatus status) This implementation of commit handles participating in existing transactions and programmatic rollback requests.protected intdetermineTimeout(TransactionDefinition definition) Determine the actual timeout to use for the given definition.protected abstract voiddoBegin(Object transaction, TransactionDefinition definition) Begin a new transaction with semantics according to the given transaction definition.protected voiddoCleanupAfterCompletion(Object transaction) Cleanup resources after transaction completion.protected abstract voiddoCommit(DefaultTransactionStatus status) Perform an actual commit of the given transaction.protected abstract ObjectReturn a transaction object for the current transaction state.protected voidResume the resources of the current transaction.protected abstract voiddoRollback(DefaultTransactionStatus status) Perform an actual rollback of the given transaction.protected voidSet the given transaction rollback-only.protected ObjectSuspend the resources of the current transaction.final intReturn the default timeout that this transaction manager should apply if there is no timeout specified at the transaction level, in seconds.final TransactionStatusgetTransaction(TransactionDefinition definition) This implementation handles propagation behavior.Return the registered transaction execution listeners for this transaction manager.final intReturn if this transaction manager should activate the thread-bound transaction synchronization support.protected final voidinvokeAfterCompletion(List<TransactionSynchronization> synchronizations, int completionStatus) Actually invoke theafterCompletionmethods of the given Spring TransactionSynchronization objects.protected booleanisExistingTransaction(Object transaction) Check if the given transaction object indicates an existing transaction (that is, a transaction which has already started).final booleanReturn whether to fail early in case of the transaction being globally marked as rollback-only.final booleanReturn whether to globally mark an existing transaction as rollback-only after a participating transaction failed.final booleanReturn whether nested transactions are allowed.final booleanReturn whetherdoRollbackshould be performed on failure of thedoCommitcall.final booleanReturn whether existing transactions should be validated before participating in them.protected voidMake preparations for commit, to be performed before thebeforeCommitsynchronization callbacks occur.protected voidprepareSynchronization(DefaultTransactionStatus status, TransactionDefinition definition) Initialize transaction synchronization as appropriate.protected voidregisterAfterCompletionWithExistingTransaction(Object transaction, List<TransactionSynchronization> synchronizations) Register the given list of transaction synchronizations with the existing transaction.protected final voidresume(Object transaction, AbstractPlatformTransactionManager.SuspendedResourcesHolder resourcesHolder) Resume the given transaction.final voidrollback(TransactionStatus status) This implementation of rollback handles participating in existing transactions.final voidsetDefaultTimeout(int defaultTimeout) Specify the default timeout that this transaction manager should apply if there is no timeout specified at the transaction level, in seconds.final voidsetFailEarlyOnGlobalRollbackOnly(boolean failEarlyOnGlobalRollbackOnly) Set whether to fail early in case of the transaction being globally marked as rollback-only.final voidsetGlobalRollbackOnParticipationFailure(boolean globalRollbackOnParticipationFailure) Set whether to globally mark an existing transaction as rollback-only after a participating transaction failed.final voidsetNestedTransactionAllowed(boolean nestedTransactionAllowed) Set whether nested transactions are allowed.final voidsetRollbackOnCommitFailure(boolean rollbackOnCommitFailure) Set whetherdoRollbackshould be performed on failure of thedoCommitcall.final voidSet the transaction execution listeners for begin/commit/rollback callbacks from this transaction manager.final voidsetTransactionSynchronization(int transactionSynchronization) Set when this transaction manager should activate the thread-bound transaction synchronization support.final voidsetTransactionSynchronizationName(String constantName) Set the transaction synchronization by the name of the corresponding constant in this class — for example,"SYNCHRONIZATION_ALWAYS".final voidsetValidateExistingTransaction(boolean validateExistingTransaction) Set whether existing transactions should be validated before participating in them.protected booleanReturn whether to calldoCommiton a transaction that has been marked as rollback-only in a global fashion.protected final AbstractPlatformTransactionManager.SuspendedResourcesHolderSuspend the given transaction.protected final voidTriggerbeforeCommitcallbacks.protected final voidTriggerbeforeCompletioncallbacks.protected booleanReturn whether to use a savepoint for a nested transaction.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.transaction.ConfigurableTransactionManageraddListener
- 
Field Details- 
SYNCHRONIZATION_ALWAYSpublic static final int SYNCHRONIZATION_ALWAYSAlways activate transaction synchronization, even for "empty" transactions that result from PROPAGATION_SUPPORTS with no existing backend transaction.
- 
SYNCHRONIZATION_ON_ACTUAL_TRANSACTIONpublic static final int SYNCHRONIZATION_ON_ACTUAL_TRANSACTIONActivate transaction synchronization only for actual transactions, that is, not for empty ones that result from PROPAGATION_SUPPORTS with no existing backend transaction.
- 
SYNCHRONIZATION_NEVERpublic static final int SYNCHRONIZATION_NEVERNever active transaction synchronization, not even for actual transactions.- See Also:
 
- 
logger
 
- 
- 
Constructor Details- 
AbstractPlatformTransactionManagerpublic AbstractPlatformTransactionManager()
 
- 
- 
Method Details- 
setTransactionSynchronizationNameSet the transaction synchronization by the name of the corresponding constant in this class — for example,"SYNCHRONIZATION_ALWAYS".- Parameters:
- constantName- name of the constant
- See Also:
 
- 
setTransactionSynchronizationpublic final void setTransactionSynchronization(int transactionSynchronization) Set when this transaction manager should activate the thread-bound transaction synchronization support. Default is "always".Note that transaction synchronization isn't supported for multiple concurrent transactions by different transaction managers. Only one transaction manager is allowed to activate it at any time. 
- 
getTransactionSynchronizationpublic final int getTransactionSynchronization()Return if this transaction manager should activate the thread-bound transaction synchronization support.
- 
setDefaultTimeoutpublic final void setDefaultTimeout(int defaultTimeout) Specify the default timeout that this transaction manager should apply if there is no timeout specified at the transaction level, in seconds.Default is the underlying transaction infrastructure's default timeout, e.g. typically 30 seconds in case of a JTA provider, indicated by the TransactionDefinition.TIMEOUT_DEFAULTvalue.- See Also:
 
- 
getDefaultTimeoutpublic final int getDefaultTimeout()Return the default timeout that this transaction manager should apply if there is no timeout specified at the transaction level, in seconds.Returns TransactionDefinition.TIMEOUT_DEFAULTto indicate the underlying transaction infrastructure's default timeout.
- 
setNestedTransactionAllowedpublic final void setNestedTransactionAllowed(boolean nestedTransactionAllowed) Set whether nested transactions are allowed. Default is "false".Typically initialized with an appropriate default by the concrete transaction manager subclass. 
- 
isNestedTransactionAllowedpublic final boolean isNestedTransactionAllowed()Return whether nested transactions are allowed.
- 
setValidateExistingTransactionpublic final void setValidateExistingTransaction(boolean validateExistingTransaction) Set whether existing transactions should be validated before participating in them.When participating in an existing transaction (e.g. with PROPAGATION_REQUIRED or PROPAGATION_SUPPORTS encountering an existing transaction), this outer transaction's characteristics will apply even to the inner transaction scope. Validation will detect incompatible isolation level and read-only settings on the inner transaction definition and reject participation accordingly through throwing a corresponding exception. Default is "false", leniently ignoring inner transaction settings, simply overriding them with the outer transaction's characteristics. Switch this flag to "true" in order to enforce strict validation. - Since:
- 2.5.1
 
- 
isValidateExistingTransactionpublic final boolean isValidateExistingTransaction()Return whether existing transactions should be validated before participating in them.- Since:
- 2.5.1
 
- 
setGlobalRollbackOnParticipationFailurepublic final void setGlobalRollbackOnParticipationFailure(boolean globalRollbackOnParticipationFailure) Set whether to globally mark an existing transaction as rollback-only after a participating transaction failed.Default is "true": If a participating transaction (e.g. with PROPAGATION_REQUIRED or PROPAGATION_SUPPORTS encountering an existing transaction) fails, the transaction will be globally marked as rollback-only. The only possible outcome of such a transaction is a rollback: The transaction originator cannot make the transaction commit anymore. Switch this to "false" to let the transaction originator make the rollback decision. If a participating transaction fails with an exception, the caller can still decide to continue with a different path within the transaction. However, note that this will only work as long as all participating resources are capable of continuing towards a transaction commit even after a data access failure: This is generally not the case for a Hibernate Session, for example; neither is it for a sequence of JDBC insert/update/delete operations. Note:This flag only applies to an explicit rollback attempt for a subtransaction, typically caused by an exception thrown by a data access operation (where TransactionInterceptor will trigger a PlatformTransactionManager.rollback()call according to a rollback rule). If the flag is off, the caller can handle the exception and decide on a rollback, independent of the rollback rules of the subtransaction. This flag does, however, not apply to explicitsetRollbackOnlycalls on aTransactionStatus, which will always cause an eventual global rollback (as it might not throw an exception after the rollback-only call).The recommended solution for handling failure of a subtransaction is a "nested transaction", where the global transaction can be rolled back to a savepoint taken at the beginning of the subtransaction. PROPAGATION_NESTED provides exactly those semantics; however, it will only work when nested transaction support is available. This is the case with DataSourceTransactionManager, but not with JtaTransactionManager. 
- 
isGlobalRollbackOnParticipationFailurepublic final boolean isGlobalRollbackOnParticipationFailure()Return whether to globally mark an existing transaction as rollback-only after a participating transaction failed.
- 
setFailEarlyOnGlobalRollbackOnlypublic final void setFailEarlyOnGlobalRollbackOnly(boolean failEarlyOnGlobalRollbackOnly) Set whether to fail early in case of the transaction being globally marked as rollback-only.Default is "false", only causing an UnexpectedRollbackException at the outermost transaction boundary. Switch this flag on to cause an UnexpectedRollbackException as early as the global rollback-only marker has been first detected, even from within an inner transaction boundary. Note that, as of Spring 2.0, the fail-early behavior for global rollback-only markers has been unified: All transaction managers will by default only cause UnexpectedRollbackException at the outermost transaction boundary. This allows, for example, to continue unit tests even after an operation failed and the transaction will never be completed. All transaction managers will only fail earlier if this flag has explicitly been set to "true". - Since:
- 2.0
- See Also:
 
- 
isFailEarlyOnGlobalRollbackOnlypublic final boolean isFailEarlyOnGlobalRollbackOnly()Return whether to fail early in case of the transaction being globally marked as rollback-only.- Since:
- 2.0
 
- 
setRollbackOnCommitFailurepublic final void setRollbackOnCommitFailure(boolean rollbackOnCommitFailure) Set whetherdoRollbackshould be performed on failure of thedoCommitcall. Typically not necessary and thus to be avoided, as it can potentially override the commit exception with a subsequent rollback exception.Default is "false". 
- 
isRollbackOnCommitFailurepublic final boolean isRollbackOnCommitFailure()Return whetherdoRollbackshould be performed on failure of thedoCommitcall.
- 
setTransactionExecutionListenerspublic final void setTransactionExecutionListeners(Collection<TransactionExecutionListener> listeners) Description copied from interface:ConfigurableTransactionManagerSet the transaction execution listeners for begin/commit/rollback callbacks from this transaction manager.
- 
getTransactionExecutionListenersDescription copied from interface:ConfigurableTransactionManagerReturn the registered transaction execution listeners for this transaction manager.
- 
getTransactionpublic final TransactionStatus getTransaction(@Nullable TransactionDefinition definition) throws TransactionException This implementation handles propagation behavior. Delegates todoGetTransaction,isExistingTransactionanddoBegin.- Specified by:
- getTransactionin interface- PlatformTransactionManager
- Parameters:
- definition- the TransactionDefinition instance (can be- nullfor defaults), describing propagation behavior, isolation level, timeout etc.
- Returns:
- transaction status object representing the new or current transaction
- Throws:
- TransactionException- in case of lookup, creation, or system errors
- IllegalTransactionStateException- if the given transaction definition cannot be executed (for example, if a currently active transaction is in conflict with the specified propagation behavior)
- See Also:
 
- 
prepareSynchronizationprotected void prepareSynchronization(DefaultTransactionStatus status, TransactionDefinition definition) Initialize transaction synchronization as appropriate.
- 
determineTimeoutDetermine the actual timeout to use for the given definition. Will fall back to this manager's default timeout if the transaction definition doesn't specify a non-default value.- Parameters:
- definition- the transaction definition
- Returns:
- the actual timeout to use
- See Also:
 
- 
suspend@Nullable protected final AbstractPlatformTransactionManager.SuspendedResourcesHolder suspend(@Nullable Object transaction) throws TransactionException Suspend the given transaction. Suspends transaction synchronization first, then delegates to thedoSuspendtemplate method.- Parameters:
- transaction- the current transaction object (or- nullto just suspend active synchronizations, if any)
- Returns:
- an object that holds suspended resources
 (or nullif neither transaction nor synchronization active)
- Throws:
- TransactionException
- See Also:
 
- 
resumeprotected final void resume(@Nullable Object transaction, @Nullable AbstractPlatformTransactionManager.SuspendedResourcesHolder resourcesHolder) throws TransactionException Resume the given transaction. Delegates to thedoResumetemplate method first, then resuming transaction synchronization.- Parameters:
- transaction- the current transaction object
- resourcesHolder- the object that holds suspended resources, as returned by- suspend(or- nullto just resume synchronizations, if any)
- Throws:
- TransactionException
- See Also:
 
- 
commitThis implementation of commit handles participating in existing transactions and programmatic rollback requests. Delegates toisRollbackOnly,doCommitandrollback.- Specified by:
- commitin interface- PlatformTransactionManager
- Parameters:
- status- object returned by the- getTransactionmethod
- Throws:
- UnexpectedRollbackException- in case of an unexpected rollback that the transaction coordinator initiated
- HeuristicCompletionException- in case of a transaction failure caused by a heuristic decision on the side of the transaction coordinator
- TransactionSystemException- in case of commit or system errors (typically caused by fundamental resource failures)
- IllegalTransactionStateException- if the given transaction is already completed (that is, committed or rolled back)
- TransactionException
- See Also:
 
- 
rollbackThis implementation of rollback handles participating in existing transactions. Delegates todoRollbackanddoSetRollbackOnly.- Specified by:
- rollbackin interface- PlatformTransactionManager
- Parameters:
- status- object returned by the- getTransactionmethod
- Throws:
- TransactionSystemException- in case of rollback or system errors (typically caused by fundamental resource failures)
- IllegalTransactionStateException- if the given transaction is already completed (that is, committed or rolled back)
- TransactionException
- See Also:
 
- 
triggerBeforeCommitTriggerbeforeCommitcallbacks.- Parameters:
- status- object representing the transaction
 
- 
triggerBeforeCompletionTriggerbeforeCompletioncallbacks.- Parameters:
- status- object representing the transaction
 
- 
invokeAfterCompletionprotected final void invokeAfterCompletion(List<TransactionSynchronization> synchronizations, int completionStatus) Actually invoke theafterCompletionmethods of the given Spring TransactionSynchronization objects.To be called by this abstract manager itself, or by special implementations of the registerAfterCompletionWithExistingTransactioncallback.- Parameters:
- synchronizations- a List of TransactionSynchronization objects
- completionStatus- the completion status according to the constants in the TransactionSynchronization interface
- See Also:
 
- 
doGetTransactionReturn a transaction object for the current transaction state.The returned object will usually be specific to the concrete transaction manager implementation, carrying corresponding transaction state in a modifiable fashion. This object will be passed into the other template methods (e.g. doBegin and doCommit), either directly or as part of a DefaultTransactionStatus instance. The returned object should contain information about any existing transaction, that is, a transaction that has already started before the current getTransactioncall on the transaction manager. Consequently, adoGetTransactionimplementation will usually look for an existing transaction and store corresponding state in the returned transaction object.- Returns:
- the current transaction object
- Throws:
- CannotCreateTransactionException- if transaction support is not available
- TransactionException- in case of lookup or system errors
- See Also:
 
- 
isExistingTransactionCheck if the given transaction object indicates an existing transaction (that is, a transaction which has already started).The result will be evaluated according to the specified propagation behavior for the new transaction. An existing transaction might get suspended (in case of PROPAGATION_REQUIRES_NEW), or the new transaction might participate in the existing one (in case of PROPAGATION_REQUIRED). The default implementation returns false, assuming that participating in existing transactions is generally not supported. Subclasses are of course encouraged to provide such support.- Parameters:
- transaction- the transaction object returned by doGetTransaction
- Returns:
- if there is an existing transaction
- Throws:
- TransactionException- in case of system errors
- See Also:
 
- 
useSavepointForNestedTransactionprotected boolean useSavepointForNestedTransaction()Return whether to use a savepoint for a nested transaction.Default is true, which causes delegation to DefaultTransactionStatus for creating and holding a savepoint. If the transaction object does not implement the SavepointManager interface, a NestedTransactionNotSupportedException will be thrown. Else, the SavepointManager will be asked to create a new savepoint to demarcate the start of the nested transaction.Subclasses can override this to return false, causing a further call todoBegin- within the context of an already existing transaction. ThedoBeginimplementation needs to handle this accordingly in such a scenario. This is appropriate for JTA, for example.
- 
doBeginprotected abstract void doBegin(Object transaction, TransactionDefinition definition) throws TransactionException Begin a new transaction with semantics according to the given transaction definition. Does not have to care about applying the propagation behavior, as this has already been handled by this abstract manager.This method gets called when the transaction manager has decided to actually start a new transaction. Either there wasn't any transaction before, or the previous transaction has been suspended. A special scenario is a nested transaction without savepoint: If useSavepointForNestedTransaction()returns "false", this method will be called to start a nested transaction when necessary. In such a context, there will be an active transaction: The implementation of this method has to detect this and start an appropriate nested transaction.- Parameters:
- transaction- the transaction object returned by- doGetTransaction
- definition- a TransactionDefinition instance, describing propagation behavior, isolation level, read-only flag, timeout, and transaction name
- Throws:
- TransactionException- in case of creation or system errors
- NestedTransactionNotSupportedException- if the underlying transaction does not support nesting
 
- 
doSuspendSuspend the resources of the current transaction. Transaction synchronization will already have been suspended.The default implementation throws a TransactionSuspensionNotSupportedException, assuming that transaction suspension is generally not supported. - Parameters:
- transaction- the transaction object returned by- doGetTransaction
- Returns:
- an object that holds suspended resources (will be kept unexamined for passing it into doResume)
- Throws:
- TransactionSuspensionNotSupportedException- if suspending is not supported by the transaction manager implementation
- TransactionException- in case of system errors
- See Also:
 
- 
doResumeprotected void doResume(@Nullable Object transaction, Object suspendedResources) throws TransactionException Resume the resources of the current transaction. Transaction synchronization will be resumed afterwards.The default implementation throws a TransactionSuspensionNotSupportedException, assuming that transaction suspension is generally not supported. - Parameters:
- transaction- the transaction object returned by- doGetTransaction
- suspendedResources- the object that holds suspended resources, as returned by doSuspend
- Throws:
- TransactionSuspensionNotSupportedException- if resuming is not supported by the transaction manager implementation
- TransactionException- in case of system errors
- See Also:
 
- 
shouldCommitOnGlobalRollbackOnlyprotected boolean shouldCommitOnGlobalRollbackOnly()Return whether to calldoCommiton a transaction that has been marked as rollback-only in a global fashion.Does not apply if an application locally sets the transaction to rollback-only via the TransactionStatus, but only to the transaction itself being marked as rollback-only by the transaction coordinator. Default is "false": Local transaction strategies usually don't hold the rollback-only marker in the transaction itself, therefore they can't handle rollback-only transactions as part of transaction commit. Hence, AbstractPlatformTransactionManager will trigger a rollback in that case, throwing an UnexpectedRollbackException afterwards. Override this to return "true" if the concrete transaction manager expects a doCommitcall even for a rollback-only transaction, allowing for special handling there. This will, for example, be the case for JTA, whereUserTransaction.commitwill check the read-only flag itself and throw a corresponding RollbackException, which might include the specific reason (such as a transaction timeout).If this method returns "true" but the doCommitimplementation does not throw an exception, this transaction manager will throw an UnexpectedRollbackException itself. This should not be the typical case; it is mainly checked to cover misbehaving JTA providers that silently roll back even when the rollback has not been requested by the calling code.
- 
prepareForCommitMake preparations for commit, to be performed before thebeforeCommitsynchronization callbacks occur.Note that exceptions will get propagated to the commit caller and cause a rollback of the transaction. - Parameters:
- status- the status representation of the transaction
- Throws:
- RuntimeException- in case of errors; will be propagated to the caller (note: do not throw TransactionException subclasses here!)
 
- 
doCommitPerform an actual commit of the given transaction.An implementation does not need to check the "new transaction" flag or the rollback-only flag; this will already have been handled before. Usually, a straight commit will be performed on the transaction object contained in the passed-in status. - Parameters:
- status- the status representation of the transaction
- Throws:
- TransactionException- in case of commit or system errors
- See Also:
 
- 
doRollbackPerform an actual rollback of the given transaction.An implementation does not need to check the "new transaction" flag; this will already have been handled before. Usually, a straight rollback will be performed on the transaction object contained in the passed-in status. - Parameters:
- status- the status representation of the transaction
- Throws:
- TransactionException- in case of system errors
- See Also:
 
- 
doSetRollbackOnlySet the given transaction rollback-only. Only called on rollback if the current transaction participates in an existing one.The default implementation throws an IllegalTransactionStateException, assuming that participating in existing transactions is generally not supported. Subclasses are of course encouraged to provide such support. - Parameters:
- status- the status representation of the transaction
- Throws:
- TransactionException- in case of system errors
 
- 
registerAfterCompletionWithExistingTransactionprotected void registerAfterCompletionWithExistingTransaction(Object transaction, List<TransactionSynchronization> synchronizations) throws TransactionException Register the given list of transaction synchronizations with the existing transaction.Invoked when the control of the Spring transaction manager and thus all Spring transaction synchronizations end, without the transaction being completed yet. This is for example the case when participating in an existing JTA or EJB CMT transaction. The default implementation simply invokes the afterCompletionmethods immediately, passing in "STATUS_UNKNOWN". This is the best we can do if there's no chance to determine the actual outcome of the outer transaction.- Parameters:
- transaction- the transaction object returned by- doGetTransaction
- synchronizations- a List of TransactionSynchronization objects
- Throws:
- TransactionException- in case of system errors
- See Also:
 
- 
doCleanupAfterCompletionCleanup resources after transaction completion.Called after doCommitanddoRollbackexecution, on any outcome. The default implementation does nothing.Should not throw any exceptions but just issue warnings on errors. - Parameters:
- transaction- the transaction object returned by- doGetTransaction
 
 
-