Real Time Information Director User Documentation
    RTID Metadata Language 
Hewlett-Packard Company  40  529618-002   
QualifiedParentElement 
The QualifiedParentElement class maps an element in a specific instance of a segment to 
a column in the parent table. This option addresses the ambiguity that can arise in the 
case of ParentElement. 
QualifiedParentElement has the following parameters: 
•  String tagName. This parameter is the XML tag of the data element to be 
mapped. 
•  String columnName. This parameter identifies the database column, in the parent 
segment, in which the data will be stored. 
•  String qualifierColumnName. This is the name of the column whose value 
identifies the segment containing the data.  The mapping of some element to this 
column must precede the QualifiedParentElement invocation in the metadata. 
•  String qualifierColumnValue. This is the value of the qualifier column in the 
segment from which the data element needs to be mapped. 
QualifiedParentElement lets you to store a segment as a separate record while 
“flattening” certain elements by storing them in the parent record. 
Here is the constructor for the QualifiedParentElement class: 
public QualifiedParentElement(String tagName, String columnName, String 
qualifierColumnName, String qualifierColumnValue) 
Example: 
The following metadata specifies that the contents of the IHREZ element must be stored 
in the column INTERNAL_REFERENCE_NO in the parent record if this segment has a 
value of “AG” in its PARVW data element. (Literally, “AG” is specified as the value of 
the column “PARTNER_FUNCTION_CD,” but PARVW is the data element mapped to 
that column.) 
new RecordSegment("E1EDKA1", "ROLE_SPEC_SLS_ORD_EVENT", 
new FieldElement[] { 
  new FieldElement("PARVW", "PARTNER_FUNCTION_CD"), 
  . . . 
  new QualifiedParentElement("IHREZ", "INTERNAL_REFERENCE_NO", 
 "PARTNER_FUNCTION_CD", "AG"), 
Here is the corresponding data segment in the XML document. The data element 
PARVW has the value “AG,” so the value of IHREZ will be stored in the parent segment. 
<E1EDKA1 SEGMENT="1"> 
<PARVW>AG</PARVW> 
. . . 










