public class ResultTableAttributes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TABLE_RECONLINK |
static java.lang.String |
TABLE_RECONRESULT |
Constructor and Description |
---|
ResultTableAttributes(java.lang.String resultTableName) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String resultTableAttributeName,
java.lang.String objectTableAttributeName)
Add an attribute mapping entry.
|
void |
addAttribute(java.lang.String resultTableAttributeName,
java.lang.String objectTableAttributeName,
boolean isInRootObject)
Add an attribute mapping entry.
|
void |
clear()
Clear the attribute mappings
|
int |
getAttributeCount()
Get the total number of attribute mappings added by the addAttribute() calls
|
java.lang.String |
getObjectTableAttributeName(int index)
Get the name of the linking or comparion object attribute in the mapping entry indicated by an index.
|
java.lang.String |
getResultTableAttributeName(int index)
Get the name of the attribute in the RECONLINK or RECONRESULT table in the mapping entry indicated by an index.
|
java.lang.String |
getResultTableName()
Get the target result table name as passed in in the constructor
|
boolean |
isObjectTableAttributeInRoot(int index)
Detect if the mapping if for attribute that comes from a root object in comparison in the mapping entry indicated by an index.
|
public static final java.lang.String TABLE_RECONLINK
public static final java.lang.String TABLE_RECONRESULT
public ResultTableAttributes(java.lang.String resultTableName)
resultTableName
- The target result table name. This should be one the the 2 values: TABLE_RECONLINK for
the RECONLINK table, or TABLE_RECONRESULT for the RECONRESULT table.public void addAttribute(java.lang.String resultTableAttributeName, java.lang.String objectTableAttributeName)
resultTableAttributeName
- Name of the attribute in the RECONLINK or RECONRESULT tableobjectTableAttributeName
- Corresponding attribute name in object table, such as ASSET, where the value comes from.public void addAttribute(java.lang.String resultTableAttributeName, java.lang.String objectTableAttributeName, boolean isInRootObject)
resultTableAttributeName
- Name of the attribute in the RECONLINK or RECONRESULT tableobjectTableAttributeName
- Corresponding attribute name in object table, such as ASSET, where the value comes from.isInRootObject
- True if the value of the object table attribute comes from the root object public java.lang.String getResultTableName()
public void clear()
public int getAttributeCount()
public java.lang.String getResultTableAttributeName(int index)
Index
- The index of the attribute mappings in interest.public java.lang.String getObjectTableAttributeName(int index)
Index
- The index of the attribute mappings in interest.public boolean isObjectTableAttributeInRoot(int index)
Index
- The index of the attribute mappings in interest.