|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sitools.common.model.ResourceCollectionFilter
public final class ResourceCollectionFilter
Base class for filter parameters.
| Constructor Summary | |
|---|---|
ResourceCollectionFilter(int startIndex,
int limitNum,
java.lang.String queryStr)
Constructor with pagination and query string parameters. |
|
ResourceCollectionFilter(org.restlet.Request req)
Constructor with Request. |
|
| Method Summary | |
|---|---|
int |
getFilterMode()
Gets the filterMode value |
int |
getLimit()
Gets the limit value. |
java.lang.String |
getMode()
Gets the mode value |
java.lang.String |
getOrder()
Gets the order value. |
java.lang.String |
getParent()
Gets the parent value. |
java.lang.String |
getQuery()
Gets the query value. |
org.restlet.Request |
getRequest()
Gets the request value |
java.lang.String |
getSort()
Gets the sort value. |
int |
getStart()
Gets the start value. |
java.lang.Integer |
getTotalCount()
Gets the totalCount value |
void |
setFilterMode(int filterMode)
Sets the value of filterMode |
void |
setLimit(int lim)
Sets the value of limit. |
void |
setMode(java.lang.String mode)
Sets the value of mode |
void |
setOrder(java.lang.String ord)
Sets the value of order. |
void |
setParent(java.lang.String par)
Sets the value of parent. |
void |
setQuery(java.lang.String que)
Sets the value of query. |
void |
setRequest(org.restlet.Request request)
Sets the value of request |
void |
setSort(java.lang.String srt)
Sets the value of sort. |
void |
setStart(int startVal)
Sets the value of start. |
void |
setTotalCount(java.lang.Integer totalCount)
Sets the value of totalCount |
java.lang.String |
toSQL(java.lang.String req,
java.lang.String fieldName)
TODO design a jdbc.ResourceFilterWrapper wrapper to sql syntax. |
java.lang.String |
toSqlCount(java.lang.String req,
java.lang.String fieldName)
To SQL count |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceCollectionFilter(org.restlet.Request req)
req - request for the filter
public ResourceCollectionFilter(int startIndex,
int limitNum,
java.lang.String queryStr)
startIndex - index of first elementlimitNum - number of elementsqueryStr - a string term| Method Detail |
|---|
public int getFilterMode()
public void setFilterMode(int filterMode)
filterMode - the filterMode to set
public java.lang.String toSQL(java.lang.String req,
java.lang.String fieldName)
req - SQL requestfieldName - the name of the field concerned with the "like" request
public java.lang.String toSqlCount(java.lang.String req,
java.lang.String fieldName)
req - requestfieldName - field name
public java.lang.String getQuery()
public void setQuery(java.lang.String que)
que - the query to setpublic int getLimit()
public void setLimit(int lim)
lim - the limit to setpublic int getStart()
public void setStart(int startVal)
startVal - the start to setpublic java.lang.String getParent()
public void setParent(java.lang.String par)
par - the parent to setpublic java.lang.String getSort()
public void setSort(java.lang.String srt)
srt - the sort to setpublic java.lang.String getOrder()
public void setOrder(java.lang.String ord)
ord - the order to setpublic java.lang.Integer getTotalCount()
public void setTotalCount(java.lang.Integer totalCount)
totalCount - the totalCount to setpublic void setRequest(org.restlet.Request request)
request - the request to setpublic org.restlet.Request getRequest()
public void setMode(java.lang.String mode)
mode - the mode to setpublic java.lang.String getMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||