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, unsupported
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCharacterStream
public JdbcClob(JdbcConnection conn, Value value, int id)
public long length() throws SQLException
length
in interface Clob
SQLException
public void truncate(long len) throws SQLException
truncate
in interface Clob
SQLException
public InputStream getAsciiStream() throws SQLException
getAsciiStream
in interface Clob
SQLException
public OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream
in interface Clob
SQLException
public Reader getCharacterStream() throws SQLException
getCharacterStream
in interface Clob
SQLException
public Writer setCharacterStream(long pos) throws SQLException
setCharacterStream
in interface Clob
pos
- where to start writing (the first character is at position 1)SQLException
public String getSubString(long pos, int length) throws SQLException
getSubString
in interface Clob
pos
- the position (the first character is at position 1)length
- the number of charactersSQLException
public int setString(long pos, String str) throws SQLException
setString
in interface Clob
pos
- where to start writing (the first character is at position 1)str
- the string to addSQLException
public int setString(long pos, String str, int offset, int len) throws SQLException
setString
in interface Clob
SQLException
public long position(String pattern, long start) throws SQLException
position
in interface Clob
SQLException
public long position(Clob clobPattern, long start) throws SQLException
position
in interface Clob
SQLException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.