Class V19Database
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,FbAttachment
,FbDatabase
,ExceptionListenable
,TransactionListener
,FbWireAttachment
,FbWireDatabase
public class V19Database extends V18Database
FbWireDatabase
implementation for the version 19 wire protocol.- Since:
- 5.0.8
- 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, wireOperations
-
Fields inherited from class org.firebirdsql.gds.ng.AbstractFbDatabase
databaseListenerDispatcher
-
Fields inherited from class org.firebirdsql.gds.ng.AbstractFbAttachment
connection, exceptionListenerDispatcher
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
V19Database(WireDatabaseConnection connection, ProtocolDescriptor descriptor)
Creates a V19Database instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FbBlob
createBlobForInput(FbTransaction transaction, BlobParameterBuffer blobParameterBuffer, long blobId)
Creates a blob for read access to an existing blob on the server.protected void
registerInlineBlob(FbWireTransaction transaction, InlineBlob inlineBlob)
-
Methods inherited from class org.firebirdsql.gds.ng.wire.version13.V13Database
getTransactionIdBuffer
-
Methods inherited from class org.firebirdsql.gds.ng.wire.version12.V12Database
cancelOperation, getFilenameEncoding
-
Methods inherited from class org.firebirdsql.gds.ng.wire.version11.V11Database
releaseObject
-
Methods 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
-
Methods inherited from class org.firebirdsql.gds.ng.wire.AbstractFbWireDatabase
cancelEvent, checkAttached, checkConnected, closeConnection, consumePackets, countEvents, createBlobForOutput, createEventHandle, enqueueDeferredAction, finalize, forceClose, getDatabaseInfo, getHandle, getInfo, getWireOperations, getXdrIn, getXdrOut, getXdrStreamAccess, isAttached, queueEvent, readGenericResponse, readResponse, readSqlResponse, setNetworkTimeout
-
Methods inherited from class org.firebirdsql.gds.ng.AbstractFbDatabase
addDatabaseListener, addWeakDatabaseListener, close, createBlobParameterBuffer, createTransactionParameterBuffer, emptyRowDescriptor, getActiveTransactionCount, getConnectionDialect, getConnectionProperties, getDatabaseDialect, getDatabaseInfo, getDatabaseInformationProcessor, getDatabaseWarningCallback, getDescribeDatabaseInfoBlock, getOdsMajor, getOdsMinor, getParameterDescriptionInfoRequestItems, getStatementInfoRequestItems, removeDatabaseListener, setDatabaseDialect, setOdsMajor, setOdsMinor, transactionAdded, transactionStateChanged
-
Methods inherited from class org.firebirdsql.gds.ng.AbstractFbAttachment
addExceptionListener, getDatatypeCoder, getEncoding, getEncodingFactory, getNetworkTimeout, getServerVersion, getServerVersionInformation, isLockedByCurrentThread, removeExceptionListener, safelyDetach, setAttached, setDetached, setServerVersion, withLock
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.firebirdsql.gds.ng.listeners.ExceptionListenable
addExceptionListener, removeExceptionListener
-
Methods inherited from interface org.firebirdsql.gds.ng.FbAttachment
close, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getNetworkTimeout, getServerVersion, isAttached, isLockedByCurrentThread, setNetworkTimeout, withLock
-
Methods 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, queueEvent, removeDatabaseListener
-
Methods inherited from interface org.firebirdsql.gds.ng.wire.FbWireAttachment
getWireOperations, getXdrStreamAccess, readGenericResponse
-
Methods inherited from interface org.firebirdsql.gds.ng.wire.FbWireDatabase
consumePackets, enqueueDeferredAction, getInfo, readResponse, readSqlResponse
-
-
-
-
Constructor Detail
-
V19Database
protected V19Database(WireDatabaseConnection connection, ProtocolDescriptor descriptor)
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 Detail
-
registerInlineBlob
protected void registerInlineBlob(FbWireTransaction transaction, InlineBlob inlineBlob)
-
createBlobForInput
public FbBlob createBlobForInput(FbTransaction transaction, BlobParameterBuffer blobParameterBuffer, long blobId) throws java.sql.SQLException
Description copied from interface:FbDatabase
Creates 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
transaction
andblobId
, and ifblobParameterBuffer
isnull
or empty (ParameterBuffer.isEmpty()
).- Specified by:
createBlobForInput
in interfaceFbDatabase
- Overrides:
createBlobForInput
in classAbstractFbWireDatabase
- Parameters:
transaction
- transaction associated with the blobblobParameterBuffer
- blob parameter bufferblobId
- id of the blob- Returns:
- instance of
FbBlob
- Throws:
java.sql.SQLException
- if the database is not attached or the transaction is not active
-
-