Package org.firebirdsql.jdbc
Class FBClob
java.lang.Object
org.firebirdsql.jdbc.FBClob
Implementation of
Clob.
This class also implements NClob so it can be used with the set/get/updateNClob methods
transparently. It technically does not conform to the JDBC requirements for NClob.
- Version:
- 1.0
- Author:
- David Jencks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyCharacterStream(Reader characterStream) voidcopyCharacterStream(Reader characterStream, long length) Copy data from a character stream into this Blob.voidfree()getCharacterStream(long pos, long length) getSubString(long pos, int length) Retrieves the FBBlob wrapped by this FBClob.longlength()longlongsetAsciiStream(long pos) setCharacterStream(long position) intintvoidtruncate(long param1)
-
Constructor Details
-
FBClob
-
-
Method Details
-
length
- Specified by:
lengthin interfaceClob- Throws:
SQLException
-
truncate
This operation is not currently supported
- Specified by:
truncatein interfaceClob- Throws:
SQLException
-
getSubString
- Specified by:
getSubStringin interfaceClob- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceClob- Throws:
SQLException
-
position
Jaybird currently does not support this method.
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
position
Jaybird currently does not support this method.
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
setString
Jaybird currently does not support this method.
- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setString
Jaybird currently does not support this method.
- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfaceClob- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfaceClob- Throws:
SQLException
-
free
- Specified by:
freein interfaceClob- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
copyCharacterStream
Copy data from a character stream into this Blob.Calling with length
-1is equivalent to callingcopyCharacterStream(Reader).- Parameters:
characterStream- the source of data to copylength- The maximum number of bytes to copy, or-1to read the whole stream- Throws:
SQLException
-
copyCharacterStream
- Throws:
SQLException
-
getWrappedBlob
Retrieves the FBBlob wrapped by this FBClob.- Returns:
- FBBlob instance
- Throws:
SQLException
-