|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.impl.Clob
Default implementation of IClob for use by ODA runtime drivers.
Clob
handles common types of raw data that represent
a CLOB value.
Constructor Summary | |
Clob(java.lang.String string)
Create a new Clob from a String . |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Clob(java.lang.String string)
String
.
string
- String representing the clob.Method Detail |
public java.io.Reader getCharacterStream() throws OdaException
IClob
getCharacterStream
in interface IClob
OdaException
- if data source error occurspublic java.lang.String getSubString(long position, int length) throws OdaException
IClob
getSubString
in interface IClob
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
position
and has up to length
consecutive characters.
OdaException
- if data source error occurspublic long length() throws OdaException
IClob
length
in interface IClob
OdaException
- if data source error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |