Specify characteristics for an opaque type

The following topics provide additional information about creating an opaque type without a preexisting Java™ class. Details about creating an opaque type from an existing Java class begin with Creating an opaque type from existing code.

Using the methods in the UDTMetaData class, you can specify characteristics for a new opaque type. These settings apply for new opaque types; for opaque types created from existing files, see Creating an opaque type from existing code.

You can set the following characteristics:
  • The number of fields in the internal data structure that defines the opaque type
  • Additional characteristics, such as data type, name, and scale, of each field in the internal structure that defines the opaque type
  • The length of the opaque type
  • The alignment of the opaque type
  • The SQL name of the opaque type and the JAR file
  • The name of the generated Java class
  • Whether to keep the generated .java file