public interface FbWireDatabase extends FbDatabase, FbWireAttachment
FbWireAttachment.AcceptPacket
Modifier and Type | Method and Description |
---|---|
void |
consumePackets(int numberOfResponses,
WarningMessageCallback warningCallback)
Consumes packets notifying for warnings, but ignoring exceptions thrown from the packet.
|
void |
enqueueDeferredAction(DeferredAction deferredAction)
Enqueue a deferred action.
|
BlrCalculator |
getBlrCalculator() |
Response |
readResponse(WarningMessageCallback callback)
Reads the response from the server.
|
SqlResponse |
readSqlResponse(WarningMessageCallback callback)
Convenience method to read a Response to a SqlResponse
|
void |
releaseObject(int operation,
int objectId)
Release object.
|
addDatabaseListener, addWeakDatabaseListener, cancelEvent, cancelOperation, countEvents, createBlobForInput, createBlobForOutput, createBlobParameterBuffer, createDatabase, createEventHandle, createStatement, createTransactionParameterBuffer, dropDatabase, emptyRowDescriptor, executeImmediate, getConnectionDialect, getConnectionProperties, getDatabaseDialect, getDatabaseInfo, getDatabaseInfo, getHandle, getOdsMajor, getOdsMinor, queueEvent, reconnectTransaction, removeDatabaseListener, startTransaction
authReceiveResponse, getXdrStreamAccess, readGenericResponse
attach, close, getDatatypeCoder, getEncoding, getEncodingFactory, getServerVersion, getSynchronizationObject, isAttached
addExceptionListener, removeExceptionListener
Response readResponse(WarningMessageCallback callback) throws java.sql.SQLException, java.io.IOException
callback
- Callback object for warnings, null
for default callbackResponse
read.java.sql.SQLException
- For errors returned from the server, or when attempting to readjava.io.IOException
- For errors reading the response from the connection.void releaseObject(int operation, int objectId) throws java.sql.SQLException
operation
- OperationobjectId
- Id of the object to releasejava.sql.SQLException
SqlResponse readSqlResponse(WarningMessageCallback callback) throws java.sql.SQLException, java.io.IOException
callback
- Callback object for warnings, null
for default callbackjava.sql.SQLException
- For errors returned from the server, or when attempting to
read.java.io.IOException
- For errors reading the response from the connection.BlrCalculator getBlrCalculator()
BlrCalculator
instance for this database.void enqueueDeferredAction(DeferredAction deferredAction)
FbDatabase implementations that do not support deferred actions are allowed to throw an
UnsupportedOperationException
deferredAction
- Deferred actionvoid consumePackets(int numberOfResponses, WarningMessageCallback warningCallback)
This method should only be used inside the implementation if either packets need to be ignored, or to ensure that there is no backlog of packets (eg when an exception occurs during processing of multiple package responses).
numberOfResponses
- Number of responses to consume.warningCallback
- Callback for warningsCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.