Using the SQLData interface
To implement a complete UDT in Java™ code, you must supply a set of data-formatting methods that convert to and from the various representations of the data type. These methods perform input and output operations for the data type such as converting text input to the internal structure that the database server uses.
About this task
All the database server I/O functions manipulate data formats that can be represented as Java streams. The streams encapsulate the data and implement methods needed to parse the source format or write the destination format.
To implement an opaque UDT and use the default data-translation I/O methods:
Procedure
Results
The readSQL() method converts a database type to a Java object and the writeSQL() method converts a Java object to the database type. The system supplies the appropriate stream type at run time.
execute procedure unregisterJUDTfuncs(“Record3”);