com.mysema.query.types.expr
Class Coalesce<T extends Comparable>

java.lang.Object
  extended by com.mysema.query.types.Expr<D>
      extended by com.mysema.query.types.expr.ESimple<D>
          extended by com.mysema.query.types.expr.EComparableBase<D>
              extended by com.mysema.query.types.expr.EComparable<T>
                  extended by com.mysema.query.types.expr.Coalesce<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable

public class Coalesce<T extends Comparable>
extends EComparable<T>

Coalesce defines a coalesce function invocation. The coalesce function returns null if all arguments are null and the first non-null argument otherwise

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
Coalesce(Class<? extends T> type, Expr... exprs)
           
Coalesce(Expr... exprs)
           
 
Method Summary
 void accept(Visitor v)
           
 Coalesce<T> add(Expr<T> expr)
           
 Coalesce<T> add(T constant)
           
 EDate<T> asDate()
           
 EDateTime<T> asDateTime()
           
 ENumber<?> asNumber()
           
 EString asString()
           
 ETime<T> asTime()
           
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class com.mysema.query.types.expr.EComparable
as, between, between, goe, goe, gt, gt, loe, loe, lt, lt, notBetween, notBetween
 
Methods inherited from class com.mysema.query.types.expr.EComparableBase
asc, castToNum, desc, stringValue
 
Methods inherited from class com.mysema.query.types.expr.ESimple
count, countDistinct, eq, eq, in, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
asExpr, getType, notIn, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Coalesce

public Coalesce(Class<? extends T> type,
                Expr... exprs)
Parameters:
type -
exprs -

Coalesce

public Coalesce(Expr... exprs)
Parameters:
exprs -
Method Detail

accept

public void accept(Visitor v)
Specified by:
accept in class Expr<T extends Comparable>

add

public Coalesce<T> add(Expr<T> expr)

add

public Coalesce<T> add(T constant)

asDate

public EDate<T> asDate()

asDateTime

public EDateTime<T> asDateTime()

asNumber

public ENumber<?> asNumber()

asString

public EString asString()

asTime

public ETime<T> asTime()

equals

public boolean equals(Object o)
Specified by:
equals in class Expr<T extends Comparable>

hashCode

public int hashCode()
Overrides:
hashCode in class Expr<T extends Comparable>


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.