Creating the JAR and class files
About this task
Once you have specified the characteristics of the opaque type through the UDTMetaData methods, you can use the methods in the UDTManager class to create opaque types and their class and JAR files in the following order:
Procedure
-
Instantiate the UDTManager object.
The constructor is defined as follows:
public UDTManager(Connection conn) throws SQLException
- Create the .class and .java files with the createUDTClass() method.
- Create the .jar file with the createJar() method.
- Create the opaque type with the createUDT() method.