Package org.h2.jdbc

Class JdbcLob

Direct Known Subclasses:
JdbcBlob, JdbcClob, JdbcSQLXML

public abstract class JdbcLob extends TraceObject
Represents a large object value.
  • Field Details

  • Constructor Details

  • Method Details

    • 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 SQLException, IOException
      Check the state of the LOB and throws the exception when check failed (the LOB must be set completely before read).
      Throws:
      SQLException - on SQL exception
      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

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

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

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

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

      public String toString()
      INTERNAL
      Overrides:
      toString in class Object