|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.query.QueryObject
org.castor.cpa.persistence.sql.query.condition.Condition
org.castor.cpa.persistence.sql.query.condition.Predicate
public abstract class Predicate
Abstract base class for all predicates.
| Constructor Summary | |
|---|---|
protected |
Predicate(Expression expression,
boolean evaluateTo)
Construct a predicate with given expression. |
| Method Summary | |
|---|---|
boolean |
evaluateTo()
Returns if the predicate should evaluate to true or false. |
Expression |
expression()
Expression to apply the predicate to. |
Condition |
not()
Builder method to invert a condition. |
| Methods inherited from class org.castor.cpa.persistence.sql.query.condition.Condition |
|---|
and, or |
| Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject |
|---|
toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Predicate(Expression expression,
boolean evaluateTo)
expression - Expression to apply the predicate to.evaluateTo - What is the expected result of the evaluation?| Method Detail |
|---|
public final Expression expression()
public final boolean evaluateTo()
true or false.
true if the predicate should evaluate to true,
false otherwise.public final Condition not()
Condition
not in class Condition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||