public abstract class AbstractFbWireStatement extends AbstractFbStatement implements FbWireStatement
exceptionListenerDispatcher, statementListenerDispatcher| Constructor and Description |
|---|
AbstractFbWireStatement(FbWireDatabase database) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
calculateBlr(RowDescriptor rowDescriptor)
Returns the (possibly cached) blr byte array for a
RowDescriptor, or null if the parameter is null. |
protected byte[] |
calculateBlr(RowDescriptor rowDescriptor,
RowValue rowValue)
Returns the blr byte array for a
RowValue, or null if the parameter is null. |
void |
close()
Close and deallocate this statement.
|
RowDescriptor |
emptyRowDescriptor() |
FbWireDatabase |
getDatabase() |
int |
getHandle() |
protected XdrInputStream |
getXdrIn()
Gets the XdrInputStream.
|
protected XdrOutputStream |
getXdrOut()
Gets the XdrOutputStream.
|
protected boolean |
isValidTransactionClass(java.lang.Class<? extends FbTransaction> transactionClass)
Method to decide if a transaction implementation class is valid for the statement implementation.
|
protected void |
setHandle(int handle) |
addExceptionListener, addStatementListener, checkStatementValid, checkStatementValid, closeCursor, closeCursor, createExecutionPlanProcessor, createSqlCountProcessor, ensureClosedCursor, finalize, free, getAllowedTimeout, getExecutionPlan, getExplainedExecutionPlan, getFieldDescriptor, getParameterDescriptionInfoRequestItems, getParameterDescriptor, getRowDescriptor, getSqlCounts, getSqlInfo, getState, getStatementInfoRequestItems, getStatementWarningCallback, getSynchronizationObject, getTimeout, getTransaction, getTransactionListener, getType, hasFields, hasSingletonResult, isAllRowsFetched, isPrepareAllowed, parseStatementInfo, queueRowData, removeExceptionListener, removeStatementListener, reset, reset, resetAll, setAllRowsFetched, setFieldDescriptor, setParameterDescriptor, setRowDescriptor, setTimeout, setTransaction, setType, signalExecute, signalFetch, switchState, validateParametersclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStatementListener, closeCursor, closeCursor, ensureClosedCursor, execute, fetchRows, getDefaultSqlInfoSize, getExecutionPlan, getExplainedExecutionPlan, getFieldDescriptor, getMaxSqlInfoSize, getParameterDescriptor, getRowDescriptor, getSqlCounts, getSqlInfo, getSqlInfo, getState, getTimeout, getTransaction, getType, prepare, removeStatementListener, setCursorName, setTimeout, setTransaction, validateParametersaddExceptionListener, removeExceptionListenerpublic AbstractFbWireStatement(FbWireDatabase database)
protected final XdrInputStream getXdrIn() throws java.sql.SQLException
java.sql.SQLException - If no connection is opened or when exceptions occur
retrieving the InputStreamprotected final XdrOutputStream getXdrOut() throws java.sql.SQLException
java.sql.SQLException - If no connection is opened or when exceptions occur
retrieving the OutputStreampublic final FbWireDatabase getDatabase()
getDatabase in interface FbStatementpublic final int getHandle()
getHandle in interface FbStatementprotected final void setHandle(int handle)
protected final byte[] calculateBlr(RowDescriptor rowDescriptor) throws java.sql.SQLException
RowDescriptor, or null if the parameter is null.rowDescriptor - The row descriptor.null when rowDescriptor is nulljava.sql.SQLException - When the RowDescriptor contains an unsupported field type.protected final byte[] calculateBlr(RowDescriptor rowDescriptor, RowValue rowValue) throws java.sql.SQLException
RowValue, or null if the parameter is null.
Contrary to calculateBlr(org.firebirdsql.gds.ng.fields.RowDescriptor), it is not allowed
to cache this value as it depends on the actual row value.
rowValue - The row value.null when rowValue is nulljava.sql.SQLException - When the RowValue contains an unsupported field type.public void close()
throws java.sql.SQLException
FbStatementclose in interface FbStatementclose in class AbstractFbStatementjava.sql.SQLExceptionprotected boolean isValidTransactionClass(java.lang.Class<? extends FbTransaction> transactionClass)
AbstractFbStatement
Eg a V10Statement will only work with an
FbWireTransaction implementation.
isValidTransactionClass in class AbstractFbStatementtransactionClass - Class of the transactiontrue when the transaction class is valid for the statement implementation.public final RowDescriptor emptyRowDescriptor()
emptyRowDescriptor in interface FbStatementCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.