org.apache.ojb.otm.transaction
Interface TransactionFactory

All Known Implementing Classes:
LocalTransactionFactory, ManagedTransactionFactory

public interface TransactionFactory

Factory to fetch current transaction. The various implementations will handle the different implementation sceanrios, like managed and unmanaged platforms.

Author:
Raghu Rajah

Method Summary
 OTMConnection acquireConnection(PBKey pbKey)
          Acquire new connection.
 Transaction getTransactionForConnection(OTMConnection connection)
          Get the current Transaction.
 

Method Detail

getTransactionForConnection

Transaction getTransactionForConnection(OTMConnection connection)
Get the current Transaction.

Returns:
the current Transaction

acquireConnection

OTMConnection acquireConnection(PBKey pbKey)
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.

Returns:
new connection


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.