程序包 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 thePlatformTransactionManagerinterface, exposing a method for executing a given callback within a transaction.ResourceHolder Generic interface to be implemented by resource holders.ResourceTransactionManager Extension of thePlatformTransactionManagerinterface, 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 theTransactionStatusinterface.DefaultTransactionDefinition Default implementation of theTransactionDefinitioninterface, offering bean-style configuration and sensible default values (PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false).DefaultTransactionStatus Default implementation of theTransactionStatusinterface, used byAbstractPlatformTransactionManager.DelegatingTransactionDefinition TransactionDefinitionimplementation that delegates all calls to a given targetTransactionDefinitioninstance.ResourceHolderSupport Convenient base class for resource holders.ResourceHolderSynchronization<H extends ResourceHolder,K> TransactionSynchronizationimplementation that manages aResourceHolderbound throughTransactionSynchronizationManager.SimpleTransactionScope A simple transaction-backedScopeimplementation, delegating toTransactionSynchronizationManager's resource binding mechanism.SimpleTransactionStatus A simpleTransactionStatusimplementation.TransactionCallbackWithoutResult Simple convenience class for TransactionCallback implementation.TransactionSynchronizationAdapter SimpleTransactionSynchronizationadapter 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 specificTransactionSynchronizationcallback methods on all currently registered synchronizations.TransactionTemplate Template class that simplifies programmatic transaction demarcation and transaction exception handling.