Class Expression<T>
- java.lang.Object
-
- org.hotrod.runtime.livesql.expressions.Expression<T>
-
- All Implemented Interfaces:
ResultSetColumn
- Direct Known Subclasses:
AggregationFunction,ByteArrayExpression,CaseClause,Constant,DateTimeExpression,DateTimeFieldExpression,NumberExpression,ObjectExpression,Predicate,StringExpression,Tuple,WindowExpression
public abstract class Expression<T> extends java.lang.Object implements ResultSetColumn
-
-
Field Summary
Fields Modifier and Type Field Description static intPRECEDENCE_ANDstatic intPRECEDENCE_ANY_ALL_EQ_NE_LT_LE_GT_GEstatic intPRECEDENCE_BETWEENstatic intPRECEDENCE_CASEstatic intPRECEDENCE_COLUMNstatic intPRECEDENCE_EQ_NE_LT_LE_GT_GEstatic intPRECEDENCE_EXISTSstatic intPRECEDENCE_FUNCTIONstatic intPRECEDENCE_INstatic intPRECEDENCE_IS_NULLstatic intPRECEDENCE_LIKEstatic intPRECEDENCE_LITERALstatic intPRECEDENCE_MULT_DIV_MODstatic intPRECEDENCE_NOTstatic intPRECEDENCE_ORstatic intPRECEDENCE_PARENTHESISstatic intPRECEDENCE_PLUS_MINUSstatic intPRECEDENCE_TUPLEstatic intPRECEDENCE_UNARY_MINUS
-
Constructor Summary
Constructors Modifier Constructor Description protectedExpression(int precedence)
-
Method Summary
-
-
-
Field Detail
-
PRECEDENCE_LITERAL
public static final int PRECEDENCE_LITERAL
- See Also:
- Constant Field Values
-
PRECEDENCE_COLUMN
public static final int PRECEDENCE_COLUMN
- See Also:
- Constant Field Values
-
PRECEDENCE_PARENTHESIS
public static final int PRECEDENCE_PARENTHESIS
- See Also:
- Constant Field Values
-
PRECEDENCE_CASE
public static final int PRECEDENCE_CASE
- See Also:
- Constant Field Values
-
PRECEDENCE_FUNCTION
public static final int PRECEDENCE_FUNCTION
- See Also:
- Constant Field Values
-
PRECEDENCE_TUPLE
public static final int PRECEDENCE_TUPLE
- See Also:
- Constant Field Values
-
PRECEDENCE_UNARY_MINUS
public static final int PRECEDENCE_UNARY_MINUS
- See Also:
- Constant Field Values
-
PRECEDENCE_MULT_DIV_MOD
public static final int PRECEDENCE_MULT_DIV_MOD
- See Also:
- Constant Field Values
-
PRECEDENCE_PLUS_MINUS
public static final int PRECEDENCE_PLUS_MINUS
- See Also:
- Constant Field Values
-
PRECEDENCE_BETWEEN
public static final int PRECEDENCE_BETWEEN
- See Also:
- Constant Field Values
-
PRECEDENCE_EQ_NE_LT_LE_GT_GE
public static final int PRECEDENCE_EQ_NE_LT_LE_GT_GE
- See Also:
- Constant Field Values
-
PRECEDENCE_LIKE
public static final int PRECEDENCE_LIKE
- See Also:
- Constant Field Values
-
PRECEDENCE_IS_NULL
public static final int PRECEDENCE_IS_NULL
- See Also:
- Constant Field Values
-
PRECEDENCE_IN
public static final int PRECEDENCE_IN
- See Also:
- Constant Field Values
-
PRECEDENCE_EXISTS
public static final int PRECEDENCE_EXISTS
- See Also:
- Constant Field Values
-
PRECEDENCE_ANY_ALL_EQ_NE_LT_LE_GT_GE
public static final int PRECEDENCE_ANY_ALL_EQ_NE_LT_LE_GT_GE
- See Also:
- Constant Field Values
-
PRECEDENCE_NOT
public static final int PRECEDENCE_NOT
- See Also:
- Constant Field Values
-
PRECEDENCE_AND
public static final int PRECEDENCE_AND
- See Also:
- Constant Field Values
-
PRECEDENCE_OR
public static final int PRECEDENCE_OR
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPrecedence
protected void setPrecedence(int precedence)
-
getPrecedence
public int getPrecedence()
-
validateTableReferences
public abstract void validateTableReferences(AbstractSelect.TableReferences tableReferences, AbstractSelect.AliasGenerator ag)
-
designateAliases
public abstract void designateAliases(AbstractSelect.AliasGenerator ag)
-
asc
public final OrderByDirectionStage asc()
-
desc
public final OrderByDirectionStage desc()
-
eq
public Predicate eq(Expression<T> e)
-
ne
public Predicate ne(Expression<T> e)
-
gt
public Predicate gt(Expression<T> e)
-
ge
public Predicate ge(Expression<T> e)
-
lt
public Predicate lt(Expression<T> e)
-
le
public Predicate le(Expression<T> e)
-
between
public Predicate between(Expression<T> from, Expression<T> to)
-
between
public Predicate between(Expression<T> from, T to)
-
between
public Predicate between(T from, Expression<T> to)
-
notBetween
public Predicate notBetween(Expression<T> from, Expression<T> to)
-
notBetween
public Predicate notBetween(Expression<T> from, T to)
-
notBetween
public Predicate notBetween(T from, Expression<T> to)
-
isNotNull
public Predicate isNotNull()
-
isNull
public Predicate isNull()
-
in
public Predicate in(Expression<T>... values)
-
notIn
public Predicate notIn(Expression<T>... values)
-
in
public Predicate in(ExecutableSelect subquery)
-
notIn
public Predicate notIn(ExecutableSelect subquery)
-
eqAny
public Predicate eqAny(ExecutableSelect subquery)
-
neAny
public Predicate neAny(ExecutableSelect subquery)
-
ltAny
public Predicate ltAny(ExecutableSelect subquery)
-
leAny
public Predicate leAny(ExecutableSelect subquery)
-
gtAny
public Predicate gtAny(ExecutableSelect subquery)
-
geAny
public Predicate geAny(ExecutableSelect subquery)
-
eqAll
public Predicate eqAll(ExecutableSelect subquery)
-
neAll
public Predicate neAll(ExecutableSelect subquery)
-
ltAll
public Predicate ltAll(ExecutableSelect subquery)
-
leAll
public Predicate leAll(ExecutableSelect subquery)
-
gtAll
public Predicate gtAll(ExecutableSelect subquery)
-
geAll
public Predicate geAll(ExecutableSelect subquery)
-
as
public AliasedExpression as(java.lang.String alias)
-
renderInner
protected void renderInner(Expression<?> inner, QueryWriter w)
-
renderTo
public abstract void renderTo(QueryWriter w)
- Specified by:
renderToin interfaceResultSetColumn
-
-