public final class JdbcClob extends JdbcLob implements java.sql.NClob
JdbcLob.State
Constructor and Description |
---|
JdbcClob(JdbcConnection conn,
org.h2.value.Value value,
JdbcLob.State state,
int id)
INTERNAL
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getAsciiStream()
Returns the input stream.
|
java.io.Reader |
getCharacterStream()
Returns the reader.
|
java.io.Reader |
getCharacterStream(long pos,
long length)
Returns the reader, starting from an offset.
|
java.lang.String |
getSubString(long pos,
int length)
Returns a substring.
|
long |
length()
Returns the length.
|
long |
position(java.sql.Clob clobPattern,
long start)
[Not supported] Searches a pattern and return the position.
|
long |
position(java.lang.String pattern,
long start)
[Not supported] Searches a pattern and return the position.
|
java.io.OutputStream |
setAsciiStream(long pos)
[Not supported] Returns an output stream.
|
java.io.Writer |
setCharacterStream(long pos)
Get a writer to update the Clob.
|
int |
setString(long pos,
java.lang.String str)
Fills the Clob.
|
int |
setString(long pos,
java.lang.String str,
int offset,
int len)
Fills the Clob.
|
void |
truncate(long len)
[Not supported] Truncates the object.
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
public JdbcClob(JdbcConnection conn, org.h2.value.Value value, JdbcLob.State state, int id)
conn
- it belongs tovalue
- ofstate
- of the LOBid
- of the trace objectpublic long length() throws java.sql.SQLException
length
in interface java.sql.Clob
java.sql.SQLException
public void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Clob
java.sql.SQLException
public java.io.InputStream getAsciiStream() throws java.sql.SQLException
getAsciiStream
in interface java.sql.Clob
java.sql.SQLException
public java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException
setAsciiStream
in interface java.sql.Clob
java.sql.SQLException
public java.io.Reader getCharacterStream() throws java.sql.SQLException
JdbcLob
getCharacterStream
in interface java.sql.Clob
java.sql.SQLException
- on failurepublic java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException
setCharacterStream
in interface java.sql.Clob
pos
- where to start writing (the first character is at position 1)java.sql.SQLException
public java.lang.String getSubString(long pos, int length) throws java.sql.SQLException
getSubString
in interface java.sql.Clob
pos
- the position (the first character is at position 1)length
- the number of charactersjava.sql.SQLException
public int setString(long pos, java.lang.String str) throws java.sql.SQLException
setString
in interface java.sql.Clob
pos
- where to start writing (the first character is at position 1)str
- the string to addjava.sql.SQLException
- on failurepublic int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLException
setString
in interface java.sql.Clob
pos
- where to start writing (the first character is at position 1)str
- the string to addoffset
- the string offsetlen
- the number of characters to readjava.sql.SQLException
public long position(java.lang.String pattern, long start) throws java.sql.SQLException
position
in interface java.sql.Clob
java.sql.SQLException
public long position(java.sql.Clob clobPattern, long start) throws java.sql.SQLException
position
in interface java.sql.Clob
java.sql.SQLException
public java.io.Reader getCharacterStream(long pos, long length) throws java.sql.SQLException
getCharacterStream
in interface java.sql.Clob
pos
- 1-based offsetlength
- length of requested areajava.sql.SQLException