Package org.h2.jdbc

Class JdbcLob

    • Method Detail

      • checkClosed

        void checkClosed()
        Check that connection and LOB is not closed, otherwise throws exception with error code ErrorCode.OBJECT_CLOSED.
      • checkEditable

        void checkEditable()
        Check the state of the LOB and throws the exception when check failed (set is supported only for a new LOB).
      • checkReadable

        void checkReadable()
                    throws java.sql.SQLException,
                           java.io.IOException
        Check the state of the LOB and throws the exception when check failed (the LOB must be set completely before read).
        Throws:
        java.sql.SQLException - on SQL exception
        java.io.IOException - on I/O exception
      • completeWrite

        void completeWrite​(Value blob)
        Change the state LOB state (LOB value is set completely and available to read).
        Parameters:
        blob - LOB value.
      • free

        public void free()
        Release all resources of this object.
      • getBinaryStream

        java.io.InputStream getBinaryStream()
                                     throws java.sql.SQLException
        Returns the input stream.
        Returns:
        the input stream
        Throws:
        java.sql.SQLException - on failure
      • getCharacterStream

        java.io.Reader getCharacterStream()
                                   throws java.sql.SQLException
        Returns the reader.
        Returns:
        the reader
        Throws:
        java.sql.SQLException - on failure
      • setCharacterStreamImpl

        java.io.Writer setCharacterStreamImpl()
                                       throws java.io.IOException
        Returns the writer.
        Returns:
        Writer.
        Throws:
        java.io.IOException - If an I/O error occurs.
      • setClobOutputStreamImpl

        JdbcLob.LobPipedOutputStream setClobOutputStreamImpl()
                                                      throws java.io.IOException
        Returns the writer stream.
        Returns:
        Output stream..
        Throws:
        java.io.IOException - If an I/O error occurs.
      • toString

        public java.lang.String toString()
        INTERNAL
        Overrides:
        toString in class java.lang.Object