public abstract class AbstractQuery<T> extends Object implements QueryBuilder<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cacheable
缓存查询结果
|
protected String |
countStr
count 计数语句
|
protected PageLimit |
limit
分页
|
protected Map<String,Object> |
params
参数
|
protected String |
queryStr
query 查询语句
|
| Constructor and Description |
|---|
AbstractQuery() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCountStr()
Getter for the field
countStr. |
PageLimit |
getLimit()
Returns limit
|
Map<String,Object> |
getParams()
Getter for the field
params. |
String |
getQueryStr()
Getter for the field
queryStr. |
boolean |
isCacheable()
isCacheable.
|
void |
setCacheable(boolean cacheable)
Setter for the field
cacheable. |
void |
setCountStr(String countStr)
Setter for the field
countStr. |
void |
setLimit(PageLimit limit)
Setter for the field
limit. |
void |
setParams(Map<String,Object> params)
Setter for the field
params. |
void |
setQueryStr(String queryStr)
Setter for the field
queryStr. |
String |
toCountString()
toCountString.
|
abstract String |
toQueryString()
toQueryString.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, limit, paramsprotected String queryStr
protected String countStr
protected PageLimit limit
protected boolean cacheable
public PageLimit getLimit()
public void setLimit(PageLimit limit)
Setter for the field limit.
limit - a PageLimit object.public Map<String,Object> getParams()
Getter for the field params.
getParams in interface QueryBuilder<T>Map object.public void setCountStr(String countStr)
Setter for the field countStr.
countStr - a String object.public void setQueryStr(String queryStr)
Setter for the field queryStr.
queryStr - a String object.public void setParams(Map<String,Object> params)
Setter for the field params.
params - a Map object.public boolean isCacheable()
isCacheable.
public void setCacheable(boolean cacheable)
Setter for the field cacheable.
cacheable - a boolean.Copyright © 2005–2018 The Beangle Software. All rights reserved.