public class JdbcClob extends TraceObject implements Clob
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQL_EXCEPTION, STATEMENT, trace, XA_DATA_SOURCE, XA_RESOURCE, XID| Constructor and Description |
|---|
JdbcClob(JdbcConnection conn,
Value value,
int id)
INTERNAL
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Release all resources of this object.
|
InputStream |
getAsciiStream()
Returns the input stream.
|
Reader |
getCharacterStream()
Returns the reader.
|
String |
getSubString(long pos,
int length)
Returns a substring.
|
long |
length()
Returns the length.
|
long |
position(Clob clobPattern,
long start)
[Not supported] Searches a pattern and return the position.
|
long |
position(String pattern,
long start)
[Not supported] Searches a pattern and return the position.
|
OutputStream |
setAsciiStream(long pos)
[Not supported] Returns an output stream.
|
Writer |
setCharacterStream(long pos)
Get a writer to update the Clob.
|
int |
setString(long pos,
String str)
Fills the Clob.
|
int |
setString(long pos,
String str,
int offset,
int len)
[Not supported] Sets a substring.
|
String |
toString()
INTERNAL
|
void |
truncate(long len)
[Not supported] Truncates the object.
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTrace, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupportedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCharacterStreampublic JdbcClob(JdbcConnection conn, Value value, int id)
public long length()
throws SQLException
length in interface ClobSQLExceptionpublic void truncate(long len)
throws SQLException
truncate in interface ClobSQLExceptionpublic InputStream getAsciiStream() throws SQLException
getAsciiStream in interface ClobSQLExceptionpublic OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream in interface ClobSQLExceptionpublic Reader getCharacterStream() throws SQLException
getCharacterStream in interface ClobSQLExceptionpublic Writer setCharacterStream(long pos) throws SQLException
setCharacterStream in interface Clobpos - where to start writing (the first character is at position 1)SQLExceptionpublic String getSubString(long pos, int length) throws SQLException
getSubString in interface Clobpos - the position (the first character is at position 1)length - the number of charactersSQLExceptionpublic int setString(long pos,
String str)
throws SQLException
setString in interface Clobpos - where to start writing (the first character is at position 1)str - the string to addSQLExceptionpublic int setString(long pos,
String str,
int offset,
int len)
throws SQLException
setString in interface ClobSQLExceptionpublic long position(String pattern, long start) throws SQLException
position in interface ClobSQLExceptionpublic long position(Clob clobPattern, long start) throws SQLException
position in interface ClobSQLExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.