Oracle.sql.clob

xiaoxiao2021-03-06  37

Class oracle.sql.clob

Oracle.sql.clob

Public class

Clob

Implements Clob

GetasciiOutputStream ()

Oracle Extension.

Getasciistream ()

Implements The Clob Interface Method.

GetBuffersize ()

Oracle Extension.

GetCharacterOutputStream ()

Oracle Extension.

GetCharacterstream ()

Implements The Clob Interface Method.

GetChars (long, int, char [])

Oracle Extension.

getChunksize ()

Oracle Extension.

GetConnection ()

Oracle Extension.

Getsubstring (long, int)

Implements The Clob Interface Method.

IsconvertibleTo (Class)

Test WHETHER THIS DATA Object Can Be Converted to The Specified Java Data Type.

Length ()

Implements The Clob Interface Method.

Position (Clob, Long)

Implements The Clob Interface Method.

Position (String, Long)

Implements The Clob Interface Method.

Putchars (long, char [])

Oracle Extension.

Putstring (long, string)

Oracle Extension.

Tojdbc ()

Convert this Data Object Into ITS Default Java Object Type.

Length

Public long length () THROWS SQLEXCEPTION

Implements The Clob Interface Method. Returns The Numr of Characters in The Number of Characters in

Clob Value Designated by this

Clob Object.

Returns:

Length of the

Clob in characters

Throws: SQLException

If there is an error accessing the length of the

Clob

Getsubstring

Public String Getsubstring (Long POS,

INT Length) THROWS SQLEXCEPTION

Implements The Clob Interface Method. Returns a Copy of The Specified Substring in The Specified Substring in

Clob Value Designated by this

Clob Object. The Substring Begins At position

Pos and HAS Up to

Length consecutive character.

Parameters:

POS - The First Character of The Substring To Be Extracted. The First Character Is At Position 1.

Length - The Number of Consecutive Characters to Be Copied

Returns:

a

String That Is The Specified Substring In Theclob Value Designated by this

Clob OB JECT

Throws: SQLException

If there is an error accessing the

Clob

GetCharacterstream

Public Reader getcharacterstream () THROWS SQLEXCEPTION

Implements the clob interface method. Gets the

Clob Contents as a unicode stream.

Returns:

a unicode stream containing the

Clob Data

Throws: SQLException

If there is an error accessing the

Clob

Getasciistream

Public InputStream Getasciistream () THROWS SQLEXCEPTION

Implements the clob interface method. Gets the

Clob Value Designated by this

Clob Object as a stream of ascii bytes.

Returns:

An ascii stream containing the

Clob Data

Throws: SQLException

If there is an error accessing the

Clob Value

Position

Public long position (String Searchstr,

Long start) THROWS SQLEXCEPTION

Implements the clob interface method. Determine The Character Position At Which The Given Substring

Parameters:

Searchstr - is the substring to search for.

Start - Is The Position At Which To Begin Searching.

Returns:

The Position At Which The Substring APPEARS, ELSE -1.

Position

Public long position (Clob Searchstr,

Long start) THROWS SQLEXCEPTION

Implements the clob interface method. Determine The Character Position At Which The Given Substring

Parameters:

Searchstr - is the substring to search for.

Start - Is The Position At Which To Begin Searching.

Returns:

The Position At Which The Substring APPEARS, ELSE -1.

GetChars

Public int GetChars (Long POS,

INT Length,

Char buffer []) THROWS SQLEXCEPTION

Oracle Extension. Return Copy of The Substring of The Clob at The Requested Position.

Parameters:

Buffer - Is The Buffer Into Whcih The Characters Are Read.

.

Returns:

The Actual Number of Characters READ.

GetCharacterOutputStream

Public Writer getCharacterOutputStream () THROWS SQLEXCEPTION

Oracle Extension. Write Unicode Stream To The Clob.

Returns:

A Unicode Character Output Stream.

GetasciiOutputStream

Public OutputStream GetasciiOutputStream () THROWS SQLEXCEPTION

Oracle Extension. Write ascii stream to the clob.

Returns:

A ascii output stream.

GetConnection

Public OracleConnection GetConnection () THROWS SQLEXCEPTION

Oracle Extension. Get Connection Object.

PUTCHARS

Public int PUTCHARS (Long POS,

Char chars []) THROWS SQLEXCEPTION

Oracle Extension. Write Characters At the Request Position.

Parameters:

POS - is The position to write words.

Chars - Is The Buffer of Characters to Be Written.

Returns:

The Actual Number of Characters Written.

Putstring

Public int PutString (Long POS,

String Str) THROWS SQLEXCEPTION

Oracle Extension. Write Java String At The Requested Position.

Parameters:

POS - is The position to write words.

Str - is The Java String to Be Written.

Returns:

The Actual Number of Characters Written.

Getchunksize

Public int getchunksize () THROWS SQLEXCEPTION

Oracle Extension. Get Database Lob Storage Chunk size.

Returns:

The size in terms of character.

GetBuffersize

Public int getBuffersize () THROWS SQLEXCEPTION

Oracle Extension. Get Ideal Lob DB Access Buffer Size.

Returns:

The size in terms of character.

ToJDBC

Public Object tojdbc () THROWS SQLEXCEPTION

Convert this Data Object Into ITS Default Java Object Type.

Returns:

This Object.

Throws: SQLException

IF any of the lower layer code throws an exception.isconvertibleto

Public Boolean IsconvertiBleto (Class JCLASS)

Test WHETHER THIS DATA Object Can Be Converted to The Specified Java Data Type.

Parameters:

JCLASS Specifies - The Java Data Type to Test Against.

Returns:

True if this data object is communication, and a corresponding xxxvalue () Method is available; OtherWise, A false is returned.

转载请注明原文地址:https://www.9cbs.com/read-66319.html

New Post(0)