|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.flowwatch.flowmanager.RequestOptions
public class RequestOptions
Defines options for requesting Flowwatch database.
This allows defining "sort", "pagination" and "case sensitive" and "filter" options when requesting the Flowwatch database
| Constructor Summary | |
|---|---|
RequestOptions()
|
|
| Method Summary | |
|---|---|
void |
addFilter(Filter filter)
|
java.util.List<Filter> |
getFilters()
|
int |
getFirstResult()
Returns the requested first result index. |
int |
getNbOfResults()
Returns the requested number of results. |
int |
getSortCriteria()
Returns the sort criteria ID |
boolean |
hasFilterOption()
Determines whether filter options are set |
boolean |
hasPagination()
Determines whether pagination options are set |
boolean |
hasSortOption()
Determines whether sort options are set |
boolean |
isSortAscendingly()
Determines whether sort is ascending. |
void |
setFilters(java.util.List<Filter> filters)
|
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(int 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 RequestOptions()
| Method Detail |
|---|
public int getFirstResult()
This the pagination offset
public int getNbOfResults()
This the pagination length
public int getSortCriteria()
public boolean hasPagination()
public boolean hasSortOption()
public boolean hasFilterOption()
public boolean isSortAscendingly()
public void setFirstResult(int firstResult)
firstResult - public void setNbOfResults(int nbOfResults)
nbOfResults - public void setSortAscendingly(boolean sortAscendingly)
sortAscendingly - public void setSortCriteria(int sortColumn)
sortColumn - public java.util.List<Filter> getFilters()
public void setFilters(java.util.List<Filter> filters)
public void addFilter(Filter filter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||