com.rhi.architecture.xa
Interface Transaction

All Known Subinterfaces:
DatabaseTransaction, JDOTransaction
All Known Implementing Classes:
DatabaseTransactionImpl, JDOTransactionImpl, NullTransaction

public interface Transaction

Interface for managing transactions.

Since:
1.0
Author:
Pete McKinstry

Field Summary
static java.lang.String TYPE_KEY
          name of configuration key for Transaction type to be used.
 
Method Summary
 void begin()
          Start a new transaction.
 void commit()
          Commit the transaction represented by this object.
 void rollback()
          Rollback the transaction represented by this object.
 

Field Detail

TYPE_KEY

public static final java.lang.String TYPE_KEY
name of configuration key for Transaction type to be used.

See Also:
Constant Field Values
Method Detail

begin

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

Throws:
TransactionException
Since:
1.0

commit

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

Throws:
TransactionException
Since:
1.0

rollback

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

Throws:
TransactionException
Since:
1.0


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