public class SetQuery extends SqlQuery implements SqlStatement
SqlQuery (the queries that will be union-ed),
a collection of columns alias, a set operation type and a set alias.
All these values are used to generation the subquery.AbstractSyntaxTree.LogCounter| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getChildren()
Get the list of child objects owned by this substitution API object.
|
SqlQuery |
getInputQuery(int index)
Get the input query corresponding to the given index.
|
int |
getInputQueryCount()
Return the number of input queries.
|
java.lang.String |
getSetAlias()
Get the set alias
|
java.util.List |
getSetOperationTypes()
Retrieve the set operation types list
|
java.util.Collection |
getSourceTables()
Get all source tables involved in this query.
|
java.lang.String |
getType()
Get a class type string for this substitution API object.
|
boolean |
isSubqueryRequired()
Return true if this set query needs to be generated as a sub-query
|
addJoin, getAliasList, getColumnAliasSeparator, getConstantFromClauseText, getConstantFromClauseText, getExpressionColumn, getExpressions, getFromList, getGroupByList, getHavingList, getJournalizedSource, getLateralViewList, getNonOrderedComponents, getOrderByList, getQuerySourceComponent, getSelectHints, getSelectList, getSetOperand, getSetOperation, getSourceColumns, getSourceLocation, getSourceTable, getSourceTables, getSubqueries, getTemplateSubstitutionMap, getText, getWhereList, hasAggregation, hasFilterWithAggregation, hasJournalizedSource, hasNonOrderedJoin, hasSourceReference, hasWindowFunction, hasWindowFunction, isANSI, isConstantQuery, isDistinct, isPassive, isPivot, isScalarTableFunctionWithAggregate, isStagingQuery, isSubquery, toStringgetParentQuerygetCodeGenerationTemplate, getCodeGenerationTemplateName, getCustomTemplate, getKMName, getLeafLevelChildren, getMapPhysicalNode, getOrder, getParentAST, getParentOfType, getPropertyValue, getSourceLanguage, getSourceTechnology, getSourceText, getTargetLanguage, getTargetLocation, getTargetTechnology, getTargetText, hasCustomTemplate, hasSourceAndTargetText, isLeafLevelNode, isPushFromSourceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParentASTpublic java.lang.String getSetAlias()
public java.util.List getSetOperationTypes()
public boolean isSubqueryRequired()
public java.lang.String getType()
AbstractSyntaxTreepublic java.util.List getChildren()
AbstractSyntaxTreegetChildren in interface ITableFunctionParametergetChildren in class SqlQuerypublic java.util.Collection getSourceTables()
SqlQuerygetSourceTables in class SqlQuerypublic SqlQuery getInputQuery(int index) throws GenerationException
getInputQuery in class SqlQueryindex - The index of the query.GenerationExceptionpublic int getInputQueryCount()
getInputQueryCount in class SqlQuery