|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.persistence.dao.RequestOptions
public class RequestOptions
Defines options for requesting DragonDataBase.
This allows defining sort and pagination options when requesting the DragonDataBase
| Constructor Summary | |
|---|---|
RequestOptions()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getFetchCriteria()
|
int |
getFirstResult()
Returns the requested first result index. |
int |
getNbOfResults()
Returns the requested number of results. |
java.lang.String |
getSortCriteria()
Returns the sort criteria ID |
boolean |
hasFetchOption()
Determines whether sort options are set |
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 |
setFetchCriteria(java.lang.String fetchCriteria)
|
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(java.lang.String 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 boolean hasPagination()
public boolean hasSortOption()
public boolean hasFetchOption()
public int getFirstResult()
This the pagination offset
public void setFirstResult(int firstResult)
firstResult - public int getNbOfResults()
This the pagination length
public void setNbOfResults(int nbOfResults)
nbOfResults - public boolean isSortAscendingly()
public void setSortAscendingly(boolean sortAscendingly)
sortAscendingly - public java.lang.String getSortCriteria()
public void setSortCriteria(java.lang.String sortColumn)
sortColumn - public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
public java.lang.String getFetchCriteria()
public void setFetchCriteria(java.lang.String fetchCriteria)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||