T
- Java type being represented herepublic interface Expression<T>
Modifier and Type | Method and Description |
---|---|
Expression<T> |
as(String alias)
Method to set the alias for this expression when used in the result clause.
|
Expression |
cast(Class cls)
Return an expression where this expression is cast to the specified type.
|
NumericExpression<Long> |
count()
Method to return a numeric expression representing the aggregated count of this expression.
|
NumericExpression<Long> |
countDistinct()
Method to return a numeric expression representing the aggregated (distinct) count of this expression.
|
BooleanExpression |
eq(Expression expr)
Method returning whether this expression equals the other expression.
|
BooleanExpression |
eq(T t)
Method returning whether this expression equals the literal.
|
BooleanExpression |
instanceOf(Class cls)
Return an expression for whether this expression is an instanceof the supplied class.
|
BooleanExpression |
ne(Expression expr)
Method returning whether this expression doesn't equal the other expression.
|
BooleanExpression |
ne(T t)
Method returning whether this expression doesn't equal the literal.
|
Expression<T> as(String alias)
alias
- The aliasBooleanExpression eq(Expression expr)
expr
- Other expressionBooleanExpression eq(T t)
t
- LiteralBooleanExpression ne(Expression expr)
expr
- Other expressionBooleanExpression ne(T t)
t
- literalNumericExpression<Long> count()
NumericExpression<Long> countDistinct()
BooleanExpression instanceOf(Class cls)
cls
- Class to check againstExpression cast(Class cls)
cls
- Class to cast toCopyright © 2020. All rights reserved.