Class SQLUnionQuery
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLSelectQueryBase
-
- com.alibaba.druid.sql.ast.statement.SQLUnionQuery
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLSelectQuery
public class SQLUnionQuery extends SQLSelectQueryBase implements SQLDbTypedObject
-
-
Field Summary
Fields Modifier and Type Field Description protected SQLWithSubqueryClausewith-
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLSelectQueryBase
parenthesized
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLUnionQuery()SQLUnionQuery(DbType dbType)SQLUnionQuery(SQLSelectQuery left, SQLUnionOperator operator, SQLSelectQuery right)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)voidaddRelation(SQLSelectQuery relation)SQLUnionQueryclone()booleanequals(Object o)List<SQLSelectQuery>getChildren()DbTypegetDbType()SQLSelectQueryBlockgetFirstQueryBlock()SQLSelectQuerygetLeft()SQLLimitgetLimit()SQLUnionOperatorgetOperator()SQLOrderBygetOrderBy()List<SQLSelectQuery>getRelations()SQLSelectQuerygetRight()SQLWithSubqueryClausegetWith()inthashCode()booleanisEmpty()booleanreplace(SQLSelectQuery cmp, SQLSelectQuery target)voidsetDbType(DbType dbType)voidsetLeft(SQLSelectQuery left)voidsetLimit(SQLLimit limit)voidsetOperator(SQLUnionOperator operator)voidsetOrderBy(SQLOrderBy orderBy)voidsetRight(SQLSelectQuery right)voidsetWith(SQLWithSubqueryClause x)-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLSelectQueryBase
cloneTo, isParenthesized, setParenthesized
-
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
-
with
protected SQLWithSubqueryClause with
-
-
Constructor Detail
-
SQLUnionQuery
public SQLUnionQuery()
-
SQLUnionQuery
public SQLUnionQuery(DbType dbType)
-
SQLUnionQuery
public SQLUnionQuery(SQLSelectQuery left, SQLUnionOperator operator, SQLSelectQuery right)
-
-
Method Detail
-
getOperator
public SQLUnionOperator getOperator()
-
setOperator
public void setOperator(SQLUnionOperator operator)
-
getRelations
public List<SQLSelectQuery> getRelations()
-
isEmpty
public boolean isEmpty()
-
addRelation
public void addRelation(SQLSelectQuery relation)
-
getLeft
public SQLSelectQuery getLeft()
-
setLeft
public void setLeft(SQLSelectQuery left)
-
getRight
public SQLSelectQuery getRight()
-
setRight
public void setRight(SQLSelectQuery right)
-
getOrderBy
public SQLOrderBy getOrderBy()
-
setOrderBy
public void setOrderBy(SQLOrderBy orderBy)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
getLimit
public SQLLimit getLimit()
-
setLimit
public void setLimit(SQLLimit limit)
-
clone
public SQLUnionQuery clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLSelectQuery- Specified by:
clonein classSQLSelectQueryBase
-
getFirstQueryBlock
public SQLSelectQueryBlock getFirstQueryBlock()
-
getDbType
public DbType getDbType()
- Specified by:
getDbTypein interfaceSQLDbTypedObject
-
setDbType
public void setDbType(DbType dbType)
-
replace
public boolean replace(SQLSelectQuery cmp, SQLSelectQuery target)
-
getChildren
public List<SQLSelectQuery> getChildren()
-
getWith
public SQLWithSubqueryClause getWith()
-
setWith
public void setWith(SQLWithSubqueryClause x)
-
-