com.mysema.query.types.expr
Class EComparableBase<D extends Comparable>

java.lang.Object
  extended by com.mysema.query.types.expr.Expr<D>
      extended by com.mysema.query.types.expr.EComparableBase<D>
Type Parameters:
D - Java type
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EComparable, ENumber

public abstract class EComparableBase<D extends Comparable>
extends Expr<D>

EComparableBase represents comparable expressions

Author:
tiwe
See Also:
Comparable, Serialized Form

Constructor Summary
EComparableBase(Class<? extends D> type)
           
 
Method Summary
 OrderSpecifier<D> asc()
          Get an OrderSpecifier for ascending order of this expression
<A extends Number & Comparable<? super A>>
ENumber<A>
castToNum(Class<A> type)
          Create a cast expression to the given numeric type
 OrderSpecifier<D> desc()
          Get an OrderSpecifier for descending order of this expression
 EString stringValue()
          Get a cast to String expression
 
Methods inherited from class com.mysema.query.types.expr.Expr
accept, count, countAll, countDistinct, eq, eq, getType, hashCode, in, in, in, ne, ne, notIn, notIn, notIn, toString, when, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EComparableBase

public EComparableBase(Class<? extends D> type)
Method Detail

asc

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

Returns:

castToNum

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

Type Parameters:
A -
Parameters:
type -
Returns:

desc

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

Returns:

stringValue

public EString stringValue()
Get a cast to String expression

Returns:
See Also:
Object.toString()


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