public class ReconCompResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BOTH_DATASETS |
static int |
DATASET1_ONLY |
static int |
DATASET2_ONLY |
static java.lang.String |
MAIN_ATTRIBUTE_DATETIME_VALUE |
static java.lang.String |
MAIN_ATTRIBUTE_MEASURE_UNIT |
static java.lang.String |
MAIN_ATTRIBUTE_NAME |
static java.lang.String |
MAIN_ATTRIBUTE_VALUE |
static java.lang.String |
OBJECT_NAME |
Constructor and Description |
---|
ReconCompResult(ReconInfo reconInfo,
java.lang.String objectName,
int resultType) |
ReconCompResult(ReconInfo reconInfo,
java.lang.String dataSet1ObjectName,
java.lang.String dataSet2ObjectName) |
ReconCompResult(ReconInfo reconInfo,
java.lang.String dataSet1ObjectName,
java.lang.String dataSet2ObjectName,
int resultType) |
Modifier and Type | Method and Description |
---|---|
void |
addDataSet1Attribute(java.lang.String attributeName,
java.lang.Object attributeValue) |
void |
addDataSet2Attribute(java.lang.String attributeName,
java.lang.Object attributeValue) |
java.lang.String |
getCode() |
java.lang.Object |
getDataSet1Attribute(java.lang.String attributeName) |
java.lang.Object |
getDataSet2Attribute(java.lang.String attributeName) |
int |
getResultType() |
java.util.Map |
getRootValue1() |
java.util.Map |
getRootValue2() |
java.lang.String |
getRuleName() |
boolean |
isSameAs(ReconCompResult anotherResult)
Compare if the current result is the same as another result.
|
boolean |
isSuccessful() |
boolean |
isSupersede(ReconCompResult anotherResult)
Error Code C6 (attribute equal comparison has failed) supersedes the following error codes:
C7 (No Asset object for attribute equality comparison)
C8 (No Deployed Asset object for attribute equality comparison)
C9 (No Asset and Deployed Asset object for attribute equality comparison)
|
boolean |
isVoid() |
static ReconCompResult |
joinUsingAnd(ReconCompResult r1,
ReconCompResult r2) |
static ReconCompResult |
joinUsingOr(ReconCompResult r1,
ReconCompResult r2) |
void |
prepare(java.util.Map linkValue1,
java.util.Map linkValue2)
Prepare - set Root Information for the result and their ID and keys.
|
static java.lang.Object |
resolveItem(java.lang.Object item1,
java.lang.Object item2)
Compare Items and return the first item if both are equal otherwise return null
|
boolean |
sameValue(java.lang.Object o1,
java.lang.Object o2)
Compare two objects if they are the same.
|
void |
setCode(java.lang.String code) |
void |
setIDAndKeys(java.util.Map idKey1,
java.util.Map idKey2,
boolean isRoot)
setID And Keys for the result
|
void |
setIDAndKeys(ResultTableAttributes attributes,
java.util.Map idKey,
boolean isRoot,
boolean isDataSet1)
setID And Keys for the result
|
void |
setRootValue1(java.util.Map rootValue1) |
void |
setRootValue2(java.util.Map rootValue2) |
void |
setRuleName(java.lang.String ruleName) |
void |
setSuccessful(boolean successful) |
void |
setVoid(boolean isVoid) |
public static final int BOTH_DATASETS
public static final int DATASET1_ONLY
public static final int DATASET2_ONLY
public static final java.lang.String OBJECT_NAME
public static final java.lang.String MAIN_ATTRIBUTE_NAME
public static final java.lang.String MAIN_ATTRIBUTE_VALUE
public static final java.lang.String MAIN_ATTRIBUTE_DATETIME_VALUE
public static final java.lang.String MAIN_ATTRIBUTE_MEASURE_UNIT
public ReconCompResult(ReconInfo reconInfo, java.lang.String dataSet1ObjectName, java.lang.String dataSet2ObjectName)
public ReconCompResult(ReconInfo reconInfo, java.lang.String dataSet1ObjectName, java.lang.String dataSet2ObjectName, int resultType)
public ReconCompResult(ReconInfo reconInfo, java.lang.String objectName, int resultType) throws java.security.InvalidParameterException
java.security.InvalidParameterException
public int getResultType()
public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- The code to set.public java.lang.String getRuleName()
public void setRuleName(java.lang.String ruleName)
ruleName
- The ruleName to set.public boolean isSuccessful()
public void setSuccessful(boolean successful)
successful
- The successful to set.public void addDataSet1Attribute(java.lang.String attributeName, java.lang.Object attributeValue)
public java.lang.Object getDataSet1Attribute(java.lang.String attributeName)
public void addDataSet2Attribute(java.lang.String attributeName, java.lang.Object attributeValue)
public java.lang.Object getDataSet2Attribute(java.lang.String attributeName)
public static ReconCompResult joinUsingAnd(ReconCompResult r1, ReconCompResult r2)
public static ReconCompResult joinUsingOr(ReconCompResult r1, ReconCompResult r2)
public static java.lang.Object resolveItem(java.lang.Object item1, java.lang.Object item2)
item1
- item2
- public void prepare(java.util.Map linkValue1, java.util.Map linkValue2) throws MXException, java.rmi.RemoteException
linkValue1
- - link value1linkValue2
- - link value2MXException
java.rmi.RemoteException
public void setIDAndKeys(java.util.Map idKey1, java.util.Map idKey2, boolean isRoot) throws MXException, java.rmi.RemoteException
idKey1
- - dataset1 keyidKey2
- - dataset2 keyisRoot
- - set ID and Keys for root?MXException
java.rmi.RemoteException
public void setIDAndKeys(ResultTableAttributes attributes, java.util.Map idKey, boolean isRoot, boolean isDataSet1) throws MXException, java.rmi.RemoteException
attributes
- - attributesidKey2
- - keysisRoot
- - is RootMXException
java.rmi.RemoteException
public void setVoid(boolean isVoid)
public boolean isVoid()
public java.util.Map getRootValue1()
public void setRootValue1(java.util.Map rootValue1)
public java.util.Map getRootValue2()
public void setRootValue2(java.util.Map rootValue2)
public boolean isSameAs(ReconCompResult anotherResult)
anotherResult
- - another Resultpublic boolean sameValue(java.lang.Object o1, java.lang.Object o2)
o1
- - Object1o2
- - Object2public boolean isSupersede(ReconCompResult anotherResult)
anotherResult
- - another result