java.lang.Object
- All Implemented Interfaces:
AutoCloseable,FbAttachment,FbDatabase,ExceptionListenable,TransactionListener,FbWireAttachment,FbWireDatabase
FbWireDatabase implementation for the version 19 wire protocol.- Since:
- 6.0.2
- Author:
- Mark Rotteveel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.firebirdsql.gds.ng.wire.FbWireAttachment
FbWireAttachment.AcceptPacket -
Field Summary
Fields inherited from class org.firebirdsql.gds.ng.wire.AbstractFbWireDatabase
protocolDescriptor, wireOperationsFields inherited from class org.firebirdsql.gds.ng.AbstractFbDatabase
databaseListenerDispatcherFields inherited from class org.firebirdsql.gds.ng.AbstractFbAttachment
connection, exceptionListenerDispatcher -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedV19Database(WireDatabaseConnection connection, ProtocolDescriptor descriptor) Creates a V19Database instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateBlobForInput(FbTransaction transaction, BlobParameterBuffer blobParameterBuffer, long blobId) Creates a blob for read access to an existing blob on the server.protected voidregisterInlineBlob(FbWireTransaction transaction, InlineBlob inlineBlob) Methods inherited from class org.firebirdsql.gds.ng.wire.version12.V12Database
cancelOperation, getFilenameEncodingMethods inherited from class org.firebirdsql.gds.ng.wire.version11.V11Database
releaseObjectMethods inherited from class org.firebirdsql.gds.ng.wire.version10.V10Database
afterAttachActions, attach, attachOrCreate, authReceiveResponse, createDatabase, createStatement, doReleaseObjectPacket, dropDatabase, executeImmediate, getBlrCalculator, initAsynchronousChannel, internalDetach, processAttachOrCreateResponse, processReleaseObjectResponse, reconnectTransaction, sendAttachOrCreateToBuffer, startTransaction, startTransactionMethods inherited from class org.firebirdsql.gds.ng.wire.AbstractFbWireDatabase
cancelEvent, checkAttached, checkConnected, closeConnection, completeDeferredActions, consumePackets, countEvents, createBlobForOutput, createEventHandle, enqueueDeferredAction, forceClose, getDatabaseInfo, getHandle, getInfo, getWireOperations, getXdrIn, getXdrOut, getXdrStreamAccess, isAttached, queueEvent, readGenericResponse, readResponse, readSqlResponse, setNetworkTimeoutMethods inherited from class org.firebirdsql.gds.ng.AbstractFbDatabase
addDatabaseListener, addWeakDatabaseListener, close, createBlobParameterBuffer, createTransactionParameterBuffer, emptyRowDescriptor, getActiveTransactionCount, getConnectionDialect, getConnectionProperties, getDatabaseDialect, getDatabaseInfo, getDatabaseInformationProcessor, getDatabaseWarningCallback, getDescribeDatabaseInfoBlock, getOdsMajor, getOdsMinor, getOdsVersion, getParameterDescriptionInfoRequestItems, getStatementInfoRequestItems, getTransactionIdBuffer, removeDatabaseListener, setDatabaseDialect, setOdsMajor, setOdsMinor, transactionAdded, transactionStateChangedMethods inherited from class org.firebirdsql.gds.ng.AbstractFbAttachment
addExceptionListener, getDatatypeCoder, getEncoding, getEncodingFactory, getNetworkTimeout, getServerVersion, isLockedByCurrentThread, removeExceptionListener, requireNotAttached, safelyDetach, setAttached, setDetached, setServerVersion, withLockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.firebirdsql.gds.ng.listeners.ExceptionListenable
addExceptionListener, removeExceptionListenerMethods inherited from interface org.firebirdsql.gds.ng.FbAttachment
close, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getNetworkTimeout, getServerVersion, isAttached, isLockedByCurrentThread, setNetworkTimeout, withLockMethods inherited from interface org.firebirdsql.gds.ng.FbDatabase
addDatabaseListener, addWeakDatabaseListener, cancelEvent, countEvents, createBlobForInput, createBlobForInput, createBlobForOutput, createBlobForOutput, createBlobForOutput, createBlobParameterBuffer, createEventHandle, createTransactionParameterBuffer, emptyRowDescriptor, getConnectionDialect, getConnectionProperties, getDatabaseDialect, getDatabaseInfo, getDatabaseInfo, getHandle, getOdsMajor, getOdsMinor, getOdsVersion, queueEvent, removeDatabaseListenerMethods inherited from interface org.firebirdsql.gds.ng.wire.FbWireAttachment
getWireOperations, getXdrStreamAccess, readGenericResponseMethods inherited from interface org.firebirdsql.gds.ng.wire.FbWireDatabase
completeDeferredActions, consumePackets, enqueueDeferredAction, getInfo, readResponse, readSqlResponse
-
Constructor Details
-
V19Database
Creates a V19Database instance.- Parameters:
connection- a WireConnection with an established connection to the server.descriptor- the ProtocolDescriptor that created this connection (this is used for creating further dependent objects).
-
-
Method Details
-
registerInlineBlob
-
createBlobForInput
public FbBlob createBlobForInput(FbTransaction transaction, BlobParameterBuffer blobParameterBuffer, long blobId) throws SQLException Description copied from interface:FbDatabaseCreates a blob for read access to an existing blob on the server.The blob is initially closed.
If the server supports inline blobs, a locally cached blob may be returned if an inline blob was received for
transactionandblobId, and ifblobParameterBufferisnullor empty (ParameterBuffer.isEmpty()).- Specified by:
createBlobForInputin interfaceFbDatabase- Overrides:
createBlobForInputin classAbstractFbWireDatabase- Parameters:
transaction- transaction associated with the blobblobParameterBuffer- blob parameter bufferblobId- id of the blob- Returns:
- instance of
FbBlob - Throws:
SQLException- if the database is not attached or the transaction is not active
-