# NClob

public interface **NClob** implements [Clob](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html) The mapping in the Java^TM^ programming language
for the SQL `NCLOB` type.
An SQL `NCLOB` is a built-in type
that stores a Character Large Object using the National Character Set
as a column value in a row of a database table.

The `NClob` interface extends the `Clob` interface
which provides provides methods for getting the
length of an SQL `NCLOB` value,
for materializing a `NCLOB` value on the client, and for
searching for a substring or `NCLOB` object within a
`NCLOB` value. A `NClob` object, just like a `Clob` object, is valid for the duration
of the transaction in which it was created.
Methods in the interfaces `https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/ResultSet.html`,
`https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/CallableStatement.html`, and `https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/PreparedStatement.html`, such as
`getNClob` and `setNClob` allow a programmer to
access an SQL `NCLOB` value. In addition, this interface
has methods for updating a `NCLOB` value.


All methods on the `NClob` interface must be fully implemented if the
JDBC driver supports the data type.

### Inherited Method Summary

From interface [java.sql.Clob](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html)

|---|---|
| abstract void | [free](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#free())() This method frees the `Clob` object and releases the resources the resources that it holds. |
| abstract [InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html) | [getAsciiStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#getAsciiStream())() Retrieves the `CLOB` value designated by this `Clob` object as an ascii stream. |
| abstract [Reader](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/Reader.html) | [getCharacterStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#getCharacterStream())() Retrieves the `CLOB` value designated by this `Clob` object as a `java.io.Reader` object (or as a stream of characters). |
| abstract [Reader](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/Reader.html) | [getCharacterStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#getCharacterStream(long,%20long))(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. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getSubString](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#getSubString(long,%20int))(long pos, int length) Retrieves a copy of the specified substring in the `CLOB` value designated by this `Clob` object. |
| abstract long | [length](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#length())() Retrieves the number of characters in the `CLOB` value designated by this `Clob` object. |
| abstract long | [position](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#position(java.lang.String,%20long))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) searchstr, long start) Retrieves the character position at which the specified substring `searchstr` appears in the SQL `CLOB` value represented by this `Clob` object. |
| abstract long | [position](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#position(java.sql.Clob,%20long))([Clob](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html) searchstr, long start) Retrieves the character position at which the specified `Clob` object `searchstr` appears in this `Clob` object. |
| abstract [OutputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OutputStream.html) | [setAsciiStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#setAsciiStream(long))(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`. |
| abstract [Writer](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/Writer.html) | [setCharacterStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#setCharacterStream(long))(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`. |
| abstract int | [setString](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#setString(long,%20java.lang.String,%20int,%20int))(long pos, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) str, int offset, int len) Writes `len` characters of `str`, starting at character `offset`, to the `CLOB` value that this `Clob` represents. |
| abstract int | [setString](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#setString(long,%20java.lang.String))(long pos, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) str) Writes the given Java `String` to the `CLOB` value that this `Clob` object designates at the position `pos`. |
| abstract void | [truncate](https://developers.google.com/j2objc/javadoc/jre/reference/java/sql/Clob.html#truncate(long))(long len) Truncates the `CLOB` value that this `Clob` designates to have a length of `len` characters. |