org.firebirdsql.jca
Class FBLocalTransaction

java.lang.Object
  extended byorg.firebirdsql.jca.FBLocalTransaction
All Implemented Interfaces:
javax.resource.cci.LocalTransaction, javax.resource.spi.LocalTransaction

public class FBLocalTransaction
extends java.lang.Object
implements javax.resource.spi.LocalTransaction, javax.resource.cci.LocalTransaction

The class FBLocalTransaction implements LocalTransaction both in the cci and spi meanings. A flag is used to distinguish the current functionality. This class works by delegating the operations to the internal implementations of the XAResource functionality in FBManagedConnection.

Version:
1.0
Author:
David Jencks

Constructor Summary
FBLocalTransaction(FBManagedConnection mc, AbstractConnection c)
           
 
Method Summary
 void begin()
          Begin a local transaction Throws: ResourceException - generic exception if operation fails LocalTransactionException - error condition related to local transaction management ResourceAdapterInternalException - error condition internal to resource adapter EISSystemException - EIS instance specific error condition
 void commit()
          Commit a local transaction Throws: ResourceException - generic exception if operation fails LocalTransactionException - error condition related to local transaction management ResourceAdapterInternalException - error condition internal to resource adapter EISSystemException - EIS instance specific error condition
 void internalBegin()
           
 void internalCommit()
           
 void internalRollback()
           
 void rollback()
          Rollback a local transaction Throws: ResourceException - generic exception if operation fails LocalTransactionException - error condition related to local transaction management ResourceAdapterInternalException - error condition internal to resource adapter EISSystemException - EIS instance specific error condition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FBLocalTransaction

public FBLocalTransaction(FBManagedConnection mc,
                          AbstractConnection c)
Method Detail

begin

public void begin()
           throws javax.resource.ResourceException
Begin a local transaction Throws: ResourceException - generic exception if operation fails LocalTransactionException - error condition related to local transaction management ResourceAdapterInternalException - error condition internal to resource adapter EISSystemException - EIS instance specific error condition

Specified by:
begin in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException

internalBegin

public void internalBegin()
                   throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

commit

public void commit()
            throws javax.resource.ResourceException
Commit a local transaction Throws: ResourceException - generic exception if operation fails LocalTransactionException - error condition related to local transaction management ResourceAdapterInternalException - error condition internal to resource adapter EISSystemException - EIS instance specific error condition

Specified by:
commit in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException

internalCommit

public void internalCommit()
                    throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

rollback

public void rollback()
              throws javax.resource.ResourceException
Rollback a local transaction Throws: ResourceException - generic exception if operation fails LocalTransactionException - error condition related to local transaction management ResourceAdapterInternalException - error condition internal to resource adapter EISSystemException - EIS instance specific error condition

Specified by:
rollback in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException

internalRollback

public void internalRollback()
                      throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException


Copyright © 2001 David Jencks and other authors. All rights reserved.