Package org.firebirdsql.gds.ng
Class TransactionHelper
java.lang.Object
org.firebirdsql.gds.ng.TransactionHelper
Class with static helper methods for use with transactions
- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckTransactionActive(FbTransaction transaction) Checks if this statement has a transaction and that the transaction isTransactionState.ACTIVE.static voidcheckTransactionActive(FbTransaction transaction, int fbErrorCode) Checks if this statement has a transaction and that the transaction isTransactionState.ACTIVE.
-
Field Details
-
NO_TRANSACTION_ACTIVE
- See Also:
-
-
Method Details
-
checkTransactionActive
Checks if this statement has a transaction and that the transaction isTransactionState.ACTIVE.- Parameters:
transaction- The transaction to check- Throws:
SQLException- When this statement does not have a transaction, or if that transaction is not active.
-
checkTransactionActive
public static void checkTransactionActive(FbTransaction transaction, int fbErrorCode) throws SQLException Checks if this statement has a transaction and that the transaction isTransactionState.ACTIVE.- Parameters:
transaction- The transaction to checkfbErrorCode- Firebird error code to use for generating the exception message- Throws:
SQLException- When this statement does not have a transaction, or if that transaction is not active.
-