com.rhi.architecture.xa
Class JDOTransactionImpl

java.lang.Object
  extended bycom.rhi.architecture.xa.JDOTransactionImpl
All Implemented Interfaces:
JDOTransaction, Transaction

public class JDOTransactionImpl
extends java.lang.Object
implements JDOTransaction

Interface for managing JDO database transactions. This is not intended to be a distributed transaction class.

Since:
1.0
Author:
Pete McKinstry

Field Summary
 
Fields inherited from interface com.rhi.architecture.xa.Transaction
TYPE_KEY
 
Constructor Summary
JDOTransactionImpl()
          default constructor
 
Method Summary
 void begin()
          Start a new transaction.
 void commit()
          Commit the transaction represented by this object.
 org.exolab.castor.jdo.Database getDatabase()
          Get the connection associated w/ this DatabaseTransaction
 void rollback()
          Rollback the transaction represented by this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOTransactionImpl

public JDOTransactionImpl()
default constructor

Since:
1.0
Method Detail

getDatabase

public org.exolab.castor.jdo.Database getDatabase()
Get the connection associated w/ this DatabaseTransaction

Specified by:
getDatabase in interface JDOTransaction
Returns:
Database
Since:
1.0

begin

public void begin()
           throws TransactionException
Start a new transaction.

Specified by:
begin in interface JDOTransaction
Throws:
TransactionException
Since:
1.0

commit

public void commit()
            throws TransactionException
Commit the transaction represented by this object.

Specified by:
commit in interface JDOTransaction
Throws:
TransactionException
Since:
1.0

rollback

public void rollback()
              throws TransactionException
Rollback the transaction represented by this object.

Specified by:
rollback in interface JDOTransaction
Throws:
TransactionException
Since:
1.0


Copyright © 2002-2004 Robert Half International. All Rights Reserved.