Real Time Information Director User Documentation
RTID Metadata Language
Hewlett-Packard Company 42 529618-002
Here are the constructors for the PrependFieldElement and AppendFieldElement classes:
public PrependFieldElement(String tagName, String columnName, char
separator)
public PrependFieldElement(String tagName, String columnName, int
numberOfChars)
public AppendFieldElement(String tagName, String columnName, char
separator)
public AppendFieldElement(String tagName, String columnName, int
numberOfChars)
Example:
The following example concatenates the values of the elements CREDAT and CRETIM
in the column SOURCE_DAT, separating the values with a blank space.
new PrependFieldElement("CREDAT", "SOURCE_DT", ' '),
new AppendFieldElement("CRETIM", "SOURCE_DT", ' ')
Splitting Elements
The SplitElement class divides a data element, storing different parts of the value in
different columns in the data store. In an outbound document, the specified data element
is generated by concatenating the data in the specified columns.
SplitElement has the following parameters:
• String tagName. This parameter is the XML tag of the data element.
• String[] columnNames. This parameter identifies the database columns in which
the data will be stored. The first part of the value is stored in the first column
listed in columnNames, the second part of the value is stored in the second
column listed in columnNames, and so on.
• Char separator. This parameter specifies the separator, which must be present in
the inbound data element.
Here is the constructor for the SplitElement class:
public SplitElement(String tagName, String[] columnNames, char
separator)