Class Predicate
- java.lang.Object
-
- org.hotrod.runtime.livesql.expressions.Expression<java.lang.Boolean>
-
- org.hotrod.runtime.livesql.expressions.predicates.Predicate
-
- All Implemented Interfaces:
ResultSetColumn
- Direct Known Subclasses:
AsymmetricOperator,Between,BinaryPredicate,BooleanColumn,BooleanConstant,BooleanValue,Exists,InList,IsNotNull,IsNull,Not,NotBetween,NotExists,NotInList,PredicateCoalesce
public abstract class Predicate extends Expression<java.lang.Boolean>
-
-
Field Summary
-
Fields inherited from class org.hotrod.runtime.livesql.expressions.Expression
PRECEDENCE_AND, PRECEDENCE_ANY_ALL_EQ_NE_LT_LE_GT_GE, PRECEDENCE_BETWEEN, PRECEDENCE_CASE, PRECEDENCE_COLUMN, PRECEDENCE_EQ_NE_LT_LE_GT_GE, PRECEDENCE_EXISTS, PRECEDENCE_FUNCTION, PRECEDENCE_IN, PRECEDENCE_IS_NULL, PRECEDENCE_LIKE, PRECEDENCE_LITERAL, PRECEDENCE_MULT_DIV_MOD, PRECEDENCE_NOT, PRECEDENCE_OR, PRECEDENCE_PARENTHESIS, PRECEDENCE_PLUS_MINUS, PRECEDENCE_TUPLE, PRECEDENCE_UNARY_MINUS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPredicate(int precedence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicateand(Expression<java.lang.Boolean> p)PredicateandNot(Expression<java.lang.Boolean> p)Predicatecoalesce(java.lang.Boolean a)Predicatecoalesce(Predicate a)Predicateor(Expression<java.lang.Boolean> p)PredicateorNot(Expression<java.lang.Boolean> p)-
Methods inherited from class org.hotrod.runtime.livesql.expressions.Expression
as, asc, between, between, between, between, desc, designateAliases, eq, eq, eqAll, eqAny, ge, ge, geAll, geAny, getPrecedence, gt, gt, gtAll, gtAny, in, in, in, isNotNull, isNull, le, le, leAll, leAny, lt, lt, ltAll, ltAny, ne, ne, neAll, neAny, notBetween, notBetween, notBetween, notBetween, notIn, notIn, notIn, renderInner, renderTo, setPrecedence, validateTableReferences
-
-
-
-
Method Detail
-
coalesce
public Predicate coalesce(java.lang.Boolean a)
-
and
public Predicate and(Expression<java.lang.Boolean> p)
-
andNot
public Predicate andNot(Expression<java.lang.Boolean> p)
-
or
public Predicate or(Expression<java.lang.Boolean> p)
-
orNot
public Predicate orNot(Expression<java.lang.Boolean> p)
-
-