The setSupportUDR() and setUDR() methods

The setSupportUDR() method specifies a Java method in an existing Java class that will be registered as a support UDR for the opaque type.

The method parameter specifies an object from java.lang.reflect.Method to be registered as a Java support UDR for the opaque type in the database server. Support UDRs are Input, Output, Send, Receive, and so forth (for more information, see Informix® User-Defined Routines and Data Types Developer's Guide.)

The sqlname parameter specifies the SQL name of the method. For more information, see SQL names.

The type parameter specifies the kind of support UDR, as follows:
UDTMetaData.INPUT
UDTMetaData.OUTPUT
UDTMetaData.SEND
UDTMetaData.RECEIVE
UDTMetaData.IMPORT
UDTMetaData.EXPORT
UDTMetaData.BINARYIMPORT
UDTMetaData.BINARYEXPORT
For step-by-step information about creating an opaque type from existing code, see Creating an opaque type from an existing Java class.
Tip: It is not necessary to register the methods in the SQLData interface. For example, you do not need to register SQLData.getSQLTypeName(), SQLData.readSQL(), or SQLData.writeSQL().

To specify other UDRs, use setUDR() as described in Create UDRs.