oracle.dmt.odm.rule
Class CompoundPredicate
java.lang.Object
|
+--oracle.dmt.odm.rule.Predicate
|
+--oracle.dmt.odm.rule.CompoundPredicate
- public class CompoundPredicate
- extends Predicate
An instance of CompundPredicate
is a set of predicates connected by logical operators.
For example, "age < 30 AND salary > 50K" is a compound predicate which is a boolean 'and' of two SimplePredicate
s.
- Since:
- 9.2.0
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompoundPredicate
public CompoundPredicate()
- For internal use only
setBooleanOperator
public void setBooleanOperator(BooleanOperator booleanOperator)
- For internal use only
addPredicate
public void addPredicate(Predicate pred)
- For internal use only
getBooleanOperator
public BooleanOperator getBooleanOperator()
- Returns the
BooleanOperator
.
- Returns:
BooleanOperator
- the boolean operator
getPredicates
public Predicate[] getPredicates()
- Returns an array of the component
Predicate
s
- Returns:
Predicate
[] - the array of predicates, null if none