java.sql.Clob interface.
| Modifier and Type | Field and Description |
|---|---|
| private InputStream | |
| private Reader | |
| protected String | |
| private InputStream | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| pack-priv | ClientClob(Agent agent, InputStream
the data to insert inputStream, Charset encoding to use for characters. Only "ISO-8859-1" is
allowed. encoding)Create a |
| pack-priv | |
| public | ClientClob(Agent
context for this agent, int Clob
object (incl. connection).reference id to locator)Clob value on server.Create a |
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | free()
Implements java. Clob object and releases the resources the resources
that it holds.
|
| public InputStream | getAsciiStream()
Implements java. CLOB value designated by this Clob
object as an ascii stream.
|
| pack-priv InputStream | |
| public Reader | getCharacterStream()
Implements java. CLOB value designated by this Clob
object as a java.io.Reader object (or as a stream of
characters).
|
| public Reader | Returns: Reader through which the partial Clob
value can be read.the offset to the first character of the partial value to
be retrieved. The first character in the Clob is at position 1. pos, long the length in characters of the partial value to be
retrieved. length)Implements java. Reader object that contains a partial
Clob value, starting with the character specified by pos,
which is length characters in length.
|
| pack-priv Reader | |
| pack-priv long | Returns: length ofClob in bytesOverrides org. Clob value represented by
this locator based Clob object.
|
| public String | |
| public String | Returns: aString that is the specified substring in the
CLOB value designated by this ClientClob
objectthe first character of the substring to be extracted.
The first character is at position 1. pos, int the number of consecutive characters to be copied length)Implements java. CLOB value
designated by this ClientClob object.
|
| private String | |
| public InputStream | |
| public int | |
| public byte[] | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public long | length()
Implements abstract org. Implements java. CLOB value
designated by this Clob object.
|
| protected void | materializeStream()
Implements abstract org. |
| public long | position(String
the substring for which to search searchstr, long the position at which to begin searching;
the first position is 1 start)Implements java. searchstr appears in the SQL CLOB value
represented by this Clob object.
|
| public long | position(Clob
the searchstr, long Clob object for which to searchthe position at which to begin searching; the first
position is 1 start)Implements java. Clob object searchstr appears in this
Clob object.
|
| private long | |
| private long | |
| pack-priv void | |
| public OutputStream | setAsciiStream(long
the position at which to start writing to this
pos)CLOB object; The first position is 1Implements java. CLOB value that this Clob object represents,
starting at position pos.
|
| public Writer | setCharacterStream(long
the position at which to start writing to the
pos)CLOB value; The first position is 1Implements java. CLOB value that this Clob object
represents, at position pos.
|
| public int | setString(long
the position at which to start writing to the pos, String CLOB
value that this Clob object represents;
the first position is 1.the string to be written to the str)CLOB
value that this Clob designatesImplements java. String to the CLOB
value that this Clob object designates at the position
pos.
|
| public int | setString(long
the position at which to start writing to this
pos, String CLOB object; The first position is 1the string to be written to the str, int CLOB
value that this Clob object representsthe offset into offset, int str to start reading
the characters to be writtenthe number of characters to be written len)Implements java. len characters of str, starting
at character offset, to the CLOB value
that this Clob represents.
|
| pack-priv int | |
| public void | truncate(long
the length, in characters, to which the len)CLOB value
should be truncatedImplements java. CLOB value that this Clob
designates to have a length of len
characters.
|
| asciiStream_ | back to summary |
|---|---|
| private InputStream asciiStream_ | |
| characterStream_ | back to summary |
|---|---|
| private Reader characterStream_ | |
| string_ | back to summary |
|---|---|
| protected String string_ | |
| unicodeStream_ | back to summary |
|---|---|
| private InputStream unicodeStream_ | |
| utf8String_ | back to summary |
|---|---|
| private byte[] utf8String_ | |
| ClientClob | back to summary |
|---|---|
| public ClientClob(Agent agent, String string) | |
| ClientClob | back to summary |
|---|---|
| public ClientClob(Agent agent, byte[] unconvertedBytes, Charset charset, int dataOffset) throws SqlException | |
| ClientClob | back to summary |
|---|---|
| public ClientClob(Agent agent, InputStream inputStream, Charset encoding, int length) | |
| ClientClob | back to summary |
|---|---|
| pack-priv ClientClob(Agent agent, InputStream inputStream, Charset encoding) throws SqlException Create a
| |
| ClientClob | back to summary |
|---|---|
| pack-priv ClientClob(Agent agent, Reader reader, int length) | |
| ClientClob | back to summary |
|---|---|
| public ClientClob(Agent agent, int locator) Create a
| |
| ClientClob | back to summary |
|---|---|
| pack-priv ClientClob(Agent agent, Reader reader) Create a
| |
| ClientClob | back to summary |
|---|---|
| private ClientClob(Agent agent, boolean willBeLayerBStreamed) | |
| free | back to summary |
|---|---|
| public void free() throws SQLException Implements java. This method frees the
| |
| getAsciiStream | back to summary |
|---|---|
| public InputStream getAsciiStream() throws SQLException Implements java. Doc from java. Retrieves the
| |
| getAsciiStreamX | back to summary |
|---|---|
| pack-priv InputStream getAsciiStreamX() throws SqlException | |
| getCharacterStream | back to summary |
|---|---|
| public Reader getCharacterStream() throws SQLException Implements java. Doc from java. Retrieves the
| |
| getCharacterStream | back to summary |
|---|---|
| public Reader getCharacterStream(long pos, long length) throws SQLException Implements java. Returns a
| |
| getCharacterStreamX | back to summary |
|---|---|
| pack-priv Reader getCharacterStreamX() throws SqlException | |
| getLocatorLength | back to summary |
|---|---|
| pack-priv long getLocatorLength() throws SqlException Overrides org. Get the length in bytes of the
| |
| getString | back to summary |
|---|---|
| public String getString() | |
| getSubString | back to summary |
|---|---|
| public String getSubString(long pos, int length) throws SQLException Implements java. Returns a copy of the specified substring
in the
| |
| getSubStringX | back to summary |
|---|---|
| private String getSubStringX(long pos, int length) throws SqlException | |
| getUnicodeStream | back to summary |
|---|---|
| public InputStream getUnicodeStream() | |
| getUTF8Length | back to summary |
|---|---|
| public int getUTF8Length() | |
| getUtf8String | back to summary |
|---|---|
| public byte[] getUtf8String() | |
| isAsciiStream | back to summary |
|---|---|
| public boolean isAsciiStream() | |
| isCharacterStream | back to summary |
|---|---|
| public boolean isCharacterStream() | |
| isString | back to summary |
|---|---|
| public boolean isString() | |
| isUnicodeStream | back to summary |
|---|---|
| public boolean isUnicodeStream() | |
| length | back to summary |
|---|---|
| public long length() throws SQLException Implements abstract org. Implements java. Doc from java. Retrieves the number of characters
in the
| |
| materializeStream | back to summary |
|---|---|
| protected void materializeStream() throws SqlException Implements abstract org. Materialize the stream used for input to the database.
| |
| position | back to summary |
|---|---|
| public long position(String searchstr, long start) throws SQLException Implements java. Doc from java. Retrieves the character position at which the specified substring
| |
| position | back to summary |
|---|---|
| public long position(Clob searchstr, long start) throws SQLException Implements java. Doc from java. Retrieves the character position at which the specified
| |
| positionX | back to summary |
|---|---|
| private long positionX(String searchstr, long start) throws SqlException | |
| positionX | back to summary |
|---|---|
| private long positionX(Clob searchstr, long start) throws SqlException | |
| reInitForNonLocator | back to summary |
|---|---|
| pack-priv void reInitForNonLocator(String newString) Reinitialize the value of this CLOB. This is legacy code, only used when talking to servers that don't support locators.
| |
| setAsciiStream | back to summary |
|---|---|
| public OutputStream setAsciiStream(long pos) throws SQLException Implements java. Doc from java. Retrieves a stream to be used to write Ascii characters to the
Note If the value specified for
| |
| setCharacterStream | back to summary |
|---|---|
| public Writer setCharacterStream(long pos) throws SQLException Implements java. Doc from java. Retrieves a stream to be used to write a stream of Unicode characters
to the Note If the value specified for
| |
| setString | back to summary |
|---|---|
| public int setString(long pos, String str) throws SQLException Implements java. Doc from java. Writes the given Java Note If the value specified for
| |
| setString | back to summary |
|---|---|
| public int setString(long pos, String str, int offset, int len) throws SQLException Implements java. Doc from java. Writes Note If the value specified for
| |
| setStringX | back to summary |
|---|---|
| pack-priv int setStringX(long pos, String str, int offset, int len) throws SqlException | |
| truncate | back to summary |
|---|---|
| public void truncate(long len) throws SQLException Implements java. Doc from java. Truncates the Note If the value specified for
| |