com.triactive.jdo.store.sql.expr
Class OrderingSpec

java.lang.Object
  extended bycom.triactive.jdo.store.sql.expr.OrderingSpec

public class OrderingSpec
extends java.lang.Object

A component of an SQL ORDER BY clause.

This is just a data structure pairing an SqlExpression and a boolean. A list of these is used by QueryStatement to construct an SQL ORDER BY clause.

Author:
Mike Martin
See Also:
QueryStatement.setOrdering(java.util.List)

Field Summary
 SqlExpression expression
          The expression value by which to order.
 boolean isDescending
          Descending order if true, ascending if false.
 
Constructor Summary
OrderingSpec(SqlExpression expression, boolean isDescending)
          Constructs an ordering spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expression

public final SqlExpression expression
The expression value by which to order.


isDescending

public final boolean isDescending
Descending order if true, ascending if false.

Constructor Detail

OrderingSpec

public OrderingSpec(SqlExpression expression,
                    boolean isDescending)
Constructs an ordering spec.

Parameters:
expression - the expression value by which to order
isDescending - descending order if true, ascending if false


Copyright © 2001-2007 The TJDO Project All Rights Reserved.