|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An optional interface that represents a Character Large Object (CLOB) value.
The interface must be implemented only if the ODA driver
supports the CLOB data type.
The IClob interface provides methods for retrieving a CLOB value
as a Java stream that can be read in smaller chunks, and
for optionally getting the length of a CLOB value.
The interface method IResultSet.getClob
returns
an IClob instance.
Method Summary | |
java.io.Reader |
getCharacterStream()
Retrieves the CLOB value designated by this IClob instance as a java.io.Reader object for reading a stream of characters. |
java.lang.String |
getSubString(long position,
int length)
Retrieves a copy of the specified substring in the CLOB value designated by this IClob instance. |
long |
length()
Returns the number of characters in the CLOB value designated by this IClob object. |
Method Detail |
public java.io.Reader getCharacterStream() throws OdaException
OdaException
- if data source error occurspublic java.lang.String getSubString(long position, int length) throws OdaException
position
- the first character of the substring to be extracted.
The first character is at position 1.length
- the number of consecutive characters to be copied;
a negative value means to copy all remaining characters
available in the stream.
position
and has up to length
consecutive characters.
OdaException
- if data source error occurspublic long length() throws OdaException
OdaException
- if data source error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |