public class TransactionHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NO_TRANSACTION_ACTIVE |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkTransactionActive(FbTransaction transaction)
Checks if this statement has a transaction and that the transaction is
TransactionState.ACTIVE. |
static void |
checkTransactionActive(FbTransaction transaction,
int fbErrorCode)
Checks if this statement has a transaction and that the transaction is
TransactionState.ACTIVE. |
public static final java.lang.String NO_TRANSACTION_ACTIVE
public static void checkTransactionActive(FbTransaction transaction) throws java.sql.SQLException
TransactionState.ACTIVE.transaction - The transaction to checkjava.sql.SQLException - When this statement does not have a transaction, or if that transaction is not active.public static void checkTransactionActive(FbTransaction transaction, int fbErrorCode) throws java.sql.SQLException
TransactionState.ACTIVE.transaction - The transaction to checkfbErrorCode - Firebird error code to use for generating the exception messagejava.sql.SQLException - When this statement does not have a transaction, or if that transaction is not active.Copyright © 2001-2023 Jaybird (Firebird JDBC) team. All rights reserved.