public class Clob extends java.lang.Object implements java.sql.Clob, OutputStreamWatcher, WriterWatcher
Constructor and Description |
---|
Clob(ExceptionInterceptor exceptionInterceptor) |
Clob(java.lang.String charDataInit,
ExceptionInterceptor exceptionInterceptor) |
Modifier and Type | Method and Description |
---|---|
void |
free() |
java.io.InputStream |
getAsciiStream() |
java.io.Reader |
getCharacterStream() |
java.io.Reader |
getCharacterStream(long pos,
long length) |
java.lang.String |
getSubString(long startPos,
int length) |
long |
length() |
long |
position(java.sql.Clob arg0,
long arg1) |
long |
position(java.lang.String stringToFind,
long startPos) |
java.io.OutputStream |
setAsciiStream(long indexToWriteAt) |
java.io.Writer |
setCharacterStream(long indexToWriteAt) |
int |
setString(long pos,
java.lang.String str) |
int |
setString(long pos,
java.lang.String str,
int offset,
int len) |
void |
streamClosed(WatchableOutputStream out)
Called when the OutputStream being watched has .close() called
|
void |
truncate(long length) |
void |
writerClosed(char[] charDataBeingWritten) |
void |
writerClosed(WatchableWriter out)
Called when the Writer being watched has .close() called
|
Clob(ExceptionInterceptor exceptionInterceptor)
Clob(java.lang.String charDataInit, ExceptionInterceptor exceptionInterceptor)
public java.io.InputStream getAsciiStream() throws java.sql.SQLException
getAsciiStream
in interface java.sql.Clob
java.sql.SQLException
Clob.getAsciiStream()
public java.io.Reader getCharacterStream() throws java.sql.SQLException
getCharacterStream
in interface java.sql.Clob
java.sql.SQLException
Clob.getCharacterStream()
public java.lang.String getSubString(long startPos, int length) throws java.sql.SQLException
getSubString
in interface java.sql.Clob
java.sql.SQLException
Clob.getSubString(long, int)
public long length() throws java.sql.SQLException
length
in interface java.sql.Clob
java.sql.SQLException
Clob.length()
public long position(java.sql.Clob arg0, long arg1) throws java.sql.SQLException
position
in interface java.sql.Clob
java.sql.SQLException
Clob.position(Clob, long)
public long position(java.lang.String stringToFind, long startPos) throws java.sql.SQLException
position
in interface java.sql.Clob
java.sql.SQLException
Clob.position(String, long)
public java.io.OutputStream setAsciiStream(long indexToWriteAt) throws java.sql.SQLException
setAsciiStream
in interface java.sql.Clob
java.sql.SQLException
Clob.setAsciiStream(long)
public java.io.Writer setCharacterStream(long indexToWriteAt) throws java.sql.SQLException
setCharacterStream
in interface java.sql.Clob
java.sql.SQLException
Clob.setCharacterStream(long)
public int setString(long pos, java.lang.String str) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
Clob.setString(long, String)
public int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
Clob.setString(long, String, int, int)
public void streamClosed(WatchableOutputStream out)
OutputStreamWatcher
streamClosed
in interface OutputStreamWatcher
com.mysql.jdbc.OutputStreamWatcher#streamClosed(byte[])
public void truncate(long length) throws java.sql.SQLException
truncate
in interface java.sql.Clob
java.sql.SQLException
Clob.truncate(long)
public void writerClosed(char[] charDataBeingWritten)
com.mysql.jdbc.WriterWatcher#writerClosed(char[])
public void writerClosed(WatchableWriter out)
WriterWatcher
writerClosed
in interface WriterWatcher
com.mysql.jdbc.WriterWatcher#writerClosed(char[])
public void free() throws java.sql.SQLException
free
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
java.sql.SQLException