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).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright |
Modifier and Type | Method and Description |
---|---|
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.
|
static final java.lang.String copyright
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.
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.
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.
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).
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.
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.
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. This number is used for the activity calculation.
This field can be used with an S-type line only.
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).