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 SimplePredicates.

Since:
9.2.0

Constructor Summary
CompoundPredicate()
          For internal use only
 
Method Summary
TypeMethod
 void addPredicate(Predicate pred)
          For internal use only
 BooleanOperator getBooleanOperator()
          Returns the BooleanOperator.
 Predicate[] getPredicates()
          Returns an array of the component Predicates
 void setBooleanOperator(BooleanOperator booleanOperator)
          For internal use only
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundPredicate

public CompoundPredicate()
For internal use only
Method Detail

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 Predicates
Returns:
Predicate[] - the array of predicates, null if none