|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.types.MutableExpressionBase<T> com.mysema.query.types.expr.Coalesce<T>
T
- expression typepublic class Coalesce<T extends Comparable>
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 Summary | |
---|---|
Coalesce(Class<? extends T> type,
Expression<?>... exprs)
|
|
Coalesce(Expression... exprs)
|
Method Summary | ||
---|---|---|
|
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()
|
|
DateExpression<T> |
asDate()
|
|
DateTimeExpression<T> |
asDateTime()
|
|
EnumExpression<?> |
asEnum()
|
|
NumberExpression<?> |
asNumber()
|
|
StringExpression |
asString()
|
|
TimeExpression<T> |
asTime()
|
|
boolean |
equals(Object o)
|
|
ComparableExpression<T> |
getValue()
|
Methods inherited from class com.mysema.query.types.MutableExpressionBase |
---|
getType, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Coalesce(Class<? extends T> type, Expression<?>... exprs)
public Coalesce(Expression... exprs)
Method Detail |
---|
public <R,C> R accept(Visitor<R,C> v, C context)
Expression
R
- return typeC
- context typev
- visitorcontext
- context of visit
public 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 final Coalesce<T> add(T constant)
public BooleanExpression asBoolean()
public DateExpression<T> asDate()
public DateTimeExpression<T> asDateTime()
public EnumExpression<?> asEnum()
public NumberExpression<?> asNumber()
public StringExpression asString()
public TimeExpression<T> asTime()
public boolean equals(Object o)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |