|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Clob
A Java interface mapping for the SQL CLOB type.
An SQL CLOB type stores a large array of characters as the value in a column of a database.
The java.sql.Clob interface provides methods for setting and retrieving data in the Clob, for querying Clob data length, for searching for data within the Clob.
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
Method Summary | |
---|---|
java.io.InputStream |
getAsciiStream()
Gets the value of this Clob object as an ASCII stream. |
java.io.Reader |
getCharacterStream()
Gets the value of this Clob object as a java.io.Reader. |
java.lang.String |
getSubString(long pos,
int length)
Gets a copy of a specified substring in this Clob. |
long |
length()
Retrieves the number of characters in this Clob object. |
long |
position(Clob searchstr,
long start)
Retrieves the character position at which a specified Clob object appears in this Clob object. |
long |
position(java.lang.String searchstr,
long start)
Retrieves the character position at which a specified substring appears in this Clob object. |
java.io.OutputStream |
setAsciiStream(long pos)
Retrieves a stream which can be used to write Ascii characters to this Clob object, starting at specified position. |
java.io.Writer |
setCharacterStream(long pos)
Retrieves a stream which can be used to write a stream of Unicode characters to this Clob object, at a specified position. |
int |
setString(long pos,
java.lang.String str)
Writes a given Java String to this Clob object at a specified position. |
int |
setString(long pos,
java.lang.String str,
int offset,
int len)
Writes len characters of String, starting at a specified character offset, to this Clob. |
void |
truncate(long len)
Truncates this Clob to have a specified length of characters. |
Field Detail |
---|
static final java.lang.Class CLASS_INSTANCE
Method Detail |
---|
java.io.InputStream getAsciiStream() throws SQLException
SQLException
- if an error occurs accessing the Clobjava.io.Reader getCharacterStream() throws SQLException
SQLException
- if an error occurs accessing the Clobjava.lang.String getSubString(long pos, int length) throws SQLException
pos
- the index of the start of the substring in the Cloblength
- the length of the data to retrieve
SQLException
- if an error occurs accessing the Cloblong length() throws SQLException
SQLException
- if an error occurs accessing the Cloblong position(Clob searchstr, long start) throws SQLException
searchstr
- the specified Clob to search forstart
- the position within this Clob to start the search
SQLException
- if an error occurs accessing the Cloblong position(java.lang.String searchstr, long start) throws SQLException
searchstr
- th String to search forstart
- the position at which to start the search within this Clob.
SQLException
- if an error occurs accessing the Clobjava.io.OutputStream setAsciiStream(long pos) throws SQLException
pos
- the position at which to start the writing
SQLException
- if an error occurs accessing the Clobjava.io.Writer setCharacterStream(long pos) throws SQLException
pos
- the position at which to start the writing
SQLException
- if an error occurs accessing the Clobint setString(long pos, java.lang.String str) throws SQLException
pos
- the position at which to start the writingstr
- the String to write
SQLException
- if an error occurs accessing the Clobint setString(long pos, java.lang.String str, int offset, int len) throws SQLException
pos
- the position at which to start the writingstr
- the String to writeoffset
- the offset within str to start writing fromlen
- the number of characters to write
SQLException
- if an error occurs accessing the Clobvoid truncate(long len) throws SQLException
len
- the length in characters to truncate this Clob
SQLException
- if an error occurs accessing the Clob
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |