Package org.firebirdsql.jca
Interface FirebirdLocalTransaction
- All Superinterfaces:
javax.resource.spi.LocalTransaction
- All Known Implementing Classes:
FBLocalTransaction
public interface FirebirdLocalTransaction
extends javax.resource.spi.LocalTransaction
Extention of the
LocalTransaction interface
to tell whether the underlying managed connection is currently participating
in some transaction or not and to obtain the associated Xid.-
Method Summary
Modifier and TypeMethodDescriptiongetXid()Get the associated Xid.booleanCheck if managed connection is currently participating in transaction.Methods inherited from interface javax.resource.spi.LocalTransaction
begin, commit, rollback
-
Method Details
-
inTransaction
boolean inTransaction() throws javax.resource.ResourceExceptionCheck if managed connection is currently participating in transaction.- Returns:
trueif managed connection is participating in transaction.- Throws:
javax.resource.ResourceException- if operation cannot be completed.
-
getXid
Xid getXid()Get the associated Xid.- Returns:
- instance of
Xidrepresenting a transaction ID that is managed by this local transaction.
-