public class SQLSelectQueryBlock extends SQLObjectImpl implements SQLSelectQuery, SQLReplaceable, SQLDbTypedObject
| Constructor and Description |
|---|
SQLSelectQueryBlock() |
SQLSelectQueryBlock(DbType dbType) |
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParentpublic SQLSelectQueryBlock()
public SQLSelectQueryBlock(DbType 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 addWhereForDynamicFilter(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 boolean isSkipLocked()
public void setSkipLocked(boolean skipLocked)
public boolean isForShare()
public void setForShare(boolean forShare)
public SQLExpr getWaitTime()
public void setWaitTime(SQLExpr waitTime)
public SQLLimit getLimit()
public void setLimit(SQLLimit limit)
public void mergeLimit(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)
public boolean equalsForMergeJoin(SQLSelectQueryBlock that)
public SQLSelectQueryBlock clone()
clone in interface SQLObjectclone in interface SQLSelectQueryclone in class SQLObjectImplpublic int getForUpdateOfSize()
public void cloneSelectListTo(SQLSelectQueryBlock x)
public void cloneTo(SQLSelectQueryBlock x)
public boolean isBracket()
isBracket in interface SQLSelectQuerypublic void setBracket(boolean bracket)
setBracket in interface SQLSelectQuerypublic SQLTableSource findTableSource(String alias)
public SQLTableSource findTableSourceWithColumn(String column)
public SQLTableSource findTableSourceWithColumn(long columnHash)
public boolean replace(SQLExpr expr, SQLExpr target)
replace in interface 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 DbType getDbType()
getDbType in interface SQLDbTypedObjectpublic void setDbType(DbType 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–2020 Alibaba Group. All rights reserved.