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
-
Field Summary
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLSelectQueryBase
parenthesizedFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLUnionQuery(DbType dbType) SQLUnionQuery(SQLSelectQuery left, SQLUnionOperator operator, SQLSelectQuery right) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) voidaddRelation(SQLSelectQuery relation) clone()booleangetLeft()getLimit()getRight()inthashCode()booleanisEmpty()booleanreplace(SQLSelectQuery cmp, SQLSelectQuery target) voidvoidsetLeft(SQLSelectQuery left) voidvoidsetOperator(SQLUnionOperator operator) voidsetOrderBy(SQLOrderBy orderBy) voidsetRight(SQLSelectQuery right) Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLSelectQueryBase
isParenthesized, setParenthesizedMethods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Constructor Details
-
SQLUnionQuery
public SQLUnionQuery() -
SQLUnionQuery
-
SQLUnionQuery
-
-
Method Details
-
getOperator
-
setOperator
-
getRelations
-
isEmpty
public boolean isEmpty() -
addRelation
-
getLeft
-
setLeft
-
getRight
-
setRight
-
getOrderBy
-
setOrderBy
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
getLimit
-
setLimit
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLSelectQuery- Specified by:
clonein classSQLSelectQueryBase
-
getFirstQueryBlock
-
getDbType
- Specified by:
getDbTypein interfaceSQLDbTypedObject
-
setDbType
-
replace
-
getChildren
-
equals
-
hashCode
public int hashCode()
-