public class SqlQueryableExpression extends SqlTableExpression implements ISqlQueryableExpression
限定符和类型 | 字段和说明 |
---|---|
protected ISqlFromExpression |
from |
protected ISqlGroupByExpression |
groupBy |
protected ISqlHavingExpression |
having |
protected boolean |
isChanged |
protected ISqlJoinsExpression |
joins |
protected ISqlLimitExpression |
limit |
protected ISqlOrderByExpression |
orderBy |
protected ISqlSelectExpression |
select |
protected ISqlWhereExpression |
where |
构造器和说明 |
---|
SqlQueryableExpression(ISqlSelectExpression select,
ISqlFromExpression from,
ISqlJoinsExpression joins,
ISqlWhereExpression where,
ISqlGroupByExpression groupBy,
ISqlHavingExpression having,
ISqlOrderByExpression orderBy,
ISqlLimitExpression limit) |
限定符和类型 | 方法和说明 |
---|---|
void |
addHaving(ISqlExpression cond)
添加having条件
|
void |
addJoin(ISqlJoinExpression join)
添加join条件
|
void |
addOrder(ISqlOrderExpression order)
添加orderBy列
|
void |
addWhere(ISqlExpression cond)
添加where条件
|
void |
change() |
boolean |
getChanged()
获取是否已经发生变化
|
ISqlFromExpression |
getFrom()
获取from
|
ISqlGroupByExpression |
getGroupBy()
获取groupBy
|
ISqlHavingExpression |
getHaving()
获取having
|
ISqlJoinsExpression |
getJoins()
获取join
|
ISqlLimitExpression |
getLimit()
获取limit
|
java.lang.Class<?> |
getMainTableClass()
获取表类
|
ISqlOrderByExpression |
getOrderBy()
获取orderBy
|
java.util.List<java.lang.Class<?>> |
getOrderedClass()
获取查询列的类(from + joins)
|
int |
getOrderedCount()
获取查询列数量(from + joins)
|
ISqlSelectExpression |
getSelect()
获取select
|
java.lang.String |
getSqlAndValue(SqLinkConfig config,
java.util.List<SqlValue> values)
获取sql和参数
|
ISqlWhereExpression |
getWhere()
获取where
|
void |
setChanged(boolean changed)
设置是否已经发生变化
|
void |
setDistinct(boolean distinct)
设置是否去重
|
void |
setGroup(ISqlGroupByExpression group)
设置group by
|
void |
setLimit(long offset,
long rows)
设置limit
|
void |
setSelect(ISqlSelectExpression newSelect)
设置select
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy, getMappingData, getMappingData0
getSql
protected final ISqlSelectExpression select
protected final ISqlFromExpression from
protected final ISqlJoinsExpression joins
protected final ISqlWhereExpression where
protected final ISqlGroupByExpression groupBy
protected final ISqlHavingExpression having
protected final ISqlOrderByExpression orderBy
protected final ISqlLimitExpression limit
protected boolean isChanged
public SqlQueryableExpression(ISqlSelectExpression select, ISqlFromExpression from, ISqlJoinsExpression joins, ISqlWhereExpression where, ISqlGroupByExpression groupBy, ISqlHavingExpression having, ISqlOrderByExpression orderBy, ISqlLimitExpression limit)
public java.lang.String getSqlAndValue(SqLinkConfig config, java.util.List<SqlValue> values)
ISqlExpression
getSqlAndValue
在接口中 ISqlExpression
public java.lang.Class<?> getMainTableClass()
ISqlTableExpression
getMainTableClass
在接口中 ISqlTableExpression
getMainTableClass
在类中 SqlTableExpression
public void addWhere(ISqlExpression cond)
ISqlQueryableExpression
addWhere
在接口中 ISqlQueryableExpression
public void addJoin(ISqlJoinExpression join)
ISqlQueryableExpression
addJoin
在接口中 ISqlQueryableExpression
public void setGroup(ISqlGroupByExpression group)
ISqlQueryableExpression
setGroup
在接口中 ISqlQueryableExpression
public void addHaving(ISqlExpression cond)
ISqlQueryableExpression
addHaving
在接口中 ISqlQueryableExpression
public void addOrder(ISqlOrderExpression order)
ISqlQueryableExpression
addOrder
在接口中 ISqlQueryableExpression
public void setSelect(ISqlSelectExpression newSelect)
ISqlQueryableExpression
setSelect
在接口中 ISqlQueryableExpression
public void setLimit(long offset, long rows)
ISqlQueryableExpression
setLimit
在接口中 ISqlQueryableExpression
public void setDistinct(boolean distinct)
ISqlQueryableExpression
setDistinct
在接口中 ISqlQueryableExpression
public ISqlFromExpression getFrom()
ISqlQueryableExpression
getFrom
在接口中 ISqlQueryableExpression
public int getOrderedCount()
ISqlQueryableExpression
getOrderedCount
在接口中 ISqlQueryableExpression
public ISqlWhereExpression getWhere()
ISqlQueryableExpression
getWhere
在接口中 ISqlQueryableExpression
public ISqlGroupByExpression getGroupBy()
ISqlQueryableExpression
getGroupBy
在接口中 ISqlQueryableExpression
public ISqlJoinsExpression getJoins()
ISqlQueryableExpression
getJoins
在接口中 ISqlQueryableExpression
public ISqlSelectExpression getSelect()
ISqlQueryableExpression
getSelect
在接口中 ISqlQueryableExpression
public ISqlOrderByExpression getOrderBy()
ISqlQueryableExpression
getOrderBy
在接口中 ISqlQueryableExpression
public ISqlLimitExpression getLimit()
ISqlQueryableExpression
getLimit
在接口中 ISqlQueryableExpression
public ISqlHavingExpression getHaving()
ISqlQueryableExpression
getHaving
在接口中 ISqlQueryableExpression
public java.util.List<java.lang.Class<?>> getOrderedClass()
ISqlQueryableExpression
getOrderedClass
在接口中 ISqlQueryableExpression
public void change()
public boolean getChanged()
ISqlQueryableExpression
getChanged
在接口中 ISqlQueryableExpression
public void setChanged(boolean changed)
ISqlQueryableExpression
setChanged
在接口中 ISqlQueryableExpression