java.sql.Clob
📄字数 862
👁️阅读量 加载中...
java.sql.Clob 已实现的接口
返回类型 | 方法 | 描述 |
---|---|---|
void | free() | 该方法可以释放 Clob对象并释放资源所拥有的资源。 |
InputStream | getAsciiStream() | 将此 Clob对象指定的 CLOB值作为ascii流 Clob 。 |
Reader | getCharacterStream() | 将此 Clob对象指定的 CLOB值作为 java.io.Reader对象(或作为字符流)检索。 |
Reader | getCharacterStream(long pos, long length) | 返回包含部分 Clob值的 Reader对象,以pos指定的字符开头,长度为长度字符。 |
String | getSubString(long pos, int length) | 在此 Clob对象指定的 CLOB值中检索指定子字符串的副本。 |
long | length() | 检索由 Clob对象指定的 CLOB值中的 CLOB数。 |
long | position(Clob searchstr, long start) | 在检索该指定的字符位置 Clob对象 searchstr出现在此 Clob对象。 |
long | position(String searchstr, long start) | 检索由此 Clob对象表示的SQL CLOB中指定的子字符串 searchstr出现的字符位置。 |
OutputStream | setAsciiStream(long pos) | 检索用于将Ascii字符写入到 Clob对象表示的 CLOB值的流,从位置 pos开始。 |
Writer | setCharacterStream(long pos) | 检索用于将Unicode字符流写入此 Clob对象表示的 CLOB值的流,位置 pos 。 |
int | setString(long pos, String str) | 将给定的Java String写入该 Clob对象在位置 pos指定的 CLOB值。 |
int | setString(long pos, String str, int offset, int len) | 写入 len字符的 str ,从字符 offset开始,到这个 Clob代表的 CLOB值。 |
void | truncate(long len) | 截断 CLOB这个 Clob指定的长度为 len字符的值。 |