org.apache.ojb.otm.transaction
Class ManagedTransactionFactory
java.lang.Object
org.apache.ojb.otm.transaction.ManagedTransactionFactory
- All Implemented Interfaces:
- TransactionFactory
public abstract class ManagedTransactionFactory
- extends Object
- implements TransactionFactory
Factory for OTM Transactions within a managed environment (JTA).
- Author:
- Raghu Rajah
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_transactionMap
private HashMap _transactionMap
tm
private TransactionManager tm
ManagedTransactionFactory
public ManagedTransactionFactory()
- Constructor for ManagedTransactionFactory.
getTransactionForConnection
public Transaction getTransactionForConnection(OTMConnection connection)
- Description copied from interface:
TransactionFactory
- Get the current Transaction.
- Specified by:
getTransactionForConnection
in interface TransactionFactory
- Returns:
- the current Transaction
- See Also:
TransactionFactory.getTransactionForConnection(OTMConnection)
acquireConnection
public OTMConnection acquireConnection(PBKey pbKey)
- Description copied from interface:
TransactionFactory
- Acquire new connection. Creates a new connection. Depending on the implementation of the
factory the connection could be associated to an existing transaction, or not.
- Specified by:
acquireConnection
in interface TransactionFactory
- Returns:
- new connection
- See Also:
TransactionFactory.acquireConnection(org.apache.ojb.broker.PBKey)
getJTATransaction
public Transaction getJTATransaction()
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.