org.jaffa.components.finder
Class OrderByField

java.lang.Object
  extended byorg.jaffa.components.finder.OrderByField

public class OrderByField
extends Object

This class is used to encapsulate an element used in the OrderBy clause of a query.


Constructor Summary
OrderByField()
          Creates an instance of this class.
OrderByField(String fieldName)
          Creates an instance of this class.
OrderByField(String fieldName, Boolean sortAscending)
          Creates an instance of this class.
 
Method Summary
 String getFieldName()
          Getter for property fieldName.
 Boolean getSortAscending()
          Getter for property sortAscending.
 void setFieldName(String fieldName)
          Setter for property fieldName.
 void setSortAscending(Boolean sortAscending)
          Setter for property sortAscending.
 String toString()
          Returns diagnostic information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderByField

public OrderByField()
Creates an instance of this class.


OrderByField

public OrderByField(String fieldName)
Creates an instance of this class.

Parameters:
fieldName - the value of property fieldName.

OrderByField

public OrderByField(String fieldName,
                    Boolean sortAscending)
Creates an instance of this class.

Parameters:
fieldName - the value of property fieldName.
sortAscending - the value of property sortAscending.
Method Detail

getFieldName

public String getFieldName()
Getter for property fieldName.

Returns:
Value of property fieldName.

setFieldName

public void setFieldName(String fieldName)
Setter for property fieldName.

Parameters:
fieldName - New value of property fieldName.

getSortAscending

public Boolean getSortAscending()
Getter for property sortAscending.

Returns:
Value of property sortAscending.

setSortAscending

public void setSortAscending(Boolean sortAscending)
Setter for property sortAscending.

Parameters:
sortAscending - New value of property sortAscending.

toString

public String toString()
Returns diagnostic information.

Returns:
diagnostic information.


Copyright © 2002-2004 JAFFA Project.