 |
DataBlade Developers Kit User's Guide Programming Guidelines
|
|
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 JDK. 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. For more information on these packages, see the SQLJ Part I draft.
- Informix SQLJ extensions
- Certain Informix extensions to SQLJ are available to applications that need to exploit the capabilities of the database server. The Informix extensions reside in the com.informix.udr package.
- Java Database Connectivity (JDBC) 1.0 API
- Java methods can use the JDBC 1.0 API to access the database.
- Informix JDBC extensions
- Java methods can also use Informix extensions to JDBC 1.0 to access some JDBC 2.0 functionality.
When you edit your Java source code, follow the guidelines and restrictions listed in the Informix JDBC Driver Programmer's Guide and the Creating UDRs in Java manual.
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 Informix J/Foundation upgrade to Informix Dynamic Server 2000 to enable services that use Java. For more information about Informix J/Foundation, see the manual "Creating UDRs in Java."
DataBlade Developers Kit User's Guide, Version 4.0
Copyright © 1999, Informix Software, Inc. All rights reserved