Class V19Database

    • 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

      • 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 and blobId, and if blobParameterBuffer is null or empty (ParameterBuffer.isEmpty()).

        Specified by:
        createBlobForInput in interface FbDatabase
        Overrides:
        createBlobForInput in class AbstractFbWireDatabase
        Parameters:
        transaction - transaction associated with the blob
        blobParameterBuffer - blob parameter buffer
        blobId - id of the blob
        Returns:
        instance of FbBlob
        Throws:
        java.sql.SQLException - if the database is not attached or the transaction is not active