Writes to the stream the data contained in the given
SQLData
object.
When the
SQLData
object is
null
, this
method writes an SQL
NULL
to the stream.
Otherwise, it calls the
SQLData.writeSQL
method of the given object, which
writes the object's attributes to the stream.
The implementation of the method
SQLData.writeSQ
calls the appropriate
SQLOutput
writer method(s)
for writing each of the object's attributes in order.
The attributes must be read from an
SQLInput
input stream and written to an
SQLOutput
output stream in the same order in which they were
listed in the SQL definition of the user-defined type.
Parameters:
-
x - the object representing data of an SQL structured or
distinct type
Throws:
-
SQLException - if a database access error occurs
-
SQLFeatureNotSupportedException - if the JDBC driver does not support
this method
Since:
1.2