一个 JDBC Clob
。如需查看此类的文档,请参阅 java.sql.Clob
。
方法
方法 | 返回类型 | 简介 |
---|---|---|
free() | void | 如需查看此方法的文档,请参阅
java.sql.Clob#truncate(long) 。 |
getAppsScriptBlob() | Blob | 获取此 JdbcClob 的内容作为 Apps 脚本 blob。 |
getAs(contentType) | Blob | 返回此对象内的数据,并将其作为 blob 转换为指定内容类型。 |
getSubString(position, length) | String | 如需查看此方法的文档,请参阅
java.sql.Clob#getSubString(long, int) 。 |
length() | Integer | 如需查看此方法的文档,请参阅
java.sql.Clob#length() 。 |
position(search, start) | Integer | 如需查看此方法的文档,请参阅
java.sql.Clob#position(Clob, long) 。 |
position(search, start) | Integer | 如需查看此方法的文档,请参阅
java.sql.Clob#position(String, long) 。 |
setString(position, blobSource) | Integer | 将 JdbcClob 写入 clob 的简便方法。 |
setString(position, blobSource, offset, len) | Integer | 将 JdbcClob 写入 clob 的简便方法。 |
setString(position, value) | Integer | 如需查看此方法的文档,请参阅
java.sql.Clob#setString(long, String) 。 |
setString(position, value, offset, len) | Integer | 如需查看此方法的文档,请参阅
java.sql.Clob#setString(long, String, int, int) 。 |
truncate(length) | void | 如需查看此方法的文档,请参阅
java.sql.Clob#truncate(long) 。 |
详细文档
free()
如需查看此方法的文档,请参阅
java.sql.Clob#truncate(long)
。
getAs(contentType)
返回此对象内的数据,并将其作为 blob 转换为指定内容类型。此方法会为文件名添加适当的扩展名,例如“myfile.pdf”。不过,它假设最后一个英文句点后面的文件名部分(如果有)是应该替换的现有扩展名。因此,“ShoppingList.12.25.2014”将变为“ShoppingList.12.25.pdf”。
如需查看转化次数的每日配额,请参阅 Google 服务的配额。新创建的 Google Workspace 网域可能会暂时受到更严格的配额限制。
参数
名称 | 类型 | 说明 |
---|---|---|
contentType | String | 要转换为的 MIME 类型。对于大多数 blob,'application/pdf' 是唯一有效的选项。对于 BMP、GIF、JPEG 或 PNG 格式的图片,'image/bmp' 、'image/gif' 、'image/jpeg' 或 'image/png' 中的任何一个也都有效。 |
弃踢回攻
Blob
- 作为 blob 的数据。
getSubString(position, length)
如需查看此方法的文档,请参阅
java.sql.Clob#getSubString(long, int)
。
参数
名称 | 类型 | 说明 |
---|---|---|
position | Integer | 要提取的子字符串的第一个字符的索引。第一个字符位于索引 1 处。 |
length | Integer | 要复制的连续字符数(不得小于 0)。 |
弃踢回攻
String
- 检索到的子字符串。
length()
position(search, start)
如需查看此方法的文档,请参阅
java.sql.Clob#position(Clob, long)
。
参数
名称 | 类型 | 说明 |
---|---|---|
search | JdbcClob | 要搜索的 clob 对象。 |
start | Integer | 开始搜索的位置;第一个位置为 1。 |
弃踢回攻
Integer
- 指定 clob 的显示位置,如果 clob 不存在,则为 -1。
position(search, start)
如需查看此方法的文档,请参阅
java.sql.Clob#position(String, long)
。
参数
名称 | 类型 | 说明 |
---|---|---|
search | String | 要搜索的子字符串。 |
start | Integer | 开始搜索的位置;第一个位置为 1。 |
弃踢回攻
Integer
- 指定子字符串的显示位置,如果子字符串不存在,则为 -1。
setString(position, blobSource)
将 JdbcClob
写入 clob 的简便方法。
参数
名称 | 类型 | 说明 |
---|---|---|
position | Integer | 开始写入 clob 的位置;第一个位置为 1。 |
blobSource | BlobSource | 要写入的 blob 源。 |
弃踢回攻
Integer
- 写入的字符数。
setString(position, blobSource, offset, len)
将 JdbcClob
写入 clob 的简便方法。
参数
名称 | 类型 | 说明 |
---|---|---|
position | Integer | 开始写入 clob 的位置;第一个位置为 1。 |
blobSource | BlobSource | 要写入的 blob 源。 |
offset | Integer | 所提供字符串的偏移量(从读取要写入的字符开始)。 |
len | Integer | 要写入的字符数。 |
弃踢回攻
Integer
- 写入的字符数。
setString(position, value)
如需查看此方法的文档,请参阅
java.sql.Clob#setString(long, String)
。
参数
名称 | 类型 | 说明 |
---|---|---|
position | Integer | 开始写入 clob 的位置;第一个位置为 1。 |
value | String | 要写入的字符串。 |
弃踢回攻
Integer
- 写入的字符数。
setString(position, value, offset, len)
如需查看此方法的文档,请参阅
java.sql.Clob#setString(long, String, int, int)
。
参数
名称 | 类型 | 说明 |
---|---|---|
position | Integer | 开始写入 clob 的位置;第一个位置为 1。 |
value | String | 要写入的字符串。 |
offset | Integer | 所提供字符串的偏移量(从读取要写入的字符开始)。 |
len | Integer | 要写入的字符数。 |
弃踢回攻
Integer
- 写入的字符数。