Java™ programming guidelines
You can use the following Java™ packages,
interfaces, classes, and methods in a Java™ method:
- SQLJ packages
You can use all the basic and optional Java™ packages that are in the development kit for Java. That is, Java™ methods can use java.util.*, java.io.*, java.net.*, java.rmi.*, and so on. However, Java™ methods cannot use java.awt.*, java.applet.* and other GUI packages.
- Informix® SQLJ
extensions
Certain HCL Informix® extensions to SQLJ are available to applications that need to use the capabilities of the database server. The Informix® extensions are in the com.informix.udr package.
- Java™ Database
Connectivity (JDBC) API
Java™ methods can use the JDBC API to access the database.
- Informix® JDBC
extensions
Java™ methods can also use Informix® extensions to the JDBC API.
Version 4.0 of BladeSmith does not generate Java™ code for opaque data types. For a list
of additional restrictions on the Java™ code
you can generate with BladeSmith, see Options for routines.
Important: You must use the HCL Informix® J/Foundation component
to enable services that use Java™.
When you edit your Java™ source code, follow the guidelines and restrictions listed in the J/Foundation and Informix® JDBC Driver documentation.