com.ibm.pdp.maf.rpp.pac.segment

Interface AbstractSegment

  • All Superinterfaces:
    AbstractRadicalElement, Element, RadicalElement
    All Known Subinterfaces:
    LogicalView, MonoStructureSegment, StandardSegment, Table


    public interface AbstractSegment
    extends AbstractRadicalElement

    A Segment is made of a structured collection of data elements (elementary or group) and belong to a Data Structure.

    Each segment, described only once, can be called into any entity that uses segments (programs, screens, segments or database blocks).

    A lot of information may be coded on the Segment definition and description lines. This information may be used according to the way the segment is used by other modules of the System (Pactables, BATCH, DBD..).

    • Method Detail

      • getCELines

        java.util.List<CELine> getCELines()

        The CELines allow to identify the elements which compose the current Segment : Data Element Component, Segment Component, undefined Data Element Component, Group Component and Filler.

        Returns:
      • getDataStructure

        DataStructure getDataStructure()

        Gives the Data Structure which supports this segment.

        Returns:
      • getGELines

        java.util.List<GLine> getGELines()

        GELines are used to declare explicit error messages on a Segment or replace automatically generated error messages on the elements called on the -CE Lines of a Segment.

        Returns:
      • getGenerationLibrary

        Library getGenerationLibrary()

        Indicates the Library on which we can find the generation parameters for the entity.

        These parameters are related to the adaptation to the operating system in use.

        Returns:
      • getGGLines

        java.util.List<GLine> getGGLines()

        The GGLines are used to customize the SQL accesses.

        Returns:
      • getGOLines

        java.util.List<GLine> getGOLines()

        GOLines are used to enter generation options for the uppercase-lowercase management in customized SQL accesses.

        Returns:
      • getLevelAddressLength

        java.util.List<LevelAddressLength> getLevelAddressLength()

        Returns the list of LAL for this segment.

        Returns:
      • getOccurrencesNumber

        int getOccurrencesNumber()

        This field is used to specify the estimated number of occurrences for a Segment in a database or in a standard file.

        Returns:
      • getStatistics

        Statistics getStatistics()

        Returns the statistics for this segment.

        Returns:
      • getTableSize

        int getTableSize()

        It is the amount of space reserved for a Segment in memory. Its length is four numeric characters maximum:

        • The Data Structure of the Segment is used in a Program as a table. By default, the default value at generation time is 100,

        • The type of record description incorporates the number of OCCURS indicated here.

        Returns:
      • getType

        SegmentTypeValues getType()

        The type of the Segment depends on the type of the data structure. It can be a Segment , a Pactables table or a Logical View.

        Returns: