wicket.contrib.phonebook
Class QueryParam
java.lang.Object
wicket.contrib.phonebook.QueryParam
- All Implemented Interfaces:
- Serializable
public class QueryParam
- extends Object
- implements Serializable
Encapsulates the Query Paramaters to be passed to ContactDao.find(wicket.contrib.phonebook.QueryParam, wicket.contrib.phonebook.Contact)
method.
- Author:
- igor
- See Also:
- Serialized Form
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
setSort
public void setSort(String sort)
setSortAsc
public void setSortAsc(boolean sortAsc)
getCount
public int getCount()
getFirst
public int getFirst()
getSort
public String getSort()
isSortAsc
public boolean isSortAsc()
hasSort
public boolean hasSort()
setFirst
public void setFirst(int first)
setCount
public void setCount(int count)
Copyright © 2005-2012 Wicket developers. All Rights Reserved.