Class SQLSelect
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLSelect
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject
public class SQLSelect extends SQLObjectImpl implements SQLDbTypedObject
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanforBrowseprotected List<String>forXmlOptionsprotected List<SQLHint>hintsprotected SQLLimitlimitprotected SQLExproffsetprotected SQLOrderByorderByprotected SQLSelectQueryqueryprotected SQLObjectrestrictionprotected SQLExprrowCountprotected SQLWithSubqueryClausewithSubQueryprotected SQLExprxmlPath-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLSelect()SQLSelect(SQLSelectQuery query)
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Field Detail
-
withSubQuery
protected SQLWithSubqueryClause withSubQuery
-
query
protected SQLSelectQuery query
-
orderBy
protected SQLOrderBy orderBy
-
limit
protected SQLLimit limit
-
restriction
protected SQLObject restriction
-
forBrowse
protected boolean forBrowse
-
xmlPath
protected SQLExpr xmlPath
-
rowCount
protected SQLExpr rowCount
-
offset
protected SQLExpr offset
-
-
Constructor Detail
-
SQLSelect
public SQLSelect()
-
SQLSelect
public SQLSelect(SQLSelectQuery query)
-
-
Method Detail
-
getHintsSize
public int getHintsSize()
-
getWithSubQuery
public SQLWithSubqueryClause getWithSubQuery()
-
findWithSubQueryEntry
public SQLWithSubqueryClause.Entry findWithSubQueryEntry(String alias)
-
findSelectItemAndComputeDataType
public SQLDataType findSelectItemAndComputeDataType(String ident)
-
findSelectItemAndComputeDataType
public SQLDataType findSelectItemAndComputeDataType(long identHash)
-
setWithSubQuery
public void setWithSubQuery(SQLWithSubqueryClause x)
-
getQuery
public SQLSelectQuery getQuery()
-
setQuery
public void setQuery(SQLSelectQuery query)
-
getQueryBlock
public SQLSelectQueryBlock getQueryBlock()
-
getOrderBy
public SQLOrderBy getOrderBy()
-
setOrderBy
public void setOrderBy(SQLOrderBy orderBy)
-
accept0
protected void accept0(SQLASTVisitor v)
- Specified by:
accept0in classSQLObjectImpl
-
getDbType
public DbType getDbType()
- Specified by:
getDbTypein interfaceSQLDbTypedObject
-
clone
public SQLSelect clone()
- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLObjectImpl
-
isSimple
public boolean isSimple()
-
getRestriction
public SQLObject getRestriction()
-
setRestriction
public void setRestriction(SQLObject restriction)
-
isForBrowse
public boolean isForBrowse()
-
setForBrowse
public void setForBrowse(boolean forBrowse)
-
getForXmlOptionsSize
public int getForXmlOptionsSize()
-
getRowCount
public SQLExpr getRowCount()
-
setRowCount
public void setRowCount(SQLExpr rowCount)
-
getHeadHint
public SQLHint getHeadHint()
-
setHeadHint
public void setHeadHint(SQLHint headHint)
-
getOffset
public SQLExpr getOffset()
-
setOffset
public void setOffset(SQLExpr offset)
-
getXmlPath
public SQLExpr getXmlPath()
-
setXmlPath
public void setXmlPath(SQLExpr xmlPath)
-
getFirstQueryBlock
public SQLSelectQueryBlock getFirstQueryBlock()
-
addWhere
public boolean addWhere(SQLExpr where)
-
replace
public boolean replace(SQLSelectQuery cmp, SQLSelectQuery target)
-
getLimit
public SQLLimit getLimit()
-
setLimit
public void setLimit(SQLLimit x)
-
-