|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.api.to.RequestOptionsTO
public class RequestOptionsTO
Defines options for requesting DragonDataBase.
This allows defining "sort", "pagination" and "case sensitive" options when requesting the DragonDataBase
| Constructor Summary | |
|---|---|
RequestOptionsTO()
|
|
| Method Summary | |
|---|---|
int |
getFirstResult()
Returns the requested first result index. |
int |
getNbOfResults()
Returns the requested number of results. |
SortCriteria |
getSortCriteria()
Returns the sort criteria ID |
boolean |
hasPagination()
Determines whether pagination options are set |
boolean |
hasSortOption()
Determines whether sort options are set |
boolean |
isCaseSensitive()
|
boolean |
isSortAscendingly()
Determines whether sort is ascending. |
void |
setCaseSensitive(boolean caseSensitive)
|
void |
setFirstResult(int firstResult)
Sets the requested first result index. |
void |
setNbOfResults(int nbOfResults)
Sets the requested number of results. |
void |
setSortAscendingly(boolean sortAscendingly)
Sets whether sort is ascending. |
void |
setSortCriteria(SortCriteria sortColumn)
Sets the sort criteria ID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestOptionsTO()
| Method Detail |
|---|
public int getFirstResult()
This the pagination offset
public int getNbOfResults()
This the pagination length
public SortCriteria getSortCriteria()
public boolean hasPagination()
public boolean hasSortOption()
public boolean isCaseSensitive()
public boolean isSortAscendingly()
public void setCaseSensitive(boolean caseSensitive)
public void setFirstResult(int firstResult)
firstResult - public void setNbOfResults(int nbOfResults)
nbOfResults - public void setSortAscendingly(boolean sortAscendingly)
sortAscendingly - public void setSortCriteria(SortCriteria sortColumn)
sortColumn -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||