Loading...
Select Version
The hierarchical COBOL data structure is mapped to a hierarchical class structure.
Consequently, a field <XXX>
can be addressed as follows:
Read access: |
|
Write access: |
|
The construction can be used to achieve high-performance access to deeply nested fields.
Instead of
in.getArray2(1).getLineTab().getLinex(3).getKeyx().setData1 (1,"Value1"); in.getArray2(1).getLineTab().getLinex(3).getKeyx().setData2 (1,"Value2");
the fields can be accessed level by level:
Keyx keyx; keyx = in.getArray2(1).getLineTab().getLinex(3).getKeyx(); keyx.setData1(1,"Value1"); keyx.setData2(1,"Value2");