JDBC Clob。如需查看此类文档,请参阅 java.sql.Clob
。
方法
| 方法 | 返回值类型 | 简介 |
|---|---|---|
free() | void | 如需查看此方法的文档,请参阅
java.sql.Clob#truncate(long)。 |
get | Blob | 以 Apps 脚本 blob 的形式获取此 JdbcClob 的内容。 |
get | Blob | 以转换为指定内容类型的 blob 形式返回此对象中的数据。 |
get | 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)。 |
set | Integer | 用于将 Jdbc 写入 clob 的便捷方法。 |
set | Integer | 用于将 Jdbc 写入 clob 的便捷方法。 |
set | Integer | 如需查看此方法的文档,请参阅
java.sql.Clob#setString(long, String). |
set | 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 网域可能会暂时受到更严格的配额限制。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
content | String | 要转换成的 MIME 类型。对于大多数 blob,'application/pdf' 是
唯一有效的选项。对于 BMP、GIF、JPEG 或 PNG 格式的图片,'image/bmp'、'image/gif'、'image/jpeg' 或 'image/png' 中的任何一个也
有效。对于 Google 文档,'text/markdown' 也有效。 |
返回
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 | Jdbc | 要搜索的 clob 对象。 |
start | Integer | 开始搜索的位置;第一个位置为 1。 |
返回
Integer - 指定 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。 |
blob | Blob | 要写入的 blob 来源。 |
返回
Integer - 写入的字符数。
setString(position, blobSource, offset, len)
用于将 JdbcClob 写入 clob 的便捷方法。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
position | Integer | 开始写入 clob 的位置;第一个位置为 1。 |
blob | Blob | 要写入的 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 - 写入的字符数。