Supported Java data types for mapping to COBOL data structures
To share rules with COBOL applications, the BOM must use only Java™ types that map to COBOL structures.
To execute business rules in a COBOL environment, the structure of the BOM must be identical to the structure of the generated COBOL copybook. Where Java data structures do not map to COBOL, you must either amend the BOM, or amend the XOM and then update the BOM. You cannot generate a copybook from a BOM that contains unsupported data structures.
- The object model of the BOM must have an aggregated structure.
- The Java XOM class must
do the following:
- Have a no-argument constructor
- Follow the JavaBeans naming convention to access its attributes
The following class-related structures are not supported for COBOL copybook generation. If the BOM contains these data structures, you must redesign your BOM:
Class inheritance
Class reference loop
Nested classes
You can have the following Java types in the BOM:
Java primitive types (for example, int, float, and boolean)
BigInteger and BigDecimal
BOM class
Date
String
Enum
Char
Map interface and its concrete implementation classes
Collection interface and its concrete implementation classes