public class OrPredicate extends ListPredicate
OrPredicate
children, columns
WILDCARD
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, toString
public OrPredicate(List<StarPredicate> predicateList)
public boolean evaluate(List<Object> valueList)
StarPredicate
If 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)
StarPredicate
predicate
- Predicatepublic StarPredicate and(StarPredicate predicate)
StarPredicate
predicate
- Predicatepublic void toSql(SqlQuery sqlQuery, StringBuilder buf)
toSql
in interface StarPredicate
toSql
in class ListPredicate
protected String getOp()
getOp
in class ListPredicate
Copyright © 2018 Hitachi Vantara. All rights reserved.