Package org.firebirdsql.jaybird.xca
Class FBLocalTransaction
- java.lang.Object
- 
- org.firebirdsql.jaybird.xca.FBLocalTransaction
 
- 
 public final class FBLocalTransaction extends java.lang.ObjectThe classFBLocalTransactionrepresent a local, not distributed, transaction. A flag is used to distinguish the current functionality. This class works by delegating the operations to the internal implementation of the XAResource functionality in FBManagedConnection.- Author:
- David Jencks
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()Begin a local transaction.voidcommit()Commit a local transaction.booleaninTransaction()Check if managed connection is currently participating in transaction.voidrollback()Rollback a local transaction.
 
- 
- 
- 
Method Detail- 
inTransactionpublic boolean inTransaction() throws java.sql.SQLExceptionCheck if managed connection is currently participating in transaction.- Returns:
- trueif managed connection is participating in transaction.
- Throws:
- java.sql.SQLException- if operation cannot be completed.
 
 - 
beginpublic void begin() throws java.sql.SQLExceptionBegin a local transaction.- Throws:
- java.sql.SQLException- generic exception if operation fails
 
 - 
commitpublic void commit() throws java.sql.SQLExceptionCommit a local transaction.- Throws:
- java.sql.SQLException- generic exception if operation fails
 
 - 
rollbackpublic void rollback() throws java.sql.SQLExceptionRollback a local transaction.- Throws:
- java.sql.SQLException- generic exception if operation fails
 
 
- 
 
-