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).


Field Summary
static java.lang.String copyright
           
 
Method Summary
 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).
 AbstractSegment getChildSegment()
           Child Segment code (member) can be used with an S-type line only.
 java.lang.String getDatabaseObjectName()
          Code which corresponds to the selected network record type.
 AbstractSegment getFromSegment()
          Name of the physical file (file name), which supports the data.
 java.util.List<GLine> getGGLines()
          In the -GG lines, you have the information contained in the BlockBase Description lines before they are generated.
 java.lang.String getMethodName()
          Schema: This field can be used with an S-type line only.
 NetworkRecordTypeValues getNetworkRecordType()
          Network Record Type
 int getNumberOfOccurencesOfSets()
          Average number of occurrences of the child Segment that are linked to an occurrence of the parent Segment.
 AbstractSegment getSegment()
          Parent Segment or record depending on the network record type selected.
 

Field Detail

copyright

static final java.lang.String copyright
See Also:
Constant Field Values
Method Detail

getAreaNameOrSetNameOrComment

java.lang.String getAreaNameOrSetNameOrComment()

CODASYL BlockBase:

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

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.

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.

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()

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

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:

getNetworkRecordType

NetworkRecordTypeValues getNetworkRecordType()

Network Record Type

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.

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

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

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: