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, closeCursor, closeCursor, createExecutionPlanProcessor, createSqlCountProcessor, ensureClosedCursor, finalize, free, getExecutionPlan, getFieldDescriptor, getParameterDescriptionInfoRequestItems, getParameterDescriptor, getSqlCounts, getSqlInfo, getState, getStatementInfoRequestItems, getStatementWarningCallback, getSynchronizationObject, getTransaction, getTransactionListener, getType, hasFields, hasSingletonResult, isAllRowsFetched, isPrepareAllowed, parseStatementInfo, queueRowData, removeExceptionListener, removeStatementListener, reset, reset, resetAll, setAllRowsFetched, setFieldDescriptor, setParameterDescriptor, setTransaction, setType, switchState, validateParameters
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatementListener, closeCursor, closeCursor, ensureClosedCursor, execute, fetchRows, getDefaultSqlInfoSize, getExecutionPlan, getFieldDescriptor, getMaxSqlInfoSize, getParameterDescriptor, getSqlCounts, getSqlInfo, getSqlInfo, getState, getTransaction, getType, prepare, removeStatementListener, setCursorName, setTransaction
addExceptionListener, removeExceptionListener
public 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 FbStatement
public final int getHandle()
getHandle
in interface FbStatement
protected 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 null
java.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 null
java.sql.SQLException
- When the RowValue
contains an unsupported field type.public void close() throws java.sql.SQLException
FbStatement
close
in interface FbStatement
close
in class AbstractFbStatement
java.sql.SQLException
protected boolean isValidTransactionClass(java.lang.Class<? extends FbTransaction> transactionClass)
AbstractFbStatement
Eg a V10Statement
will only work with an
FbWireTransaction
implementation.
isValidTransactionClass
in class AbstractFbStatement
transactionClass
- Class of the transactiontrue
when the transaction class is valid for the statement implementation.public final RowDescriptor emptyRowDescriptor()
emptyRowDescriptor
in interface FbStatement
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.