|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.transaction.jta.SimpleTransactionFactory
public class SimpleTransactionFactory
Default implementation of the TransactionFactory strategy interface,
simply wrapping a standard JTA TransactionManager.
Does not support transaction names; simply ignores any specified name.
TransactionManager.setTransactionTimeout(int),
TransactionManager.begin(),
TransactionManager.getTransaction()| Constructor Summary | |
|---|---|
SimpleTransactionFactory(TransactionManager transactionManager)
Create a new SimpleTransactionFactory for the given TransactionManager |
|
| Method Summary | |
|---|---|
Transaction |
createTransaction(String name,
int timeout)
Create an active Transaction object based on the given name and timeout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTransactionFactory(TransactionManager transactionManager)
transactionManager - the JTA TransactionManager to wrap| Method Detail |
|---|
public Transaction createTransaction(String name, int timeout) throws NotSupportedException, SystemException
TransactionFactory
createTransaction in interface TransactionFactoryname - the transaction name (may be null)timeout - the transaction timeout (may be -1 for the default timeout)
null)
NotSupportedException - if the transaction manager does not support
a transaction of the specified type
SystemException - if the transaction managed failed to create the
transaction
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||