public class V16Statement extends V13Statement
exceptionListenerDispatcher, statementListenerDispatcher
Constructor and Description |
---|
V16Statement(FbWireDatabase database)
Creates a new instance of V16Statement for the specified database.
|
Modifier and Type | Method and Description |
---|---|
void |
batchCancel()
Cancels the server side batch (that is, clear any rows batched on the server).
|
BatchCompletion |
batchExecute()
Execute the batch on the server.
|
BatchParameterBuffer |
createBatchParameterBuffer()
Creates a
BatchParameterBuffer instance compatible with this protocol version. |
void |
deferredBatchCreate(FbBatchConfig batchConfig,
DeferredResponse<java.lang.Void> onResponse)
Sends batch create with deferred response processing.
|
void |
deferredBatchRelease(DeferredResponse<java.lang.Void> onResponse)
Closes (releases) the batch on the server with deferred response processing.
|
void |
deferredBatchSend(java.util.Collection<RowValue> rowValues,
DeferredResponse<java.lang.Void> onResponse)
Sends batch data with deferred response processing.
|
protected void |
sendBatchCreate(FbBatchConfig batchConfig) |
protected void |
sendBatchMsg(java.util.Collection<RowValue> rowValues) |
protected void |
sendExecute(int operation,
RowValue parameters)
Sends the execute (for
op_execute or op_execute2 ) to the database. |
boolean |
supportBatchUpdates()
Reports whether this statement implementation supports server-side batch updates.
|
readSqlData, writeSqlData, writeSqlData
free, prepare
doFreePacket, execute, fetchRows, getDefaultSqlInfoSize, getMaxSqlInfoSize, processAllocateResponse, processExecuteResponse, processExecuteSingletonResponse, processFetchResponse, processFreeResponse, processPrepareResponse, readColumnData, sendAllocate, sendFetch, sendFree, sendPrepare, setCursorName, writeColumnData
calculateBlr, calculateBlr, close, emptyRowDescriptor, getBlrCalculator, getDatabase, getHandle, getInfo, getSqlInfo, getXdrIn, getXdrOut, isValidTransactionClass, setHandle, withLock, wrapDeferredResponse
addExceptionListener, addStatementListener, checkStatementValid, checkStatementValid, closeCursor, closeCursor, createExecutionPlanProcessor, createSqlCountProcessor, ensureClosedCursor, fetchScroll, fetchScrollImpl, finalize, forceState, getAllowedTimeout, getCursorInfo, getCursorInfo, getCursorInfoImpl, getExecutionPlan, getExplainedExecutionPlan, getParameterDescriptionInfoRequestItems, getParameterDescriptor, getRowDescriptor, getSqlCounts, getSqlInfo, getState, getStatementInfoRequestItems, getStatementWarningCallback, getTimeout, getTransaction, getTransactionListener, getType, hasFetched, hasFields, hasSingletonResult, isAfterLast, isBeforeFirst, isPrepareAllowed, parseStatementInfo, queueRowData, removeExceptionListener, removeStatementListener, reset, reset, resetAll, setAfterLast, setBeforeFirst, setParameterDescriptor, setRowDescriptor, setTimeout, setTransaction, setType, signalExecute, signalFetch, switchState, unprepare, validateParameters
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatementListener, clearCursorFlag, close, closeCursor, closeCursor, emptyRowDescriptor, ensureClosedCursor, fetchScroll, getCursorInfo, getCursorInfo, getDatabase, getExecutionPlan, getExplainedExecutionPlan, getHandle, getParameterDescriptor, getRowDescriptor, getSqlCounts, getSqlInfo, getSqlInfo, getState, getTimeout, getTransaction, getType, hasFetched, isCursorFlagSet, removeStatementListener, setCursorFlag, setTimeout, setTransaction, supportsCursorInfo, supportsFetchScroll, unprepare, validateParameters, withLock
addExceptionListener, removeExceptionListener
public V16Statement(FbWireDatabase database)
database
- FbWireDatabase implementationprotected void sendExecute(int operation, RowValue parameters) throws java.io.IOException, java.sql.SQLException
V10Statement
op_execute
or op_execute2
) to the database.sendExecute
in class V10Statement
operation
- Operation (op_execute
or op_execute2
)parameters
- Parametersjava.io.IOException
java.sql.SQLException
public boolean supportBatchUpdates()
FbStatement
true
server-side batch updates supported, false
if not supported (default implementation
returns false
)public BatchParameterBuffer createBatchParameterBuffer() throws java.sql.SQLException
FbStatement
BatchParameterBuffer
instance compatible with this protocol version.java.sql.SQLException
- if this statement is closed, or a database access error occurs, or when the parameter buffer could not be
created for other reasonsjava.sql.SQLFeatureNotSupportedException
- when this statement implementation does not support batch updatesFbStatement.supportBatchUpdates()
public void deferredBatchCreate(FbBatchConfig batchConfig, DeferredResponse<java.lang.Void> onResponse) throws java.sql.SQLException
FbStatement
Implementations that do not supported deferred or async response processing should call
DeferredResponse.onResponse(Object)
and - optionally - DeferredResponse.onException(Exception)
synchronously. If the response is deferred, but the implementation is not capable of connecting the response
back, it should call onResponse
before method return, and any exceptions generated by deferred processing
should then be thrown from the method that causes the response to be received.
batchConfig
- batch configurationonResponse
- deferred action to call when response is receivedjava.sql.SQLException
- for database access errors (I/O errors)java.sql.SQLFeatureNotSupportedException
- when this statement implementation does not support batch updatesFbStatement.supportBatchUpdates()
protected void sendBatchCreate(FbBatchConfig batchConfig) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void deferredBatchSend(java.util.Collection<RowValue> rowValues, DeferredResponse<java.lang.Void> onResponse) throws java.sql.SQLException
FbStatement
For implementations that do not supported deferred or async response processing, see
FbStatement.deferredBatchCreate(FbBatchConfig, DeferredResponse)
for expected behaviour.
rowValues
- collection of row valuesonResponse
- deferred action to call when response is receivedjava.sql.SQLException
- for database access errors (I/O errors)java.sql.SQLFeatureNotSupportedException
- when this statement implementation does not support batch updatesFbStatement.supportBatchUpdates()
protected void sendBatchMsg(java.util.Collection<RowValue> rowValues) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public BatchCompletion batchExecute() throws java.sql.SQLException
FbStatement
java.sql.SQLException
- for database access errorsjava.sql.SQLFeatureNotSupportedException
- when this statement implementation does not support batch updatesFbStatement.supportBatchUpdates()
public void batchCancel() throws java.sql.SQLException
FbStatement
java.sql.SQLException
- for database access errorsjava.sql.SQLFeatureNotSupportedException
- when this statement implementation does not support batch updatesFbStatement.supportBatchUpdates()
public void deferredBatchRelease(DeferredResponse<java.lang.Void> onResponse) throws java.sql.SQLException
FbStatement
For implementations that do not supported deferred or async response processing, see
FbStatement.deferredBatchCreate(FbBatchConfig, DeferredResponse)
for expected behaviour.
onResponse
- deferred action to call when response is receivedjava.sql.SQLException
- for database access errorsjava.sql.SQLFeatureNotSupportedException
- when this statement implementation does not support batch updatesFbStatement.supportBatchUpdates()
Copyright © 2001-2023 Jaybird (Firebird JDBC) team. All rights reserved.