:: com :: sun :: star :: sdbc ::

interface XClob

Methods' Summary
length returns the number of characters in the CLOB value designated by this Clob object.  
getSubString returns a copy of the specified substring in the Clob value designated by this Clob object.  
getCharacterStream gets the Clob contents as a stream.  
position determines the character position at which the specified substring searchstr appears in the Clob . The search begins at position start .  
positionOfClob determines the position at which the specified Clob object pattern appears in this Clob object. The search begins at position start .  
Methods' Details
length
hyper
length()
raises( SQLException );

Description
returns the number of characters in the CLOB value designated by this Clob object.
Returns
the length of the CLOB object
Throws
SQLException if a database access error occurs.
getSubString
string
getSubString( [in] hyper  pos,
[in] long  length )
raises( SQLException );

Description
returns a copy of the specified substring in the Clob value designated by this Clob object.

The substring begins at position pos and has up to length consecutive characters.

Parameter pos
the starting position
Parameter length
the length of the substring
Returns
the substring
Throws
SQLException if a database access error occurs.
getCharacterStream
::com::sun::star::io::XInputStream
getCharacterStream()
raises( SQLException );

Description
gets the Clob contents as a stream.
Returns
the stream
Throws
SQLException if a database access error occurs.
position
hyper
position( [in] string  searchstr,
[in] long  start )
raises( SQLException );

Description
determines the character position at which the specified substring searchstr appears in the Clob . The search begins at position start .
Parameter searchstr
the string to search
Parameter start
the starting position
Returns
the length of the CLOB object
Throws
SQLException if a database access error occurs.
positionOfClob
hyper
positionOfClob( [in] XClob  pattern,
[in] hyper  start )
raises( SQLException );

Description
determines the position at which the specified Clob object pattern appears in this Clob object. The search begins at position start .
Parameter pattern
the CLOB to search
Parameter start
the starting position
Returns
the position of the CLOB inside
Throws
SQLException if a database access error occurs.
Top of Page