com.mysema.query.types.expr
Class ComparableExpressionBase<T extends Comparable>
java.lang.Object
com.mysema.query.types.expr.DslExpression<T>
com.mysema.query.types.expr.SimpleExpression<T>
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
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 |
ComparableExpressionBase
public ComparableExpressionBase(Expression<T> mixin)
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.