Package org.teiid.query.sql.lang
Class QueryCommand
- java.lang.Object
-
- org.teiid.query.sql.lang.Command
-
- org.teiid.query.sql.lang.QueryCommand
-
- All Implemented Interfaces:
Cloneable
,LanguageObject
public abstract class QueryCommand extends Command
This is a common super class for the two types of query commands: Query and SetQuery. This class provides some useful commonalities when the type of query command is not known.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
-
-
Field Summary
-
Fields inherited from class org.teiid.query.sql.lang.Command
tempGroupIDs, 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 Summary
Constructors Constructor Description QueryCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Limit
getLimit()
OrderBy
getOrderBy()
Get the order by clause for the query.abstract Query
getProjectedQuery()
List<WithQueryCommand>
getWith()
boolean
returnsResultSet()
void
setLimit(Limit limit)
void
setOrderBy(OrderBy orderBy)
Set the order by clause for the query.void
setWith(List<WithQueryCommand> with)
-
Methods inherited from class org.teiid.query.sql.lang.Command
addExternalGroupToContext, areResultsCachable, clone, copyMetadataState, getActualCommand, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getProjectedSymbols, getResultSetColumns, getSourceHint, getTemporaryMetadata, getType, getUpdateCommandSymbol, printCommandTree, printCommandTree, pushNewResolvingContext, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadata, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teiid.query.sql.LanguageObject
acceptVisitor
-
-
-
-
Method Detail
-
getOrderBy
public OrderBy getOrderBy()
Get the order by clause for the query.- Returns:
- order by clause
-
setOrderBy
public void setOrderBy(OrderBy orderBy)
Set the order by clause for the query.- Parameters:
orderBy
- New order by clause
-
getLimit
public Limit getLimit()
-
setLimit
public void setLimit(Limit limit)
-
getWith
public List<WithQueryCommand> getWith()
-
setWith
public void setWith(List<WithQueryCommand> with)
-
getProjectedQuery
public abstract Query getProjectedQuery()
-
returnsResultSet
public boolean returnsResultSet()
- Overrides:
returnsResultSet
in classCommand
-
-