T
- expression typepublic class Coalesce<T extends Comparable> extends MutableExpressionBase<T>
Coalesce
defines a coalesce function invocation. The coalesce function
returns null if all arguments are null and the first non-null argument
otherwise
Coalesce doesn't provide the full interface for comparable expressions. To get an immutable copy with the full expressiveness of Comparable expressions, call getValue().
Constructor and Description |
---|
Coalesce(Class<? extends T> type,
Expression<?>... exprs) |
Coalesce(Expression... exprs) |
Modifier and Type | Method and Description |
---|---|
<R,C> R |
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context
|
Coalesce<T> |
add(Expression<T> expr) |
Coalesce<T> |
add(T constant) |
DslExpression<T> |
as(Path<T> alias)
Create an alias for the expression
|
DslExpression<T> |
as(String alias)
Create an alias for the expression
|
BooleanExpression |
asBoolean() |
OrderSpecifier<T> |
asc() |
DateExpression<T> |
asDate() |
DateTimeExpression<T> |
asDateTime() |
EnumExpression<?> |
asEnum() |
NumberExpression<?> |
asNumber() |
StringExpression |
asString() |
TimeExpression<T> |
asTime() |
OrderSpecifier<T> |
desc() |
boolean |
equals(Object o) |
ComparableExpression<T> |
getValue() |
getType, hashCode, toString
public Coalesce(Class<? extends T> type, Expression<?>... exprs)
public Coalesce(Expression... exprs)
public <R,C> R accept(Visitor<R,C> v, C context)
Expression
R
- return typeC
- context typev
- visitorcontext
- context of visitpublic ComparableExpression<T> getValue()
public DslExpression<T> as(Path<T> alias)
public DslExpression<T> as(String alias)
public final Coalesce<T> add(Expression<T> expr)
public OrderSpecifier<T> asc()
public OrderSpecifier<T> desc()
public BooleanExpression asBoolean()
public DateExpression<T> asDate()
public DateTimeExpression<T> asDateTime()
public EnumExpression<?> asEnum()
public NumberExpression<?> asNumber()
public StringExpression asString()
public TimeExpression<T> asTime()
Copyright © 2007–2016 Querydsl. All rights reserved.