org.firebirdsql.jca
Class FBLocalTransaction
java.lang.Object
org.firebirdsql.jca.FBLocalTransaction
- FirebirdLocalTransaction, LocalTransaction
public class FBLocalTransaction
extends java.lang.Object
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.
void | begin() - Begin a local transaction.
|
void | commit() - Commit a local transaction.
|
Xid | getXid() - Get the associated Xid.
|
boolean | inTransaction() - Check whether a started transaction is associated with the current
database connection.
|
void | internalBegin() - Perform the internal operations to begin a local transaction.
|
void | internalCommit() - Perform the internal processing to commit a local transaction.
|
void | internalRollback() - Perform the internal processing to rollback a local transaction.
|
void | rollback() - Rollback a local transaction.
|
beginEvent
protected final ConnectionEvent beginEvent
commitEvent
protected final ConnectionEvent commitEvent
rollbackEvent
protected final ConnectionEvent rollbackEvent
begin
public void begin()
throws ResourceException
Begin a local transaction.
commit
public void commit()
throws ResourceException
Commit a local transaction.
getXid
public Xid getXid()
Get the associated Xid.
- getXid in interface FirebirdLocalTransaction
- instance of
Xid
representing a transaction ID that is
managed by this local transaction.
inTransaction
public boolean inTransaction()
throws ResourceException
Check whether a started transaction is associated with the current
database connection.
- inTransaction in interface FirebirdLocalTransaction
internalBegin
public void internalBegin()
throws ResourceException
Perform the internal operations to begin a local transaction.
internalCommit
public void internalCommit()
throws ResourceException
Perform the internal processing to commit a local transaction.
internalRollback
public void internalRollback()
throws ResourceException
Perform the internal processing to rollback a local transaction.
rollback
public void rollback()
throws ResourceException
Rollback a local transaction.
Copyright B) 2001 David Jencks and other authors. All rights reserved.