com.metamatrix.query.sql.lang
Class QueryCommand

java.lang.Object
  extended by com.metamatrix.query.sql.lang.Command
      extended by com.metamatrix.query.sql.lang.QueryCommand
All Implemented Interfaces:
LanguageObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
Query, SetQuery

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.query.sql.lang.Command
tempGroupIDs, TYPE_BATCHED_UPDATE, TYPE_CREATE, TYPE_DELETE, TYPE_DROP, TYPE_DYNAMIC, TYPE_INSERT, TYPE_QUERY, TYPE_SQL, TYPE_STORED_PROCEDURE, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE, TYPE_XQUERY
 
Constructor Summary
QueryCommand()
           
 
Method Summary
 Limit getLimit()
           
 OrderBy getOrderBy()
          Get the order by clause for the query.
abstract  Query getProjectedQuery()
           
 void setLimit(Limit limit)
           
 void setOrderBy(OrderBy orderBy)
          Set the order by clause for the query.
 
Methods inherited from class com.metamatrix.query.sql.lang.Command
addExternalGroupsToContext, addExternalGroupToContext, areResultsCachable, clone, copyMetadataState, getAllExternalGroups, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getProjectedSymbols, getSubCommands, getSubCommandsUpdatingModelCount, getSubCommandsUpdatingModelCount, getTemporaryMetadata, getType, getUpdateCommandSymbol, getVirtualGroup, isResolved, printCommandTree, printCommandTree, pushNewResolvingContext, setCorrelatedReferences, setExternalGroupContexts, setIsResolved, setOption, setProcessorPlan, setTemporaryMetadata, setVirtualGroup, toString, updatingModelCount
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.query.sql.LanguageObject
acceptVisitor
 

Constructor Detail

QueryCommand

public QueryCommand()
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)

getProjectedQuery

public abstract Query getProjectedQuery()


Copyright © 2009. All Rights Reserved.