Model Documentation
Class: WhereClauseCondition
The WhereClauseCondition class is used to define simple selection criteria conditions in the condition attribute of the WhereClause class (or any other data selection class).
In each instance of the WhereClauseCondition class:
- The dataset attribute contains the name of the dataset in which the condition is being applied.
- The variable attribute contains the name of the variable (within the specified dataset) to which the condition applies.
- The comparator attribute contains a value from the ConditionComparatorEnum enumeration (e.g., "EQ" for "is equal to", "LT" for "is less than") to indicate how values of the specified dataset variable are compared with the specified selection value(s).
- The value attribute specifies the selection value, or values, for comparison with values in the specified dataset variable. If the value of the comparator attribute is:
- "IN" or "NOTIN", there should be at least 2 values specified in the value attribute; otherwise there should be no more than 1 value specified in the value attribute.
- "EQ" or "NE", the value attribute may contain no value to indicate a condition based on a missing value (i.e., "is missing" or "is not missing", respectively).
Example
ADSL.SAFFL EQ 'Y'
Note that some attributes (such as the expected level and order attributes) have been excluded from this example.
... condition: dataset: ADSL variable: SAFFL comparator: EQ value: - Y
This condition could be represented in tabular form as:
dataset | variable | comparator | value |
---|---|---|---|
ADSL | SAFFL | EQ | Y |
Example
ADAE.AEREL IN ('POSSIBLE','PROBABLE')
Note that some attributes (such as the expected level and order attributes) have been excluded from this example.
... condition: dataset: ADAE variable: AEREL comparator: IN value: - POSSIBLE - PROBABLE
This condition could be represented in tabular form as shown in the following table where the multiple selection values are represented as a pipe (|)-delimited list:
dataset | variable | comparator | value |
---|---|---|---|
ADAE | AEREL | IN | POSSIBLE|PROBABLE |
Example
ADVS.BASE NE ''
ADVS.BASE IS NOT MISSING
ADVS.BASE IS NOT NULL
Note that some attributes (such as the expected level and order attributes) have been excluded from this example.
... condition: dataset: ADVS variable: BASE comparator: NE value:
This condition could be represented in tabular form as:
dataset | variable | comparator | value |
---|---|---|---|
ADVS | BASE | NE |