The ClassGenerator utility

The ClassGenerator utility generates a Java™ class for a named row type defined in the system catalog. The utility is the HCL OneDB™ extension to the JDBC specification.

The created Java class implements the java.sql.SQLData interface. The class has members for each field in the named row. The readSQL(), writeSQL(), and SQLData.readSQL() methods read the attributes in the order in which they appear in the definition of the named row type in the database. Similarly, writeSQL() writes the data to the stream in that order.

ClassGenerator is packaged in the ifxtools.jar file, so the CLASSPATH environment variable must point to ifxtools.jar.

The syntax for using ClassGenerator is as follows:
java ClassGenerator rowtypename [-u URL] [-c classname]

The default value for classname is the value for rowtypename.

If the URL parameter is not specified, the required information is retrieved from the setup.std file in the home directory.

The structure of setup.std is as follows:
URL jdbc:host-name:port-number
ONEDB_SERVER informixservername
database database
user user
passwd password