Class JdbcClob

JdbcClob

A JDBC Clob. For documentation of this class, see java.sql.Clob.

Methods

MethodReturn typeBrief description
free()voidFor documentation of this method, see java.sql.Clob#free().
getAppsScriptBlob()BlobGets the content of this JdbcClob as an Apps Script blob.
getAs(contentType)BlobReturn the data inside this object as a blob converted to the specified content type.
getSubString(position, length)StringFor documentation of this method, see java.sql.Clob#getSubString(long, int).
length()IntegerFor documentation of this method, see java.sql.Clob#length().
position(search, start)IntegerFor documentation of this method, see java.sql.Clob#position(java.sql.Clob, long).
position(search, start)IntegerFor documentation of this method, see java.sql.Clob#position(String, long).
setString(position, blobSource)IntegerConvenience method for BlobSources.
setString(position, blobSource, offset, len)IntegerConvenience method for BlobSources.
setString(position, value)IntegerFor documentation of this method, see java.sql.Clob#setString(long, String).
setString(position, value, offset, len)IntegerFor documentation of this method, see java.sql.Clob#setString(long, String, int, int).
truncate(length)voidFor documentation of this method, see java.sql.Clob#truncate(long).

Detailed documentation

free()

For documentation of this method, see java.sql.Clob#free().


getAppsScriptBlob()

Gets the content of this JdbcClob as an Apps Script blob.

Return

Blob — a Blob that can be used directly by other Apps Script APIs


getAs(contentType)

Return the data inside this object as a blob converted to the specified content type. This method adds the appropriate extension to the filename — for example, "myfile.pdf". However, it assumes that the part of the filename that follows the last period (if any) is an existing extension that should be replaced. Consequently, "ChristmasList.12.25.2014" will become "ChristmasList.12.25.pdf".

Parameters

NameTypeDescription
contentTypeStringthe MIME type to convert to. For most blobs, 'application/pdf' is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of 'image/bmp', 'image/gif', 'image/jpeg', or 'image/png' are also valid.

Return

Blob — the data as a blob


getSubString(position, length)

For documentation of this method, see java.sql.Clob#getSubString(long, int).

Parameters

NameTypeDescription
positionInteger
lengthInteger

Return

String


length()

For documentation of this method, see java.sql.Clob#length().

Return

Integer


position(search, start)

For documentation of this method, see java.sql.Clob#position(java.sql.Clob, long).

Parameters

NameTypeDescription
searchJdbcClob
startInteger

Return

Integer


position(search, start)

For documentation of this method, see java.sql.Clob#position(String, long).

Parameters

NameTypeDescription
searchString
startInteger

Return

Integer


setString(position, blobSource)

Convenience method for BlobSources.

Parameters

NameTypeDescription
positionInteger
blobSourceBlobSource

Return

Integer


setString(position, blobSource, offset, len)

Convenience method for BlobSources.

Parameters

NameTypeDescription
positionInteger
blobSourceBlobSource
offsetInteger
lenInteger

Return

Integer


setString(position, value)

For documentation of this method, see java.sql.Clob#setString(long, String).

Parameters

NameTypeDescription
positionInteger
valueString

Return

Integer


setString(position, value, offset, len)

For documentation of this method, see java.sql.Clob#setString(long, String, int, int).

Parameters

NameTypeDescription
positionInteger
valueString
offsetInteger
lenInteger

Return

Integer


truncate(length)

For documentation of this method, see java.sql.Clob#truncate(long).

Parameters

NameTypeDescription
lengthInteger

发送以下问题的反馈:

此网页
Apps Script
Apps Script