Writes this object to the given SQL data stream, converting it back to
its SQL value in the data source.
The implementation of the method must follow this protocol:
It must write each of the attributes of the SQL type
to the given output stream. This is done by calling a
method of the output stream to write each item, in the order that
they appear in the SQL definition of the type.
Specifically, it must call the appropriate
SQLOutput
writer
method(s) (
writeInt
,
writeString
, and so on)
to do the following: for a Distinct Type, write its single data element;
for a Structured Type, write a value for each attribute of the SQL type.
Parameters:
-
stream - the
SQLOutput
object to which to write the data for
the value that was custom mapped
Throws:
-
SQLException - if there is a database access error
-
SQLFeatureNotSupportedException - if the JDBC driver does not support
this method
Since:
1.2
See Also:
SQLOutput
,