public class Clob extends LobClass implements Clob, Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
static Clob |
createTemporary(Connection clobConnection,
boolean cache,
int duration) |
static Clob |
createTemporary(Connection clobConnection,
boolean cache,
int duration,
short flag)
生成临时空CLOB对象
|
void |
free() |
void |
freeTemporary() |
static void |
freeTemporary(Clob clob) |
InputStream |
getAsciiStream() |
Reader |
getCharacterStream() |
Reader |
getCharacterStream(long pos,
long length) |
String |
getClobDesciptor()
Clob对象的描述符和长度
"get lob '"+clobDesciptor+"' offset 0 limit "+clobLen;
|
static Clob |
getEmptyCLOB()
空Clob对象
兼容ORACLE的大对象插入,生成一个内容为""的CLOB对象
|
String |
getSubString(long startPos,
int length) |
long |
length()
获取LOB对象实际长度
|
long |
position(Clob searchstr,
long start)
java.sql.Clob.position(Clob, long)
获取此 Clob 对象中指定的 Clob 对象 searchstr 出现的字符位置。
|
long |
position(String stringToFind,
long startPos) |
OutputStream |
setAsciiStream(long indexToWriteAt) |
Writer |
setCharacterStream(long indexToWriteAt) |
int |
setString(long pos,
String str) |
int |
setString(long pos,
String str,
int offset,
int len) |
void |
truncate(long length) |
void |
writerClosed(char[] charDataBeingWritten)
com.mysql.jdbc.WriterWatcher#writerClosed(char[])
有待验证
|
void |
writerClosed(com.xugu.cloudjdbc.WatchableWriter out)
com.mysql.jdbc.WriterWatcher#writerClosed(char[])
|
public InputStream getAsciiStream() throws SQLException
getAsciiStream 在接口中 ClobSQLException以 ascii 流形式获取此 Clob 对象指定的 CLOB 值。public Reader getCharacterStream() throws SQLException
getCharacterStream 在接口中 ClobSQLException以 java.io.Reader 对象形式(或字符流形式)获取此 Clob 对象指定的 CLOB 值public String getSubString(long startPos, int length) throws SQLException
getSubString 在接口中 ClobSQLException获取此 Clob 对象指定的 CLOB 值中指定子字符串的副本
startPos>=1public long length()
throws SQLException
LobClasslength 在接口中 Cloblength 在类中 LobClassSQLException获取此 Clob 对象指定的 CLOB 值中的字符数public long position(Clob searchstr, long start) throws SQLException
position 在接口中 ClobSQLExceptionpublic long position(String stringToFind, long startPos) throws SQLException
position 在接口中 ClobSQLException获取此 Clob 对象中指定的 Clob 对象 stringToFind 出现的字符位置。
从位置 startPos 开始搜索。public OutputStream setAsciiStream(long indexToWriteAt) throws SQLException
setAsciiStream 在接口中 ClobSQLException获取用于将 Ascii 字符写入此 Clob 对象表示的 Clob 值中的流,从位置 pos 处开始。public Writer setCharacterStream(long indexToWriteAt) throws SQLException
setCharacterStream 在接口中 ClobSQLExceptionClob.setCharacterStream(long)public int setString(long pos,
String str)
throws SQLException
setString 在接口中 ClobSQLException在位置 pos 处用字符串str重写此 Clob 对象指定的 CLOB 值中。public int setString(long pos,
String str,
int offset,
int len)
throws SQLException
public void truncate(long length)
throws SQLException
truncate 在接口中 ClobSQLExceptionClob.truncate(long)public void writerClosed(char[] charDataBeingWritten)
public void writerClosed(com.xugu.cloudjdbc.WatchableWriter out)
public void free()
throws SQLException
free 在接口中 ClobSQLException释放 Clob 对象以及它所占用的资源public Reader getCharacterStream(long pos, long length) throws SQLException
getCharacterStream 在接口中 ClobSQLException以 java.io.Reader 对象形式(或字符流形式)获取此 Clob 对象部分值.
pos>=1public static Clob getEmptyCLOB()
public String getClobDesciptor()
public static Clob createTemporary(Connection clobConnection, boolean cache, int duration, short flag)
public static Clob createTemporary(Connection clobConnection, boolean cache, int duration)
public static void freeTemporary(Clob clob) throws SQLException
SQLExceptionpublic void freeTemporary()
throws SQLException
SQLExceptionCopyright © 2025. All rights reserved.