程序包 org.springframework.transaction.support
Support classes for the org.springframework.transaction package. Provides an abstract base class for transaction manager implementations, and a template plus callback for transaction demarcation.
接口概要 接口 说明 CallbackPreferringPlatformTransactionManager Extension of thePlatformTransactionManager
interface, exposing a method for executing a given callback within a transaction.ResourceHolder Generic interface to be implemented by resource holders.ResourceTransactionManager Extension of thePlatformTransactionManager
interface, indicating a native resource transaction manager, operating on a single target resource.SmartTransactionObject Interface to be implemented by transaction objects that are able to return an internal rollback-only marker, typically from a another transaction that has participated and marked it as rollback-only.TransactionCallback<T> Callback interface for transactional code.TransactionOperations Interface specifying basic transaction execution operations.TransactionSynchronization Interface for transaction synchronization callbacks.类概要 类 说明 AbstractPlatformTransactionManager Abstract base class that implements Spring's standard transaction workflow, serving as basis for concrete platform transaction managers likeJtaTransactionManager
.AbstractPlatformTransactionManager.SuspendedResourcesHolder Holder for suspended resources.AbstractTransactionStatus Abstract base implementation of theTransactionStatus
interface.DefaultTransactionDefinition Default implementation of theTransactionDefinition
interface, offering bean-style configuration and sensible default values (PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false).DefaultTransactionStatus Default implementation of theTransactionStatus
interface, used byAbstractPlatformTransactionManager
.DelegatingTransactionDefinition TransactionDefinition
implementation that delegates all calls to a given targetTransactionDefinition
instance.ResourceHolderSupport Convenient base class for resource holders.ResourceHolderSynchronization<H extends ResourceHolder,K> TransactionSynchronization
implementation that manages aResourceHolder
bound throughTransactionSynchronizationManager
.SimpleTransactionScope A simple transaction-backedScope
implementation, delegating toTransactionSynchronizationManager
's resource binding mechanism.SimpleTransactionStatus A simpleTransactionStatus
implementation.TransactionCallbackWithoutResult Simple convenience class for TransactionCallback implementation.TransactionSynchronizationAdapter SimpleTransactionSynchronization
adapter containing empty method implementations, for easier overriding of single methods.TransactionSynchronizationManager Central delegate that manages resources and transaction synchronizations per thread.TransactionSynchronizationUtils Utility methods for triggering specificTransactionSynchronization
callback methods on all currently registered synchronizations.TransactionTemplate Template class that simplifies programmatic transaction demarcation and transaction exception handling.