public class SQLSelectQueryBlock extends SQLObjectImpl implements SQLSelectQuery, SQLReplaceable, SQLDbTypedObject
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
SQLSelectQueryBlock.AggregationStatVisitor |
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
cachedSelectList |
protected long |
cachedSelectListHash |
protected List<SQLSelectOrderByItem> |
clusterBy |
protected SQLExpr |
connectBy |
protected String |
dbType |
protected int |
distionOption |
protected List<SQLSelectOrderByItem> |
distributeBy |
protected boolean |
forUpdate |
protected List<SQLExpr> |
forUpdateOf |
protected SQLTableSource |
from |
protected SQLSelectGroupByClause |
groupBy |
protected List<SQLCommentHint> |
hints |
protected SQLExprTableSource |
into |
protected SQLLimit |
limit |
protected boolean |
noCycle |
protected boolean |
noWait |
protected SQLOrderBy |
orderBy |
protected SQLOrderBy |
orderBySiblings |
protected boolean |
parenthesized |
protected boolean |
prior |
protected List<SQLSelectItem> |
selectList |
protected List<SQLSelectOrderByItem> |
sortBy |
protected SQLExpr |
startWith |
protected SQLExpr |
waitTime |
protected SQLExpr |
where |
protected List<SQLWindow> |
windows |
attributes, parent| 构造器和说明 |
|---|
SQLSelectQueryBlock() |
SQLSelectQueryBlock(String dbType) |
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, toStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParentprotected int distionOption
protected final List<SQLSelectItem> selectList
protected SQLTableSource from
protected SQLExprTableSource into
protected SQLExpr where
protected SQLExpr startWith
protected SQLExpr connectBy
protected boolean prior
protected boolean noCycle
protected SQLOrderBy orderBySiblings
protected SQLSelectGroupByClause groupBy
protected SQLOrderBy orderBy
protected boolean parenthesized
protected boolean forUpdate
protected boolean noWait
protected SQLExpr waitTime
protected SQLLimit limit
protected List<SQLSelectOrderByItem> distributeBy
protected List<SQLSelectOrderByItem> sortBy
protected List<SQLSelectOrderByItem> clusterBy
protected String cachedSelectList
protected long cachedSelectListHash
protected String dbType
protected List<SQLCommentHint> hints
public SQLSelectQueryBlock()
public SQLSelectQueryBlock(String dbType)
public SQLExprTableSource getInto()
public void setInto(SQLExpr into)
public void setInto(SQLExprTableSource into)
public SQLSelectGroupByClause getGroupBy()
public void setGroupBy(SQLSelectGroupByClause x)
public void addWindow(SQLWindow x)
public SQLExpr getWhere()
public void setWhere(SQLExpr x)
public void addWhere(SQLExpr condition)
public void whereOr(SQLExpr condition)
public void addHaving(SQLExpr condition)
public SQLOrderBy getOrderBy()
public void setOrderBy(SQLOrderBy orderBy)
public void addOrderBy(SQLOrderBy orderBy)
public void addOrderBy(SQLSelectOrderByItem orderByItem)
public boolean containsOrderBy(SQLSelectOrderByItem orderByItem)
public void addOrderBy(SQLExpr orderBy, SQLOrderingSpecification type)
public void addOrderBy(SQLExpr orderBy)
public SQLOrderBy getOrderBySiblings()
public void setOrderBySiblings(SQLOrderBy orderBySiblings)
public int getDistionOption()
public void setDistionOption(int distionOption)
public void setDistinct()
public boolean isDistinct()
public List<SQLSelectItem> getSelectList()
public SQLSelectItem getSelectItem(int i)
public void addSelectItem(SQLSelectItem item)
public SQLSelectItem addSelectItem(SQLExpr expr)
public boolean hasSelectAggregation()
public SQLTableSource getFrom()
public void setFrom(SQLExpr from)
public void setFrom(SQLTableSource from)
public void setFrom(SQLSelectQueryBlock queryBlock, String alias)
public boolean isParenthesized()
public void setParenthesized(boolean parenthesized)
public boolean isForUpdate()
public void setForUpdate(boolean forUpdate)
public boolean isNoWait()
public void setNoWait(boolean noWait)
public SQLExpr getWaitTime()
public void setWaitTime(SQLExpr waitTime)
public SQLLimit getLimit()
public void setLimit(SQLLimit limit)
public SQLExpr getFirst()
public void setFirst(SQLExpr first)
public SQLExpr getOffset()
public void setOffset(SQLExpr offset)
public boolean isPrior()
public void setPrior(boolean prior)
public SQLExpr getStartWith()
public void setStartWith(SQLExpr startWith)
public SQLExpr getConnectBy()
public void setConnectBy(SQLExpr connectBy)
public boolean isNoCycle()
public void setNoCycle(boolean noCycle)
public List<SQLSelectOrderByItem> getDistributeBy()
public List<SQLSelectOrderByItem> getDistributeByDirect()
public void addDistributeBy(SQLExpr x)
public void addDistributeBy(SQLSelectOrderByItem item)
public List<SQLSelectOrderByItem> getSortBy()
public List<SQLSelectOrderByItem> getSortByDirect()
public void addSortBy(SQLSelectOrderByItem item)
protected void accept0(SQLASTVisitor visitor)
accept0 在类中 SQLObjectImplpublic boolean equalsForMergeJoin(SQLSelectQueryBlock that)
public SQLSelectQueryBlock clone()
clone 在接口中 SQLObjectclone 在接口中 SQLSelectQueryclone 在类中 SQLObjectImplpublic int getForUpdateOfSize()
public void cloneSelectListTo(SQLSelectQueryBlock x)
public void cloneTo(SQLSelectQueryBlock x)
public boolean isBracket()
isBracket 在接口中 SQLSelectQuerypublic void setBracket(boolean bracket)
setBracket 在接口中 SQLSelectQuerypublic SQLTableSource findTableSource(String alias)
public SQLTableSource findTableSourceWithColumn(String column)
public SQLTableSource findTableSourceWithColumn(long columnHash)
public boolean replace(SQLExpr expr, SQLExpr target)
replace 在接口中 SQLReplaceablepublic SQLSelectItem findSelectItem(String ident)
public SQLSelectItem findSelectItem(long identHash)
public boolean selectItemHasAllColumn()
public boolean selectItemHasAllColumn(boolean recursive)
public SQLSelectItem findAllColumnSelectItem()
public SQLColumnDefinition findColumn(String columnName)
public SQLColumnDefinition findColumn(long columnNameHash)
public SQLObject resolveColum(long columnNameHash)
public void addCondition(String conditionSql)
public void addCondition(SQLExpr expr)
public boolean removeCondition(String conditionSql)
public boolean removeCondition(SQLExpr condition)
public void limit(int rowCount,
int offset)
public String getCachedSelectList()
public void setCachedSelectList(String cachedSelectList, long cachedSelectListHash)
public long getCachedSelectListHash()
public String getDbType()
getDbType 在接口中 SQLDbTypedObjectpublic void setDbType(String dbType)
public List<SQLCommentHint> getHintsDirect()
public List<SQLCommentHint> getHints()
public void setHints(List<SQLCommentHint> hints)
public int getHintsSize()
public boolean replaceInParent(SQLSelectQuery x)
public List<SQLSelectOrderByItem> getClusterBy()
public List<SQLSelectOrderByItem> getClusterByDirect()
public void addClusterBy(SQLSelectOrderByItem item)
public List<SQLTableSource> getMappJoinTableSources()
public boolean clearMapJoinHint()
Copyright © 2013–2019 Alibaba Group. All rights reserved.