public class SetQuery extends QueryCommand
| Modifier and Type | Class and Description |
|---|---|
static class |
SetQuery.Operation |
LanguageObject.UtiltempGroupIDs, TYPE_ALTER_PROC, TYPE_ALTER_TRIGGER, TYPE_ALTER_VIEW, TYPE_BATCHED_UPDATE, TYPE_CREATE, TYPE_DELETE, TYPE_DROP, TYPE_DYNAMIC, TYPE_EXPLAIN, 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, setWithaddExternalGroupToContext, copyMetadataState, getActualCommand, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getResultSetColumns, getSourceHint, getTemporaryMetadata, getUpdateCommandSymbol, printCommandTree, printCommandTree, pushNewResolvingContext, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadata, toStringpublic SetQuery(SetQuery.Operation operation)
operation - Operation as specified like SetQuery.Operation.UNIONpublic SetQuery(SetQuery.Operation operation, boolean all, QueryCommand leftQuery, QueryCommand rightQuery)
public Query getProjectedQuery()
getProjectedQuery in class QueryCommandpublic int getType()
public void setOperation(SetQuery.Operation operation)
operation - Operation constant as defined in this classpublic SetQuery.Operation getOperation()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObjectvisitor - Visitor being usedpublic List getProjectedSymbols()
getProjectedSymbols in class Commandpublic static List<Expression> getTypedProjectedSymbols(List<? extends Expression> acutal, List<Class<?>> projectedTypes, QueryMetadataInterface metadata)
public Object clone()
clone in interface LanguageObjectclone in class Commandpublic boolean equals(Object obj)
public int hashCode()
public boolean areResultsCachable()
CommandareResultsCachable in class CommandCommand.areResultsCachable()public List<QueryCommand> getQueryCommands()
public void setProjectedTypes(List<Class<?>> projectedTypes, QueryMetadataInterface metadata)
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 © 2020. All rights reserved.