org.castor.persist

Class LocalTransactionContext

public final class LocalTransactionContext extends AbstractTransactionContext

A transaction context is required in order to perform operations against the database. The transaction context is mapped to javax.transaction.Transaction for the ODMG API and into 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.

Since: 1.0

Version: $Revision: 5951 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $

Author: Ralf Joachim

Constructor Summary
LocalTransactionContext(Database db)
Create a new transaction context.
Method Summary
protected voidcloseConnections()
protected voidcommitConnections()
protected ConnectioncreateConnection(LockEngine engine)
protected voidrollbackConnections()

Constructor Detail

LocalTransactionContext

public LocalTransactionContext(Database db)
Create a new transaction context.

Parameters: db Database instance

Method Detail

closeConnections

protected void closeConnections()
{@inheritDoc }

See Also: closeConnections

commitConnections

protected void commitConnections()
{@inheritDoc }

See Also: commitConnections

createConnection

protected Connection createConnection(LockEngine engine)
{@inheritDoc }

See Also: #createConnection(org.exolab.castor.persist.LockEngine)

rollbackConnections

protected void rollbackConnections()
{@inheritDoc }

See Also: rollbackConnections

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com