All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
NClob
All Known Implementing Classes:
SerialClob

  • Method Summary

    default void

    close()

    Closes and releases the resources held by this Clob object.

    void

    free()

    Closes and releases the resources held by this Clob object.

    Retrieves the CLOB value designated by this Clob object as an ascii stream.

    Retrieves the CLOB value designated by this Clob object as a java.io.Reader object (or as a stream of characters).

    getCharacterStream(long pos, long length)

    Returns a Reader object that contains a partial Clob value, starting with the character specified by pos, which is length characters in length.

    getSubString(long pos, int length)

    Retrieves a copy of the specified substring in the CLOB value designated by this Clob object.

    long

    length()

    Retrieves the number of characters in the CLOB value designated by this Clob object.

    long

    position(String searchstr, long start)

    Retrieves the character position at which the specified substring searchstr appears in the SQL CLOB value represented by this Clob object.

    long

    position(Clob searchstr, long start)

    Retrieves the character position at which the specified Clob object searchstr appears in this Clob object.

    setAsciiStream(long pos)

    Retrieves a stream to be used to write Ascii characters to the CLOB value that this Clob object represents, starting at position pos.

    setCharacterStream(long pos)

    Retrieves a stream to be used to write a stream of Unicode characters to the CLOB value that this Clob object represents, at position pos.

    int

    Writes the given Java String to the CLOB value that this Clob object designates at the position pos.

    int

    setString(long pos, String str, int offset, int len)

    Writes len characters of str, starting at character offset, to the CLOB value that this Clob represents.

    void

    truncate(long len)

    Truncates the CLOB value that this Clob designates to have a length of len characters.

  • Method Details

    • length

    • getSubString

    • getCharacterStream

    • getAsciiStream

    • position

    • position

    • setString

    • setString

    • setAsciiStream

    • setCharacterStream

    • truncate

    • free

    • getCharacterStream

    • close