public class OrPredicate extends ListPredicate
OrPredicatechildren, columnsWILDCARD| Constructor and Description |
|---|
OrPredicate(List<StarPredicate> predicateList) |
| Modifier and Type | Method and Description |
|---|---|
StarPredicate |
and(StarPredicate predicate)
Returns this intersection of this Predicate with another.
|
boolean |
evaluate(List<Object> valueList)
Evaluates a constraint against a list of values.
|
protected String |
getOp() |
StarPredicate |
or(StarPredicate predicate)
Returns this union of this Predicate with another.
|
void |
toSql(SqlQuery sqlQuery,
StringBuilder buf) |
describe, equalConstraint, getChildren, getConstrainedColumnBitKey, getConstrainedColumnList, hashCode, minus, toStringpublic OrPredicate(List<StarPredicate> predicateList)
public boolean evaluate(List<Object> valueList)
StarPredicateIf one of the values is StarPredicate.WILDCARD, returns true if constraint is
true for all possible values of that column.
valueList - List of values, one for each constrained columnpublic StarPredicate or(StarPredicate predicate)
StarPredicatepredicate - Predicatepublic StarPredicate and(StarPredicate predicate)
StarPredicatepredicate - Predicatepublic void toSql(SqlQuery sqlQuery, StringBuilder buf)
toSql in interface StarPredicatetoSql in class ListPredicateprotected String getOp()
getOp in class ListPredicateCopyright © 2021 Hitachi Vantara. All rights reserved.