mondrian.rolap.agg
Class AbstractColumnPredicate.Factory

java.lang.Object
  extended by mondrian.rolap.agg.AbstractColumnPredicate.Factory
Enclosing class:
AbstractColumnPredicate

public static class AbstractColumnPredicate.Factory
extends Object

Factory for StarPredicates and StarColumnPredicates.

 

Constructor Summary
AbstractColumnPredicate.Factory()
           
 
Method Summary
static LiteralStarPredicate bool(boolean b)
          Returns a predicate which always evaluates to TRUE or FALSE.
static StarColumnPredicate equal(RolapStar.Column column, Object value)
          Returns a predicate which tests whether the column's value is equal to a given constant.
static StarColumnPredicate equal(ValueColumnPredicate predicate)
          Returns a predicate which tests whether the column's value is equal to column predicate's value.
static StarColumnPredicate or(RolapStar.Column column, List<StarColumnPredicate> list)
          Returns predicate which is the OR of a list of predicates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractColumnPredicate.Factory

public AbstractColumnPredicate.Factory()
Method Detail

equal

public static StarColumnPredicate equal(RolapStar.Column column,
                                        Object value)
Returns a predicate which tests whether the column's value is equal to a given constant.

Parameters:
column - Constrained column
value - Value
Returns:
Predicate which tests whether the column's value is equal to a column constraint's value

or

public static StarColumnPredicate or(RolapStar.Column column,
                                     List<StarColumnPredicate> list)
Returns predicate which is the OR of a list of predicates.

Parameters:
column - Column being constrained
list - List of predicates
Returns:
Predicate which is an OR of the list of predicates

bool

public static LiteralStarPredicate bool(boolean b)
Returns a predicate which always evaluates to TRUE or FALSE.

Parameters:
b - Truth value
Returns:
Predicate which always evaluates to truth value

equal

public static StarColumnPredicate equal(ValueColumnPredicate predicate)
Returns a predicate which tests whether the column's value is equal to column predicate's value.

Parameters:
predicate - Column predicate
Returns:
Predicate which tests whether the column's value is equal to a column predicate's value

SourceForge.net_Logo