public interface AQSQLClob
Modifier and Type | Method and Description |
---|---|
void |
free()
This method frees the Clob object and releases the resources the resources that it holds.
|
long |
getLength()
Retrieves the number of characters in the CLOB value designated by this Clob object.
|
String |
getSubString(long pos,
int length)
Retrieves a copy of the specified substring in the CLOB value designated by this Clob
object.
|
long |
position(String str,
int start)
Retrieves the character position at which the specified String str appears
in this Clob object.
|
int |
setString(long pos,
String str)
Writes the given string to the CLOB value that this Clob object designates at the
position pos.
|
int |
setString(long pos,
String str,
int offset,
int len)
Writes len characters of str, starting at character offset, to the CLOB value that this Clob represents.
|
void free() throws Exception
Exception
- If an error occurs releasing the Clob's resources.
if the JDBC driver does not support this method.long getLength() throws Exception
Exception
- If there is an error accessing the length of the CLOB value.long position(String str, int start) throws Exception
str
- The string for which to search.start
- The position at which to begin searching; the first position is 0.Exception
- If there is an error accessing the CLOB value or if start is less than 0.String getSubString(long pos, int length) throws Exception
pos
- The first character of the substring to be extracted. The first character is at position 0.length
- The number of consecutive characters to be copied; the value for length must be 0 or greater.Exception
- If there is an error accessing the CLOB value; if pos is less than 1 or length is less than 0.int setString(long pos, String str) throws Exception
pos
- The position at which to start writing to the CLOB value that this Clob object represents;
The first position is 0.str
- The string to be written to the CLOB value that this Clob designates.Exception
- If there is an error accessing the CLOB value or if pos is less than 0.int setString(long pos, String str, int offset, int len) throws Exception
pos
- The position at which to start writing to this CLOB object; The first position is 0.str
- The string to be written to the CLOB value that this Clob object represents.offset
- The offset into str to start reading the characters to be written.len
- The number of characters to be written.Exception
- If there is an error accessing the CLOB value or if pos is less than 0.
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.