com.mysema.query.types
Class OrderSpecifier<A extends Comparable>

java.lang.Object
  extended by com.mysema.query.types.OrderSpecifier<A>
Type Parameters:
A - - Java type of the target expression
All Implemented Interfaces:
Serializable

@Immutable
public class OrderSpecifier<A extends Comparable>
extends Object
implements Serializable

OrderSpecifier represents an order-by-element in a Query instance

Version:
$Id$
Author:
tiwe
See Also:
Serialized Form

Constructor Summary
OrderSpecifier(Order order, Expr<A> target)
           
 
Method Summary
 Order getOrder()
          Get the order of this specifier
 Expr<A> getTarget()
          Get the target expression of this OrderSpecifier
 boolean isAscending()
          Get whether the order is ascending or not
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderSpecifier

public OrderSpecifier(Order order,
                      Expr<A> target)
Method Detail

getOrder

public Order getOrder()
Get the order of this specifier

Returns:

isAscending

public boolean isAscending()
Get whether the order is ascending or not

Returns:

getTarget

public Expr<A> getTarget()
Get the target expression of this OrderSpecifier

Returns:

toString

public String toString()
Overrides:
toString in class Object


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