org.exolab.castor.jdo.engine

Class TransactionContextImpl

final class TransactionContextImpl extends TransactionContext

A transaction context is required in order to perform operations against the database. The transaction context is mapped to {@link javax.transaction.Transaction} for the ODMG API and into {@link javax.transaction.xa.XAResource} for XA databases. The only way to begin a new transaction is through the creation of a new transaction context. All database access must be performed through a transaction context.

Version: $Revision: 1.2 $ $Date: 2003/03/03 17:14:16 $

Author: Assaf Arkin

Constructor Summary
TransactionContextImpl(Database db, boolean globalTx)
Create a new transaction context.
Method Summary
protected voidcloseConnections()
protected voidcommitConnections()
ObjectgetConnection(LockEngine engine)
protected voidrollbackConnections()

Constructor Detail

TransactionContextImpl

public TransactionContextImpl(Database db, boolean globalTx)
Create a new transaction context.

Method Detail

closeConnections

protected void closeConnections()

commitConnections

protected void commitConnections()

getConnection

public Object getConnection(LockEngine engine)

rollbackConnections

protected void rollbackConnections()
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com