public class QuerySqlBuilder extends java.lang.Object implements ISqlBuilder
构造器和说明 |
---|
QuerySqlBuilder(SqLinkConfig config,
ISqlQueryableExpression queryable) |
限定符和类型 | 方法和说明 |
---|---|
void |
addHaving(ISqlExpression cond) |
void |
addJoin(JoinType joinType,
ISqlTableExpression table,
ISqlExpression conditions) |
void |
addOrder(ISqlOrderExpression order) |
void |
addOrWhere(ISqlExpression cond) |
void |
addWhere(ISqlExpression cond) |
SqLinkConfig |
getConfig()
获取配置
|
java.util.List<IncludeSet> |
getIncludeSets() |
IncludeSet |
getLastIncludeSet() |
java.util.List<FieldMetaData> |
getMappingData() |
java.util.List<java.lang.Class<?>> |
getOrderedClass() |
ISqlQueryableExpression |
getQueryable() |
java.lang.String |
getSql()
获取SQL
|
java.lang.String |
getSqlAndValue(java.util.List<SqlValue> values)
获取SQL和参数
|
java.lang.Class<?> |
getTargetClass() |
boolean |
isSingle() |
void |
setDistinct(boolean distinct) |
void |
setGroup(ISqlGroupByExpression group) |
void |
setLimit(long offset,
long rows) |
void |
setSelect(java.lang.Class<?> c) |
void |
setSelect(ISqlSelectExpression select) |
public QuerySqlBuilder(SqLinkConfig config, ISqlQueryableExpression queryable)
public void addWhere(ISqlExpression cond)
public void addOrWhere(ISqlExpression cond)
public void addJoin(JoinType joinType, ISqlTableExpression table, ISqlExpression conditions)
public void setGroup(ISqlGroupByExpression group)
public void addHaving(ISqlExpression cond)
public void addOrder(ISqlOrderExpression order)
public void setSelect(ISqlSelectExpression select)
public void setSelect(java.lang.Class<?> c)
public void setLimit(long offset, long rows)
public void setDistinct(boolean distinct)
public SqLinkConfig getConfig()
ISqlBuilder
getConfig
在接口中 ISqlBuilder
public java.lang.String getSql()
ISqlBuilder
getSql
在接口中 ISqlBuilder
public java.lang.String getSqlAndValue(java.util.List<SqlValue> values)
ISqlBuilder
getSqlAndValue
在接口中 ISqlBuilder
public java.util.List<java.lang.Class<?>> getOrderedClass()
public java.util.List<FieldMetaData> getMappingData()
public boolean isSingle()
public java.lang.Class<?> getTargetClass()
public ISqlQueryableExpression getQueryable()
public java.util.List<IncludeSet> getIncludeSets()
public IncludeSet getLastIncludeSet()