Data Types - Fujitsu J Adapter Class Generator User Manual

Fujitsu user's guide j adapter class generator
Table of Contents

Advertisement

52
Chapter 5. Adapter Class Reference

Data types

The Java data types are mapped to the COBOL data types as shown below:
Java data
type
boolean
byte
char
short
int
long
float
double
Array
Object
Class and interface
Explanation
Public classes and interface are mapped to COBOL classes. The inheritance
relationships of adapter classes are the same as those of the corresponding Java
classes. Note that the following Java class inherits no other classes or interfaces but
the adapter classes generated inherit JF-JAVA-BASE.
java.lang.Object class
Similarly, the following interface inherits no other classes or interfaces but the
adapter classes generated inherit java.lang.Object.
Interface that inherits no other interface
COBOL data type
PIC 1
PIC X
PIC X(2)
When an ANK character is stored, the first byte is used and the second
byte is X'00'.
When a Japanese character is stored, two bytes are used.
Data is mapped when code option -cs (native code) or no code option is
specified.
PIC N
When an ANK character is stored, the first byte is used and the second
byte is X'00'.
When a Japanese character is stored, two bytes are used.
Data is mapped when code option -cu (Unicode) is specified.
PIC S9(4) COMP-5
PIC S9(9) COMP-5
PIC S9(18) COMP-5
COMP-1
COMP-2
Object reference array adapter class
Object reference adapter class

Advertisement

Table of Contents
loading

Table of Contents