API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.sql. Clob View Source
Author(s)
Since
1.2
Version
Serial
Hierarchy
 Clob
Subinterfaces
 NClob
Description
public interface Clob
  The mapping in the JavaTM programming language for the SQL CLOB type.
See also:   
Methods
Hide/Show inherited methods
public void free () throws SQLException
  This method frees the Clob object and releases the resources the resources that it holds.
public InputStream getAsciiStream () throws SQLException
  Retrieves the CLOB value designated by this Clob object as an ascii stream.
public Reader getCharacterStream () throws SQLException
  Retrieves the CLOB value designated by this Clob object as a java.io.Reader object (or as a stream of characters).
public Reader getCharacterStream (long pos, long length) throws SQLException
  Returns a Reader object that contains a partial Clob value, starting with the character specified by pos, which is length characters in length.
public String getSubString (long pos, int length) throws SQLException
  Retrieves a copy of the specified substring in the CLOB value designated by this Clob object.
public long length () throws SQLException
  Retrieves the number of characters in the CLOB value designated by this Clob object.
public long position (Clob searchstr, long start) throws SQLException
  Retrieves the character position at which the specified Clob object searchstr appears in this Clob object.
public long position (String searchstr, long start) throws SQLException
  Retrieves the character position at which the specified substring searchstr appears in the SQL CLOB value represented by this Clob object.
public OutputStream setAsciiStream (long pos) throws SQLException
  Retrieves a stream to be used to write Ascii characters to the CLOB value that this Clob object represents, starting at position pos.
public Writer setCharacterStream (long pos) throws SQLException
  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.
public int setString (long pos, String str) throws SQLException
  Writes the given Java String to the CLOB value that this Clob object designates at the position pos.
public int setString (long pos, String str, int offset, int len) throws SQLException
  Writes len characters of str, starting at character offset, to the CLOB value that this Clob represents.
public void truncate (long len) throws SQLException
  Truncates the CLOB value that this Clob designates to have a length of len characters.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar