public abstract class AbstractQueryBuilder<T> extends Object implements QueryBuilder<T>
Abstract AbstractQueryBuilder class.
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias
别名
|
protected boolean |
cacheable
缓存查询结果
|
protected List<Condition> |
conditions |
protected String |
from |
protected List<String> |
groups |
protected String |
having |
static String |
INNER_JOIN
Constant
INNER_JOIN=" left join " |
static String |
LEFT_OUTER_JOIN
Constant
LEFT_OUTER_JOIN=" left outer join " |
protected PageLimit |
limit
分页
|
protected List<Order> |
orders |
static String |
OUTER_JOIN
Constant
OUTER_JOIN=" outer join " |
protected Map<String,Object> |
params
参数
|
static String |
RIGHT_OUTER_JOIN
Constant
RIGHT_OUTER_JOIN=" right outer join " |
protected String |
select |
protected String |
statement
query 查询语句
|
| Constructor and Description |
|---|
AbstractQueryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
build()
build.
|
protected abstract String |
genCountStatement()
genCountStatement.
|
protected String |
genQueryStatement(boolean hasOrder)
genQueryStatement.
|
protected String |
genStatement()
生成查询语句(如果查询语句已经存在则不进行生成)
|
String |
getAlias()
Return entity's alias
|
List<Condition> |
getConditions() |
String |
getFrom() |
protected abstract Lang |
getLang()
getLang.
|
PageLimit |
getLimit()
Getter for the field
limit. |
Map<String,Object> |
getParams()
Returns params.
|
boolean |
isCacheable()
isCacheable.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlimit, paramspublic static final String INNER_JOIN
INNER_JOIN=" left join "public static final String OUTER_JOIN
OUTER_JOIN=" outer join "public static final String LEFT_OUTER_JOIN
LEFT_OUTER_JOIN=" left outer join "public static final String RIGHT_OUTER_JOIN
RIGHT_OUTER_JOIN=" right outer join "protected String statement
protected PageLimit limit
protected String select
protected String from
protected String alias
protected String having
protected boolean cacheable
public Map<String,Object> getParams()
getParams in interface QueryBuilder<T>Map object.public String getAlias()
public boolean isCacheable()
isCacheable.
public Query<T> build()
build.
build in interface QueryBuilder<T>Query object.protected String genStatement()
protected abstract String genCountStatement()
genCountStatement.
String object.protected String genQueryStatement(boolean hasOrder)
genQueryStatement.
hasOrder - a boolean.String object.public String getFrom()
Copyright © 2005–2018 The Beangle Software. All rights reserved.