Top Description Methods
org.springframework.transaction.support

public Interface ResourceTransactionManager

extends PlatformTransactionManager
Imports
org.springframework.transaction.PlatformTransactionManager

Extension of the org.springframework.transaction.PlatformTransactionManager interface, indicating a native resource transaction manager, operating on a single target resource. Such transaction managers differ from JTA transaction managers in that they do not use XA transaction enlistment for an open number of resources but rather focus on leveraging the native power and simplicity of a single target resource.

This interface is mainly used for abstract introspection of a transaction manager, giving clients a hint on what kind of transaction manager they have been given and on what concrete resource the transaction manager is operating on.

Author
Juergen Hoeller
Since
2.0.4
See Also
TransactionSynchronizationManager

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the target resource factory (never null)
getResourceFactory
()

Return the resource factory that this transaction manager operates on, e.g. a JDBC DataSource or a JMS ConnectionFactory.

Inherited from org.springframework.transaction.PlatformTransactionManager:
commitgetTransactionrollback

Method Detail

getResourceFactoryback to summary
public Object getResourceFactory()

Return the resource factory that this transaction manager operates on, e.g. a JDBC DataSource or a JMS ConnectionFactory.

This target resource factory is usually used as resource key for TransactionSynchronizationManager's resource bindings per thread.

Returns:Object

the target resource factory (never null)

See Also
TransactionSynchronizationManager#bindResource, TransactionSynchronizationManager#getResource