org.rimudb
Class OrderByList

java.lang.Object
  extended by org.rimudb.OrderByList

public class OrderByList
extends java.lang.Object

This class represents a list of properties which can be used to sequence the results returned from a Table.

Author:
Simon Ritchie

Field Summary
static OrderByList NONE
           
static OrderByList PRIMARY_KEY
           
 
Constructor Summary
OrderByList()
          Constructor
 
Method Summary
 OrderByList add(java.lang.String propertyName)
          Add a property name that is ascending
 OrderByList add(java.lang.String propertyName, boolean descending)
          Add a property name and a descending flag
 java.util.List<OrderByEntry> getOrderByEntryList()
           
 java.lang.String getUniqueNameID()
          Return a unique ID
 boolean hasEntries()
          Return true if the OrderByList has entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final OrderByList NONE

PRIMARY_KEY

public static final OrderByList PRIMARY_KEY
Constructor Detail

OrderByList

public OrderByList()
Constructor

Method Detail

add

public OrderByList add(java.lang.String propertyName,
                       boolean descending)
Add a property name and a descending flag


add

public OrderByList add(java.lang.String propertyName)
Add a property name that is ascending


getUniqueNameID

public java.lang.String getUniqueNameID()
Return a unique ID


getOrderByEntryList

public java.util.List<OrderByEntry> getOrderByEntryList()

hasEntries

public boolean hasEntries()
Return true if the OrderByList has entries.

Returns:
boolean


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.