Package org.firebirdsql.jdbc.field
Class FBCachedClob
- java.lang.Object
- 
- org.firebirdsql.jdbc.field.FBCachedClob
 
- 
- All Implemented Interfaces:
- java.sql.Clob,- java.sql.NClob
 
 public class FBCachedClob extends java.lang.Object implements java.sql.Clob, java.sql.NClobClob implementation that is cached client-side.This implementation is used for disconnected result sets (ie scrollable and hold cursors over commit). This class also implements NClobso it can be used with theset/get/updateNClobmethods transparently. It technically does not conform to the JDBC requirements forNClob.
- 
- 
Constructor SummaryConstructors Constructor Description FBCachedClob(FBCachedBlob blob, java.lang.String javaEncoding)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfree()java.io.InputStreamgetAsciiStream()java.io.ReadergetCharacterStream()java.io.ReadergetCharacterStream(long pos, long length)java.lang.StringgetSubString(long pos, int length)longlength()longposition(java.lang.String searchstr, long start)longposition(java.sql.Clob searchstr, long start)java.io.OutputStreamsetAsciiStream(long pos)java.io.WritersetCharacterStream(long pos)intsetString(long pos, java.lang.String str)intsetString(long pos, java.lang.String str, int offset, int len)voidtruncate(long len)
 
- 
- 
- 
Constructor Detail- 
FBCachedClobpublic FBCachedClob(FBCachedBlob blob, java.lang.String javaEncoding) 
 
- 
 - 
Method Detail- 
freepublic void free() throws java.sql.SQLException- Specified by:
- freein interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
getAsciiStreampublic java.io.InputStream getAsciiStream() throws java.sql.SQLException- Specified by:
- getAsciiStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
getCharacterStreampublic java.io.Reader getCharacterStream() throws java.sql.SQLException- Specified by:
- getCharacterStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
getCharacterStreampublic java.io.Reader getCharacterStream(long pos, long length) throws java.sql.SQLException- Specified by:
- getCharacterStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
getSubStringpublic java.lang.String getSubString(long pos, int length) throws java.sql.SQLException- Specified by:
- getSubStringin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
lengthpublic long length() throws java.sql.SQLException- Specified by:
- lengthin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
positionpublic long position(java.lang.String searchstr, long start) throws java.sql.SQLException- Specified by:
- positionin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
positionpublic long position(java.sql.Clob searchstr, long start) throws java.sql.SQLException- Specified by:
- positionin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
setAsciiStreampublic java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException- Specified by:
- setAsciiStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
setCharacterStreampublic java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException- Specified by:
- setCharacterStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
setStringpublic int setString(long pos, java.lang.String str) throws java.sql.SQLException- Specified by:
- setStringin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
setStringpublic int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLException- Specified by:
- setStringin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
truncatepublic void truncate(long len) throws java.sql.SQLException- Specified by:
- truncatein interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 
- 
 
-