Interface StreamStorable
- All Known Subinterfaces:
BitDataValue
- All Known Implementing Classes:
CollatorSQLChar
,CollatorSQLClob
,CollatorSQLLongvarchar
,CollatorSQLVarchar
,SQLBinary
,SQLBit
,SQLBlob
,SQLChar
,SQLClob
,SQLLongVarbit
,SQLLongvarchar
,SQLVarbit
,SQLVarchar
,XML
public interface StreamStorable
Streaming interface for a data value. The format of
the stream is data type dependent and represents the
on-disk format of the value. That is it is different
to the value an application will see through JDBC
with methods like getBinaryStream and getAsciiStream.
If the value is NULL (DataValueDescriptor.isNull returns true then these methods should not be used to get the value.
If the value is NULL (DataValueDescriptor.isNull returns true then these methods should not be used to get the value.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Set the value by reading the stream and converting it to an object form.Return the on-disk stream state of the object.void
setStream
(InputStream newStream) sets the on-disk stream state for the object.
-
Method Details
-
returnStream
InputStream returnStream()Return the on-disk stream state of the object. -
setStream
sets the on-disk stream state for the object. -
loadStream
Set the value by reading the stream and converting it to an object form.- Throws:
StandardException
- on error
-