All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.access.AS400JDBCClobLocator
java.lang.Object
|
+----com.ibm.as400.access.AS400JDBCClobLocator
- public class AS400JDBCClobLocator
- extends Object
- implements Clob
The AS400JDBCClobLocator class provides access to character large
objects. The data is valid only within the current
transaction.
-
getAsciiStream()
- Returns the entire clob as a stream of ASCII characters.
-
getCharacterStream()
- Returns the entire clob as a character stream.
-
getSubString(long, int)
- Returns part of the contents of the clob.
-
length()
- Returns the length of the clob.
-
position(Clob, long)
- Returns the position at which a pattern is found in the clob.
-
position(String, long)
- Returns the position at which a pattern is found in the clob.
getAsciiStream
public InputStream getAsciiStream() throws SQLException
- Returns the entire clob as a stream of ASCII characters.
- Returns:
- The stream.
- Throws: SQLException
- If an error occurs.
getCharacterStream
public Reader getCharacterStream() throws SQLException
- Returns the entire clob as a character stream.
- Returns:
- The stream.
- Throws: SQLException
- If an error occurs.
getSubString
public String getSubString(long start,
int length) throws SQLException
- Returns part of the contents of the clob.
- Parameters:
- start - The position within the clob (0-based).
- length - The length to return.
- Returns:
- The contents.
- Throws: SQLException
- If the position is not valid,
if the length is not valid,
or an error occurs.
length
public long length() throws SQLException
- Returns the length of the clob.
- Returns:
- The length of the clob, in characters.
- Throws: SQLException
- If an error occurs.
position
public long position(String pattern,
long start) throws SQLException
- Returns the position at which a pattern is found in the clob.
- Parameters:
- pattern - The pattern.
- start - The position within the clob to begin
searching (0-based).
- Returns:
- The position at which the pattern
is found, or -1 if the pattern is not
found.
- Throws: SQLException
- If the pattern is null,
the position is not valid,
or an error occurs.
position
public long position(Clob pattern,
long start) throws SQLException
- Returns the position at which a pattern is found in the clob.
- Parameters:
- pattern - The pattern.
- start - The position within the clob to begin
searching (0-based).
- Returns:
- The position at which the pattern
is found, or -1 if the pattern is not
found.
- Throws: SQLException
- If the pattern is null,
the position is not valid,
or an error occurs.
All Packages Class Hierarchy This Package Previous Next Index