Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

2.1 Adapter Class

To make Java classes available to COBOL, a mechanism for converting the Java class interface into the COBOL interface is required. The J adapter class generator works as an interface converting mechanism to generate adapter classes corresponding to Java classes. To use a Java class from a COBOL program, the adapter class created by the generator can be called. The adapter class is written in COBOL and therefore can be called in the same manner as a COBOL class.

The relationship between the Java class/interface and adapter class is shown below:

Figure 2.1 Java class/interface and adapter class