org.apache.ojb.otm.transaction
Class LocalTransactionFactory
java.lang.Object
org.apache.ojb.otm.transaction.LocalTransactionFactory
- All Implemented Interfaces:
- TransactionFactory
public class LocalTransactionFactory
- extends Object
- implements TransactionFactory
Factory for local transactions. Each OTMConnection is associated with exactly one transaction.
- Author:
- Raghu Rajah
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalTransactionFactory
public LocalTransactionFactory()
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(PBKey)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.