|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.firebirdsql.jca.FBLocalTransaction
public class FBLocalTransaction
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.
| Nested Class Summary | |
|---|---|
static class |
FBLocalTransaction.FBLocalXid
|
| Field Summary | |
|---|---|
protected javax.resource.spi.ConnectionEvent |
beginEvent
|
protected javax.resource.spi.ConnectionEvent |
commitEvent
|
protected FBManagedConnection |
mc
|
protected javax.resource.spi.ConnectionEvent |
rollbackEvent
|
protected javax.transaction.xa.Xid |
xid
|
| Constructor Summary | |
|---|---|
FBLocalTransaction(FBManagedConnection mc,
AbstractConnection c)
|
|
| Method Summary | |
|---|---|
void |
begin()
Begin a local transaction. |
void |
commit()
Commit a local transaction. |
javax.transaction.xa.Xid |
getXid()
Get the associated Xid. |
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. |
boolean |
inTransaction()
Check whether a started transaction is associated with the current database connection. |
void |
rollback()
Rollback a local transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final FBManagedConnection mc
protected javax.transaction.xa.Xid xid
protected final javax.resource.spi.ConnectionEvent beginEvent
protected final javax.resource.spi.ConnectionEvent commitEvent
protected final javax.resource.spi.ConnectionEvent rollbackEvent
| Constructor Detail |
|---|
public FBLocalTransaction(FBManagedConnection mc,
AbstractConnection c)
| Method Detail |
|---|
public javax.transaction.xa.Xid getXid()
getXid in interface FirebirdLocalTransactionFBLocalTransaction.FBLocalXid representing a transaction ID that is
managed by this local transaction.
public boolean inTransaction()
throws javax.resource.ResourceException
inTransaction in interface FirebirdLocalTransactiontrue if managed connection is participating in
transaction.
javax.resource.ResourceException - if operation cannot be completed.
public void begin()
throws javax.resource.ResourceException
begin in interface javax.resource.cci.LocalTransactionjavax.resource.ResourceException - generic exception if operation fails
javax.resource.spi.LocalTransactionException - error condition related to local transaction management
javax.resource.spi.ResourceAdapterInternalException - error condition internal to resource adapter
javax.resource.spi.EISSystemException - EIS instance specific error condition
public void internalBegin()
throws javax.resource.ResourceException
javax.resource.ResourceException - generic exception if operation fails
javax.resource.spi.LocalTransactionException - error condition related to local transaction management
javax.resource.spi.ResourceAdapterInternalException - error condition internal to resource adapter
javax.resource.spi.EISSystemException - EIS instance specific error condition
public void commit()
throws javax.resource.ResourceException
commit in interface javax.resource.cci.LocalTransactionjavax.resource.ResourceException - generic exception if operation fails
javax.resource.spi.LocalTransactionException - error condition related to local transaction management
javax.resource.spi.ResourceAdapterInternalException - error condition internal to resource adapter
javax.resource.spi.EISSystemException - EIS instance specific error condition
public void internalCommit()
throws javax.resource.ResourceException
javax.resource.ResourceException - generic exception if operation fails
javax.resource.spi.LocalTransactionException - error condition related to local transaction management
javax.resource.spi.ResourceAdapterInternalException - error condition internal to resource adapter
javax.resource.spi.EISSystemException - EIS instance specific error condition
public void rollback()
throws javax.resource.ResourceException
rollback in interface javax.resource.cci.LocalTransactionjavax.resource.ResourceException - -
generic exception if operation fails
javax.resource.spi.LocalTransactionException - -
error condition related to local transaction management
javax.resource.spi.ResourceAdapterInternalException - -
error condition internal to resource adapter
javax.resource.spi.EISSystemException - -
EIS instance specific error condition
public void internalRollback()
throws javax.resource.ResourceException
javax.resource.ResourceException - -
generic exception if operation fails
javax.resource.spi.LocalTransactionException - -
error condition related to local transaction management
javax.resource.spi.ResourceAdapterInternalException - -
error condition internal to resource adapter
javax.resource.spi.EISSystemException - -
EIS instance specific error condition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||