com.rhi.architecture.xa
Interface DatabaseTransaction

All Superinterfaces:
Transaction
All Known Implementing Classes:
DatabaseTransactionImpl

public interface DatabaseTransaction
extends Transaction

Interface for managing database transactions.

Since:
1.0
Author:
Pete McKinstry

Field Summary
 
Fields inherited from interface com.rhi.architecture.xa.Transaction
TYPE_KEY
 
Method Summary
 void begin()
          Start a new transaction.
 void commit()
          Commit the transaction represented by this object.
 java.sql.Connection getConnection()
          Get the connection associated w/ this DatabaseTransaction
 void rollback()
          Rollback the transaction represented by this object.
 

Method Detail

getConnection

public java.sql.Connection getConnection()
Get the connection associated w/ this DatabaseTransaction

Returns:
Connection
Since:
1.0

begin

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

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

commit

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

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

rollback

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

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


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