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.

RecordFormat

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:

Example: Adding field descriptions to a record format

The following example adds 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);

To see how to create a record from the record format, see the example on the following page:

Record class