In the database server, any Java class that implements the java.sql.SQLData interface and is accessible to the Java Virtual Machine can be stored as an opaque type. The UDTManager and UDRManager classes, together with their supporting UDTMetaData and UDRMetaData classes, extend this facility to client applications: your Java client application can use these classes to create opaque types and user-defined routines and transfer their class definitions to the database server. The client does not need to be accessible to the database server to use this functionality.
When you use the UDTManager and UDTMetaData classes, IBM Informix JDBC Driver performs all of the following actions for your application:
You define the server local area using the UDTManager.setJarFileTmpPath() method. The default is /tmp on UNIX systems and C:\temp on Windows systems.
You define support functions and casts using the setSupportUDR() and setXXXCast() methods in the UDTMetaData class.
If you do not provide input and output functions for the opaque type, the driver registers the default functions (see the release notes for any limitations on this feature).
When you use the UDRManager and UDRMetaData classes, IBM Informix JDBC Driver performs the following actions:
The methods in the UDT and UDR Manager facility perform the following main functions: