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

  1. Instantiate the UDTManager object.
    The constructor is defined as follows:
    public UDTManager(Connection conn) throws SQLException
  2. Create the .class and .java files with the createUDTClass() method.
  3. Create the .jar file with the createJar() method.
  4. Create the opaque type with the createUDT() method.