Class Clob
java.lang.Object
com.mysql.jdbc.Clob
- All Implemented Interfaces:
OutputStreamWatcher, WriterWatcher, Clob
- Direct Known Subclasses:
JDBC4NClob
Simplistic implementation of java.sql.Clob for MySQL Connector/J
-
Constructor Summary
ConstructorsConstructorDescriptionClob(ExceptionInterceptor exceptionInterceptor) Clob(String charDataInit, ExceptionInterceptor exceptionInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()getCharacterStream(long pos, long length) getSubString(long startPos, int length) longlength()longlongsetAsciiStream(long indexToWriteAt) setCharacterStream(long indexToWriteAt) intintvoidCalled when the OutputStream being watched has .close() calledvoidtruncate(long length) voidwriterClosed(char[] charDataBeingWritten) voidCalled when the Writer being watched has .close() called
-
Constructor Details
-
Clob
Clob(ExceptionInterceptor exceptionInterceptor) -
Clob
Clob(String charDataInit, ExceptionInterceptor exceptionInterceptor)
-
-
Method Details
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceClob- Throws:
SQLException- See Also:
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException- See Also:
-
getSubString
- Specified by:
getSubStringin interfaceClob- Throws:
SQLException- See Also:
-
length
- Specified by:
lengthin interfaceClob- Throws:
SQLException- See Also:
-
position
- Specified by:
positionin interfaceClob- Throws:
SQLException- See Also:
-
position
- Specified by:
positionin interfaceClob- Throws:
SQLException- See Also:
-
setAsciiStream
- Specified by:
setAsciiStreamin interfaceClob- Throws:
SQLException- See Also:
-
setCharacterStream
- Specified by:
setCharacterStreamin interfaceClob- Throws:
SQLException- See Also:
-
setString
- Specified by:
setStringin interfaceClob- Throws:
SQLException- See Also:
-
setString
- Specified by:
setStringin interfaceClob- Throws:
SQLException- See Also:
-
streamClosed
Description copied from interface:OutputStreamWatcherCalled when the OutputStream being watched has .close() called- Specified by:
streamClosedin interfaceOutputStreamWatcher- See Also:
-
truncate
- Specified by:
truncatein interfaceClob- Throws:
SQLException- See Also:
-
writerClosed
public void writerClosed(char[] charDataBeingWritten) - See Also:
-
writerClosed
Description copied from interface:WriterWatcherCalled when the Writer being watched has .close() called- Specified by:
writerClosedin interfaceWriterWatcher- See Also:
-
free
- Specified by:
freein interfaceClob- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-