|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EquandaQuery
Allow the building of custom queries
| Method Summary | |
|---|---|
void |
addExtra(String name,
Object value)
Allows adding extra parameters which can be cleared from the query. |
void |
clearExtra()
Clear the extra parameters |
String |
getCountQueryString()
|
int |
getFirstResult()
Gives the starting results index. |
int |
getMaxResults()
Gives the maximum number of results. |
Map<String,Object> |
getParameters()
|
String |
getQueryString()
|
ObjectType |
getTypeFilter()
This will be used as a filter(@see isParentType()). |
EquandaQuery |
setFirstResult(int firstResult)
Sets the starting results index. |
EquandaQuery |
setMaxResults(int maxResults)
Sets the maximum number of results. |
EquandaQuery |
setParameter(String name,
Object value)
Add one parameter (would have been more logical to call this "addParameter", but this is more in line with the AJPA/Hibernate Query interface). |
EquandaQuery |
setParameters(Map<String,Object> parameters)
Add a list of parameters |
EquandaQuery |
setTypeFilter(ObjectType typeFilter)
|
| Method Detail |
|---|
String getQueryString()
String getCountQueryString()
int getMaxResults()
<=0 then it will be ignored.
EquandaQuery setMaxResults(int maxResults)
lt;=0 then it will be ignored.
maxResults - max number of results
int getFirstResult()
<0 then it will be ignored.
EquandaQuery setFirstResult(int firstResult)
<0 then it will be ignored.
firstResult - number of first record which needs to be fetched
Map<String,Object> getParameters()
EquandaQuery setParameters(Map<String,Object> parameters)
parameters - parameters nam/value pairs
EquandaQuery setParameter(String name,
Object value)
name - parameter namevalue - parameter value
ObjectType getTypeFilter()
EquandaQuery setTypeFilter(ObjectType typeFilter)
void addExtra(String name,
Object value)
name - extra parameter namevalue - extra parameter valuevoid clearExtra()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||