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

java.lang.Object
  extended by com.mysema.query.types.expr.DslExpression<T>
      extended by com.mysema.query.types.expr.SimpleExpression<T>
          extended by com.mysema.query.types.expr.ComparableExpressionBase<T>
Type Parameters:
T - Java type
All Implemented Interfaces:
Expression<T>, Serializable
Direct Known Subclasses:
ComparableExpression, NumberExpression

public abstract class ComparableExpressionBase<T extends Comparable>
extends SimpleExpression<T>

ComparableExpressionBase represents comparable expressions

Author:
tiwe
See Also:
Comparable, Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.expr.DslExpression
mixin
 
Constructor Summary
ComparableExpressionBase(Expression<T> mixin)
           
 
Method Summary
 OrderSpecifier<T> asc()
          Get an OrderSpecifier for ascending order of this expression
<A extends Number & Comparable<? super A>>
NumberExpression<A>
castToNum(Class<A> type)
          Create a cast expression to the given numeric type
 Coalesce<T> coalesce(Expression<?>... exprs)
           
 Coalesce<T> coalesce(T... args)
           
 OrderSpecifier<T> desc()
          Get an OrderSpecifier for descending order of this expression
 StringExpression stringValue()
          Get a cast to String expression
 
Methods inherited from class com.mysema.query.types.expr.SimpleExpression
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, when, when
 
Methods inherited from class com.mysema.query.types.expr.DslExpression
equals, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Expression
accept
 

Constructor Detail

ComparableExpressionBase

public ComparableExpressionBase(Expression<T> mixin)
Method Detail

asc

public final OrderSpecifier<T> asc()
Get an OrderSpecifier for ascending order of this expression

Returns:

coalesce

public final Coalesce<T> coalesce(Expression<?>... exprs)

coalesce

public final Coalesce<T> coalesce(T... args)

castToNum

public <A extends Number & Comparable<? super A>> NumberExpression<A> castToNum(Class<A> type)
Create a cast expression to the given numeric type

Type Parameters:
A -
Parameters:
type -
Returns:

desc

public final OrderSpecifier<T> desc()
Get an OrderSpecifier for descending order of this expression

Returns:

stringValue

public StringExpression stringValue()
Get a cast to String expression

Returns:
See Also:
Object.toString()


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