Default input/output routines
Because this interface uses Java™, all the SQL I/O support functions are predefined when you register the UDT. You only need to supply the required SQLData implementation.
HCL OneDB™ supplies extensions to the Stream arguments of SQLData methods to suit various uses. With these extensions, you can build I/O functions for a new Java UDT. All that you must do to implement any of the required function sets is select the Stream type.
HCL OneDB also supplies default Input and Output processing methods in Java code that are used to implement all UDT I/O operations. The database server contains these default I/O methods and executes them just like any other Java UDR. These methods use information in the SQL UDR definition to select the correct Streams and instantiate the right user-defined type objects at execution time.
The circle class example illustrates the use of the SQLData interface.