public class V10Transaction extends AbstractFbTransaction implements FbWireTransaction
FbTransaction implementation for the version 10 wire protocol.exceptionListenerDispatcher, transactionListenerDispatcher| Constructor and Description |
|---|
V10Transaction(FbWireDatabase database,
int transactionHandle,
TransactionState initialState)
Creates a new instance of V10Transaction for the specified database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit the transaction
|
protected FbWireDatabase |
getDatabase() |
int |
getHandle() |
byte[] |
getTransactionInfo(byte[] requestItems,
int maxBufferLength)
Performs a transaction info request.
|
protected XdrOutputStream |
getXdrOut() |
void |
prepare(byte[] recoveryInformation)
Prepare the transaction for two-phase commit/rollback.
|
void |
rollback()
Roll back the transaction
|
addExceptionListener, addTransactionListener, addWeakTransactionListener, finalize, getState, getSynchronizationObject, getTransactionId, getTransactionInfo, removeExceptionListener, removeTransactionListener, switchStateclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTransactionListener, addWeakTransactionListener, getState, getTransactionId, getTransactionInfo, removeTransactionListeneraddExceptionListener, removeExceptionListenerpublic V10Transaction(FbWireDatabase database, int transactionHandle, TransactionState initialState)
This can either be used for an active handle (with initialState TransactionState.ACTIVE),
or a reconnected (prepared) handle (with initialState TransactionState.PREPARED).
database - FbWireDatabase implementationtransactionHandle - Transaction handleinitialState - The initial state of the transaction (only ACTIVE or PREPARED allowed).protected final XdrOutputStream getXdrOut() throws java.sql.SQLException
java.sql.SQLExceptionprotected FbWireDatabase getDatabase()
getDatabase in class AbstractFbTransactionpublic int getHandle()
getHandle in interface FbTransactionpublic void commit()
throws java.sql.SQLException
FbTransactioncommit in interface FbTransactionjava.sql.SQLExceptionpublic void rollback()
throws java.sql.SQLException
FbTransactionrollback in interface FbTransactionjava.sql.SQLExceptionpublic void prepare(byte[] recoveryInformation)
throws java.sql.SQLException
FbTransactionprepare in interface FbTransactionrecoveryInformation - Transaction recovery information (stored in RDB$TRANSACTION_DESCRIPTION of RDB$TRANSACTIONS),
or null to prepare without recovery information.java.sql.SQLExceptionpublic byte[] getTransactionInfo(byte[] requestItems,
int maxBufferLength)
throws java.sql.SQLException
FbTransactiongetTransactionInfo in interface FbTransactionrequestItems - Information items to requestmaxBufferLength - Maximum response buffer length to usemaxBufferLengthjava.sql.SQLException - For errors retrieving the information.Copyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.