Home |
Previous Page | Next Page Working with Opaque Types > Creating Opaque Types and UDRs >
To qualify for converting into an opaque type, your Java
class must meet the following conditions:
Additional requirements for UDRs are
as follows:
- All
class methods to be registered as UDRs
must be static.
- The method argument types and the return types must be valid
Java data types.
- The methods can use all basic nongraphical Java packages that
are included in the JDK, such as java.util, java.io, java.net, java.rmi, java.sql,
and so forth.
- Data types of method arguments and return types must conform
to the data type mapping tables shown in Data Type Mapping for UDT Manager and UDR Manager.
- The following SQL argument or return
types are not supported:
- MONEY
- DATETIME with qualifier other than hour to second or year to fraction(5)
- INTERVAL with qualifier other than year to month or day to fraction(5)
- Any data type not shown in the mapping tables for method arguments and
return types; for the tables, see Data Type Mapping for UDT Manager and UDR Manager.
Home |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]