com.ibm.as400.access

Class AS400FileRecordDescription

  • All Implemented Interfaces:
    Serializable


    public class AS400FileRecordDescription
    extends Object
    implements Serializable
    The AS400FileRecordDescription class represents the record descriptions of a physical or logical file on the system. This class is used to retrieve the file field description of a physical or logical file, and to create Java source code for a class extending from RecordFormat that can then be compiled and used as input to the AS400File.setRecordFormat() method. This allows the record format to be created statically during development time and then reused when needed. The class also provides a method for returning RecordFormat objects that can be used as input to the AS400File.setRecordFormat() method. This method can be used to create the record format dynamically.

    The output from the createRecordFormatSource() and retrieveRecordFormat() methods contains enough information to use to describe the record format of the existing file from which it was generated. The record formats generated are not meant for creating files with the same format as the file from which they are retrieved. Use the Copy File (CPYF) command to create a file with the same format as an existing file.
    AS400FileRecordDescription objects generate the following events:

    See Also:
    Serialized Form