Sample 2 – specifying method, Outline, Distribution files – FUJITSU J Adapter Class Generator User Manual

Page 83: Cobol functions used, Java classes and constructor/method/field used

Advertising
background image

Chapter 7. Samples 83

Sample 2 – Specifying Method

Example 2: Example of generating an adapter class by

specifying constructor/method/field

This program description explains “Sample Program - Example 2” provided with this

product.
Example 2 shows how to generate the adapter class specifying

constructor/method/field.
Outline
The program contents are the same as example 1. However, example 2 generates

the adapter class specifying the Java constructor/method/field name used by the

program.
Distribution files
JADP02.TXT (program description)
JAVA2COB.MGT (generation name management file)
DATEMAIN.PRJ (project file)
DATEMAIN.CBI (compiler option file)
DATEMAIN.COB (COBOL source program)
DATE02JAVA.PRJ (project file)
DATE02JAVA.CBI (compiler option file)
DATE02JAVA2.PRJ (project file)
DATE02JAVA2.CBI (compiler option file)
COBOL functions used
Object-oriented programming functions
Object generation
Method invocation
Java classes and constructor/method/field used
java.lang.System class -- out field
java.io.PrintStream class -- println(java.lang.Object) method
java.util.Date class -- Date() constructor

Advertising