The record format class allows the Java program to describe a group of fields or parameters. A record object contains data described by a record format object. If the program is using record-level access classes, the record format class also allows the program to specify descriptions for key fields.
A record format object contains a set of field descriptions. The field description can be accessed by index or by name. Methods exist on the record format class to do the following:
For example, to add the field descriptions created in the field description example to a record format:
// Create a record format object, // then fill it with field // descriptions. RecordFormat rf = new RecordFormat(); rf.addFieldDescription(bfd); rf.addFieldDescription(cfd1); rf.addFieldDescription(cfd2);
The program is now ready to create a record from the record format. The example continues in the record section.
[ Information Center Home Page | Feedback ] | [ Legal | AS/400 Glossary ] |