Class AbstractFbWireBlob

    • Method Detail

      • getHandle

        public final int getHandle()
        Specified by:
        getHandle in interface FbBlob
        Returns:
        The Firebird blob handle identifier
      • setHandle

        protected final void setHandle​(int blobHandle)
        Parameters:
        blobHandle - The Firebird blob handle identifier
      • releaseBlob

        protected void releaseBlob​(int releaseOperation)
                            throws java.sql.SQLException
        Release this blob with the specified operation.

        Implementations should only do the operation and not perform any further clean up or checks on attached database and active transaction, as those checks and clean up should be done by the caller.

        Parameters:
        releaseOperation - Either WireProtocolConstants.op_close_blob or WireProtocolConstants.op_cancel_blob
        Throws:
        java.sql.SQLException - For database communication errors.
      • closeImpl

        protected void closeImpl()
                          throws java.sql.SQLException
        Description copied from class: AbstractFbBlob
        Internal implementation of AbstractFbBlob.close(). The implementation does not need to check for attached database and active transaction, nor does it need to mark this blob as closed.
        Specified by:
        closeImpl in class AbstractFbBlob
        Throws:
        java.sql.SQLException
      • cancelImpl

        protected void cancelImpl()
                           throws java.sql.SQLException
        Description copied from class: AbstractFbBlob
        Internal implementation of AbstractFbBlob.cancel(). The implementation does not need to check for attached database and active transaction, nor does it need to mark this blob as closed.
        Specified by:
        cancelImpl in class AbstractFbBlob
        Throws:
        java.sql.SQLException
      • releaseResources

        protected void releaseResources()
        Description copied from class: AbstractFbBlob
        Release Java resources held. This should not communicate with the Firebird server.
        Specified by:
        releaseResources in class AbstractFbBlob
      • getBlobInfo

        public byte[] getBlobInfo​(byte[] requestItems,
                                  int bufferLength)
                           throws java.sql.SQLException
        Description copied from interface: FbBlob
        Request blob info.
        Specified by:
        getBlobInfo in interface FbBlob
        Parameters:
        requestItems - Array of info items to request
        bufferLength - Response buffer length to use
        Returns:
        Response buffer
        Throws:
        java.sql.SQLException