RecordFormat class

The RecordFormat class allows the Java program to describe a group of fields or parameters. A record object contains data described by a RecordFormat object. If the program is using record-level access classes, the RecordFormat class also allows the program to specify descriptions for key fields.

A RecordFormat object contains a set of field descriptions. The field description can be accessed by index or by name. Methods exist on the RecordFormat 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.