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

java.lang.Object
  extended by com.mysema.query.types.OrderSpecifier<T>
Type Parameters:
T - related expression type
All Implemented Interfaces:
Serializable

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

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

Author:
tiwe
See Also:
Serialized Form

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

Constructor Detail

OrderSpecifier

public OrderSpecifier(Order order,
                      Expression<T> 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 Expression<T> getTarget()
Get the target expression of this OrderSpecifier

Returns:

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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