public class ComparisonQueryHelper
extends java.lang.Object
ComparisonStatementHelper
objects for all asset
objects at the input end of comparisonModifier and Type | Field and Description |
---|---|
protected java.util.Map |
allStatements |
static int |
ATTRIBUTE_EQUALITY_STATEMENT |
static int |
ATTRIBUTE_EQUALITY_STATEMENT_DATASET1 |
static int |
ATTRIBUTE_EQUALITY_STATEMENT_DATASET2 |
protected java.util.ArrayList |
attributeMatchLeadingSideObjects
the names of the objects on the leading side used in the attribute match
expression (empty when the rule does cardinality comparison )
|
static int |
CARDINALITY_STATEMENT |
static int |
CARDINALITY_STATEMENT_DATASET1 |
static int |
CARDINALITY_STATEMENT_DATASET2 |
static int |
FILTER_DATASET1 |
static int |
FILTER_DATASET2 |
static int |
INVALID |
protected ComparisonStatementHelper |
mainStatement1
statement for the main object of data set 1
|
protected ComparisonStatementHelper |
mainStatement2
statement for the main object of data set 2
|
static int |
STATEMENT_MAIN |
Constructor and Description |
---|
ComparisonQueryHelper(ReconInfo reconInfo) |
Modifier and Type | Method and Description |
---|---|
protected void |
attachFilterResults(ReconCompFilterReturn filterReturn)
Attaches all recon value objects in the
filterReturn
container to the corresponding ComparisonStatementHelper in this object |
void |
attachOneResult(java.lang.String objectName,
ReconValue value)
Attach ONE object to the statement set, removing anything that existed
before Use with caution :)
|
protected ComparisonStatementHelper |
buildMainStatement(DataSet ds) |
protected boolean |
compFilterThisObject(ComparisonStatementHelper osh,
ReconCompFilterReturn filterReturn) |
java.util.List |
detachResults(java.lang.String objectName) |
java.util.List |
getAttributeMatchLeadingSideObjects() |
ComparisonStatementHelper |
getMainStatement1() |
ComparisonStatementHelper |
getMainStatement2() |
ComparisonStatementHelper |
getStatement(java.lang.String objectName) |
java.util.List |
getStatementsOfType(int type) |
boolean |
hasStatementsOfType(int type) |
protected boolean |
isMainUIDMatch(ComparisonStatementHelper mainSt,
java.lang.Object objUID,
java.lang.String objectName)
Issue 09-18001
Validate if Main Data Object UID match passed in objectUID
|
protected void |
prepare() |
void |
reattachFilterResults(ReconCompFilterReturn filterReturn1,
ReconCompFilterReturn filterReturn2) |
ComparisonStatementHelper |
registerAttribute(DataSet dS,
java.lang.String fullyQualifiedName,
java.lang.String unit,
int type) |
protected ComparisonStatementHelper |
registerAttribute(DataSet dS,
java.lang.String objectName,
java.lang.String fullyQualifiedName,
java.lang.String attributeUnit,
int type) |
ComparisonStatementHelper |
registerObjectForCount(DataSet dS,
java.lang.String fullyQualifiedName,
int type) |
void |
reset() |
void |
setLinkValues(java.util.Map linkValue1,
java.util.Map linkValue2) |
public static final int INVALID
public static final int FILTER_DATASET1
public static final int FILTER_DATASET2
public static final int CARDINALITY_STATEMENT
public static final int CARDINALITY_STATEMENT_DATASET1
public static final int CARDINALITY_STATEMENT_DATASET2
public static final int ATTRIBUTE_EQUALITY_STATEMENT
public static final int ATTRIBUTE_EQUALITY_STATEMENT_DATASET1
public static final int ATTRIBUTE_EQUALITY_STATEMENT_DATASET2
public static final int STATEMENT_MAIN
protected java.util.Map allStatements
protected ComparisonStatementHelper mainStatement1
protected ComparisonStatementHelper mainStatement2
protected java.util.ArrayList attributeMatchLeadingSideObjects
public ComparisonQueryHelper(ReconInfo reconInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected ComparisonStatementHelper buildMainStatement(DataSet ds) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public ComparisonStatementHelper registerAttribute(DataSet dS, java.lang.String fullyQualifiedName, java.lang.String unit, int type)
public ComparisonStatementHelper registerObjectForCount(DataSet dS, java.lang.String fullyQualifiedName, int type)
protected ComparisonStatementHelper registerAttribute(DataSet dS, java.lang.String objectName, java.lang.String fullyQualifiedName, java.lang.String attributeUnit, int type)
protected void prepare() throws MXException, java.rmi.RemoteException, java.sql.SQLException
MXException
java.rmi.RemoteException
java.sql.SQLException
public ComparisonStatementHelper getStatement(java.lang.String objectName)
public boolean hasStatementsOfType(int type)
public java.util.List getStatementsOfType(int type)
public java.util.List getAttributeMatchLeadingSideObjects()
public void reattachFilterResults(ReconCompFilterReturn filterReturn1, ReconCompFilterReturn filterReturn2)
protected void attachFilterResults(ReconCompFilterReturn filterReturn)
filterReturn
container to the corresponding ComparisonStatementHelper in this objectfilterReturn
- protected boolean compFilterThisObject(ComparisonStatementHelper osh, ReconCompFilterReturn filterReturn)
public java.util.List detachResults(java.lang.String objectName)
the
- object name to detach objects frompublic void attachOneResult(java.lang.String objectName, ReconValue value) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected boolean isMainUIDMatch(ComparisonStatementHelper mainSt, java.lang.Object objUID, java.lang.String objectName) throws java.rmi.RemoteException, MXException
mainSt
- - main object dataobjectUID
- - validate object UIDobjectName
- - validate objectNamejava.rmi.RemoteException
MXException
public ComparisonStatementHelper getMainStatement1()
public ComparisonStatementHelper getMainStatement2()
public void reset()
public void setLinkValues(java.util.Map linkValue1, java.util.Map linkValue2)