| org.springframework.transaction.jta.TransactionFactory
All known Subclasses: org.springframework.transaction.jta.SimpleTransactionFactory, org.springframework.transaction.jta.JtaTransactionManager,
TransactionFactory | public interface TransactionFactory (Code) | | Strategy interface for creating JTA
javax.transaction.Transaction objects based on specified transactional characteristics.
The default implementation,
SimpleTransactionFactory , simply
wraps a standard JTA
javax.transaction.TransactionManager .
This strategy interface allows for more sophisticated implementations
that adapt to vendor-specific JTA extensions.
author: Juergen Hoeller since: 2.5 See Also: javax.transaction.TransactionManager.getTransaction See Also: SimpleTransactionFactory See Also: JtaTransactionManager |
Method Summary | |
Transaction | createTransaction(String name, int timeout) Create an active Transaction object based on the given name and timeout. |
createTransaction | Transaction createTransaction(String name, int timeout) throws NotSupportedException, SystemException(Code) | | Create an active Transaction object based on the given name and timeout.
Parameters: name - the transaction name (may be null ) Parameters: timeout - the transaction timeout (may be -1 for the default timeout) the active Transaction object (never null ) throws: NotSupportedException - if the transaction manager does not supporta transaction of the specified type throws: SystemException - if the transaction managed failed to create thetransaction |
|
|