public class SetQuery extends QueryCommand
Modifier and Type | Class and Description |
---|---|
static class |
SetQuery.Operation |
LanguageObject.Util
tempGroupIDs, TYPE_ALTER_PROC, TYPE_ALTER_TRIGGER, TYPE_ALTER_VIEW, TYPE_BATCHED_UPDATE, TYPE_CREATE, TYPE_DELETE, TYPE_DROP, TYPE_DYNAMIC, TYPE_INSERT, TYPE_QUERY, TYPE_SOURCE_EVENT, TYPE_STORED_PROCEDURE, TYPE_TRIGGER_ACTION, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE
Constructor and Description |
---|
SetQuery(SetQuery.Operation operation)
Construct query with operation type
|
SetQuery(SetQuery.Operation operation,
boolean all,
QueryCommand leftQuery,
QueryCommand rightQuery) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
boolean |
areResultsCachable()
Whether the results are cachable.
|
Object |
clone()
Deep clone this object to produce a new identical query.
|
boolean |
equals(Object obj)
Compare two queries for equality.
|
QueryCommand |
getLeftQuery() |
SetQuery.Operation |
getOperation()
Get operation for this set
|
Query |
getProjectedQuery() |
List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query.
|
List<Class<?>> |
getProjectedTypes() |
List<QueryCommand> |
getQueryCommands() |
QueryCommand |
getRightQuery() |
int |
getType()
Return type of command.
|
static List<Expression> |
getTypedProjectedSymbols(List<? extends Expression> acutal,
List<Class<?>> projectedTypes,
QueryMetadataInterface metadata) |
int |
hashCode()
Get hashcode for query.
|
boolean |
isAll() |
void |
setAll(boolean all) |
void |
setLeftQuery(QueryCommand leftQuery) |
void |
setOperation(SetQuery.Operation operation)
Set type of operation
|
void |
setProjectedTypes(List<Class<?>> projectedTypes,
QueryMetadataInterface metadata) |
void |
setRightQuery(QueryCommand rightQuery) |
getLimit, getOrderBy, getWith, returnsResultSet, setLimit, setOrderBy, setWith
addExternalGroupToContext, copyMetadataState, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getResultSetColumns, getSourceHint, getTemporaryMetadata, getUpdateCommandSymbol, printCommandTree, printCommandTree, pushNewResolvingContext, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadata, toString
public SetQuery(SetQuery.Operation operation)
operation
- Operation as specified like SetQuery.Operation.UNION
public SetQuery(SetQuery.Operation operation, boolean all, QueryCommand leftQuery, QueryCommand rightQuery)
public Query getProjectedQuery()
getProjectedQuery
in class QueryCommand
public int getType()
public void setOperation(SetQuery.Operation operation)
operation
- Operation constant as defined in this classpublic SetQuery.Operation getOperation()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic List getProjectedSymbols()
getProjectedSymbols
in class Command
public static List<Expression> getTypedProjectedSymbols(List<? extends Expression> acutal, List<Class<?>> projectedTypes, QueryMetadataInterface metadata)
public Object clone()
clone
in interface LanguageObject
clone
in class Command
public boolean equals(Object obj)
public int hashCode()
public boolean areResultsCachable()
Command
areResultsCachable
in class Command
Command.areResultsCachable()
public List<QueryCommand> getQueryCommands()
public void setProjectedTypes(List<Class<?>> projectedTypes, QueryMetadataInterface metadata)
projectedSymbols
- The projectedSymbols to set.public boolean isAll()
public void setAll(boolean all)
public QueryCommand getLeftQuery()
public void setLeftQuery(QueryCommand leftQuery)
public QueryCommand getRightQuery()
public void setRightQuery(QueryCommand rightQuery)
Copyright © 2019. All rights reserved.