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

public Transaction getTransactionForConnection(OTMConnection connection)
Get the current Transaction.

Returns:
the current Transaction

acquireConnection

public 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


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14