com.ibm.pdp.maf.rpp.pac.blockbase

Interface DCLine

  • All Superinterfaces:
    Element


    public interface DCLine
    extends Element

    DCLines are dedicated to the description of the CODASYL, DMSII, and TANDEM Database BlockBases.

    They indicates declarations of the areas, calls the records, and distribution of them within the AREAS, calls the SETS and description of them (name, label, parent, and child Segments).

    • Method Detail

      • getAreaNameOrSetNameOrComment

        java.lang.String getAreaNameOrSetNameOrComment()

        CODASYL BlockBase:

        Depending on the value of the network record type, you can have:

        • The name of the Set (S-type line),

        • The name of the Area (A-type line),

        • A comment (R-type line).

        For an IDMS (D4) or DMS (S3) subschema, you can have the selection of a subschema at the BlockBase description level : line SS=n. (with 'n' being the subschema number according to the definition).

        For an IDS2 (I3) subschema, you can have the call an object (area, record, set) without redescribing it ! line INCLUSION.

        TANDEM BlockBase:

        Name of the physical file which supports the data. When the BlockBase is generated, this name is displayed after the 'FILE IS' clause.

        Returns:
      • getChildSegment

        AbstractSegment getChildSegment()

        Child Segment code (member) can be used with an S-type line only.

        Returns:
      • getDatabaseObjectName

        java.lang.String getDatabaseObjectName()

        Code which corresponds to the selected network record type.

        • Type 'S': Set code, on five characters

        • Type 'A': Area code, on five characters

        • Type 'R': Code of the area to which the record belongs.

        Returns:
      • getFromSegment

        AbstractSegment getFromSegment()

        Name of the physical file (file name), which supports the data. When the BlockBase is generated, this name is displayed after the FILE IS clause.

        This field is active only for an R-type line (Record).

        Returns:
      • getGGLines

        java.util.List<GLine> getGGLines()

        In the -GG lines, you have the information contained in the BlockBase Description lines before they are generated.

        Depending on the type of description line, lines are automatically displayed, in order to guide you when you enter the physical information of the BlockBase. These lines are identified by 'VIRT' or 'GUID' in the last field of the table of the -GG lines. Collectively, these lines are called 'virtual' lines. The lines identified by 'VIRT' are generated. These lines can be overridden.

        The lines will be taken into account at generation time, depending on a G Type.

        • *: comment lines to be generated,

        • V: lines generated before the automatically generated elements,

        • G: line generated instead of the automatically generated elements,

        • P: lines generated between the element automatically generated parts and its description,

        • Z: lines generated after the automatically generated elements,

        The description gives the generation elements or comments you want to be generated. You can use the virtual lines to specify the physical characteristics of the areas and sets (DMCL), including the information related to sort keys and insertion modes.

        Returns:
      • getMethodName

        java.lang.String getMethodName()
        • Schema:

        This field can be used with an S-type line only.

        • Subschema:

        Only used for IDMS ('D3', 'D4' types), DM4 ('M3' type) and DMS ('S3' type) subschemas.

        On an R-type line, you can change the description of the selected record.

        Returns:
      • getNumberOfOccurencesOfSets

        int getNumberOfOccurencesOfSets()

        Average number of occurrences of the child Segment that are linked to an occurrence of the parent Segment. This number is used for the activity calculation.

        This field can be used with an S-type line only.

        Returns:
      • getSegment

        AbstractSegment getSegment()

        Parent Segment or record depending on the network record type selected.

        • CODASYL database:

        If the type is 'R', you select the record code.

        If the type is 'S', you indicate the parent Segment code.

        • TANDEM database:

        You enter the Segment code which corresponds to the called record. When the BlockBase is generated, this code is displayed after the 'RECORD' clause.

        This field cannot be used if the type is 'A' (Area).

        Returns: