public class WhereClauseFilterCondition extends WhereClauseCondition
WhereClauseCondition filterCondition = new WhereClauseFilterCondition( new TableField("USERS", "PROFILETYPE"), astrProfileTypes, 2);In this example, the filter is for the USERS.PROFILETYPE. The field has a maximum length of 2 characters, so if a larger value is submitted the entire WHERE clause will be discarded. The astrProfileTypes object represents the array of values to filter on.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
CLASSNAME, SQL_AND, SQL_CLOSE_BRACKET, SQL_EQUALS, SQL_ESCAPE, SQL_LIKE, SQL_NOT_EQUALS, SQL_OPEN_BRACKET, SQL_OR, SQL_QUOTE, SQL_SOUNDEX, SQL_TRUE_CONDITION, SQL_WILDCARD
Constructor and Description |
---|
WhereClauseFilterCondition(TableField aTableField,
java.lang.String[] astrFilterValues,
int anMaxLength)
Build a filter based on table/field name and allowable values.
|
appendANDCondition, appendORCondition, getFromTables, getWhereClauseParameterValues, getWhereClauseSQL, isValid, toString
public static final java.lang.String COPYRIGHT
public WhereClauseFilterCondition(TableField aTableField, java.lang.String[] astrFilterValues, int anMaxLength)
aTableField
- The table and field to filter by.astrFilterValues
- The filter values.anMaxLength
- The maximum valid length for filter values.