public final class FBLocalTransaction
extends java.lang.Object
FBLocalTransaction
represent 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.Modifier and Type | Method and Description |
---|---|
void |
begin()
Begin a local transaction.
|
void |
commit()
Commit a local transaction.
|
boolean |
inTransaction()
Check if managed connection is currently participating in transaction.
|
void |
rollback()
Rollback a local transaction.
|
public boolean inTransaction() throws java.sql.SQLException
true
if managed connection is participating in transaction.java.sql.SQLException
- if operation cannot be completed.public void begin() throws java.sql.SQLException
java.sql.SQLException
- generic exception if operation failspublic void commit() throws java.sql.SQLException
java.sql.SQLException
- generic exception if operation failspublic void rollback() throws java.sql.SQLException
java.sql.SQLException
- generic exception if operation failsCopyright © 2001-2023 Jaybird (Firebird JDBC) team. All rights reserved.