Home |
Previous Page | Next Page Creating an Opaque Data Type > Creating an Opaque Data Type >
The routine manager needs a mapping between SQL data
values and Java objects to be able to pass parameters to and retrieve return
results from a UDR. The SQL to Java
data-type mapping is performed according to the JDBC specification.
For built-in SQL data types, the routine manager can use mappings
to existing JDBC data types.
To create the mapping between a user-defined SQL data type
and a Java object
- Create a
user-defined class that implements the SQLData interface.
(For more information, refer to the JDBC 2.0
specification).
- Bind this user-defined class to the user-defined SQL data
type using the setUDTExtName built-in
procedure.
Home |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]