org.apache.wicket.spring.common
Class QueryParam

java.lang.Object
  extended by org.apache.wicket.spring.common.QueryParam

public class QueryParam
extends Object

Encapsulates the Query Paramaters to be passed to daos

Author:
Igor Vaynberg (ivaynberg)

Constructor Summary
QueryParam(int first, int count)
          Set to return count elements, starting at the first element.
QueryParam(int first, int count, String sort, boolean sortAsc)
          Set to return count sorted elements, starting at the first element.
 
Method Summary
 int getCount()
           
 int getFirst()
           
 String getSort()
           
 boolean hasSort()
           
 boolean isSortAsc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParam

public QueryParam(int first,
                  int count)
Set to return count elements, starting at the first element.

Parameters:
first - First element to return.
count - Number of elements to return.

QueryParam

public QueryParam(int first,
                  int count,
                  String sort,
                  boolean sortAsc)
Set to return count sorted elements, starting at the first element.

Parameters:
first - First element to return.
count - Number of elements to return.
sort - Column to sort on.
sortAsc - Sort ascending or descending.
Method Detail

getCount

public int getCount()

getFirst

public int getFirst()

getSort

public String getSort()

isSortAsc

public boolean isSortAsc()

hasSort

public boolean hasSort()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.