|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.query.sql.lang.Command com.metamatrix.query.sql.lang.QueryCommand com.metamatrix.query.sql.lang.SetQuery
public class SetQuery
This object acts as a Set operator on multiple Queries - UNION, INTERSECT, and EXCEPT can be implemented with this Class
Nested Class Summary | |
---|---|
static class |
SetQuery.Operation
|
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 | |
---|---|
SetQuery(SetQuery.Operation operation)
Construct query with operation type |
|
SetQuery(SetQuery.Operation operation,
boolean all,
QueryCommand leftQuery,
QueryCommand rightQuery)
|
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
boolean |
areResultsCachable()
Whether the results are cachable. |
java.lang.Object |
clone()
Deep clone this object to produce a new identical query. |
boolean |
equals(java.lang.Object obj)
Compare two queries for equality. |
QueryCommand |
getLeftQuery()
|
SetQuery.Operation |
getOperation()
Get operation for this set |
Query |
getProjectedQuery()
|
java.util.List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query. |
java.util.List<java.lang.Class<?>> |
getProjectedTypes()
|
java.util.List<QueryCommand> |
getQueryCommands()
|
QueryCommand |
getRightQuery()
|
int |
getType()
Return type of command. |
static java.util.List |
getTypedProjectedSymbols(java.util.List acutal,
java.util.List projectedTypes)
|
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(java.util.List<java.lang.Class<?>> projectedTypes)
|
void |
setRightQuery(QueryCommand rightQuery)
|
int |
updatingModelCount(QueryMetadataInterface metadata)
Return the number of updates on physical sources by this command. |
Methods inherited from class com.metamatrix.query.sql.lang.QueryCommand |
---|
getLimit, getOrderBy, setLimit, setOrderBy |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetQuery(SetQuery.Operation operation)
operation
- Operation as specified like SetQuery.Operation.UNION
public SetQuery(SetQuery.Operation operation, boolean all, QueryCommand leftQuery, QueryCommand rightQuery)
Method Detail |
---|
public Query getProjectedQuery()
getProjectedQuery
in class QueryCommand
public int getType()
getType
in class Command
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 java.util.List getProjectedSymbols()
getProjectedSymbols
in class Command
public static java.util.List getTypedProjectedSymbols(java.util.List acutal, java.util.List projectedTypes)
public java.lang.Object clone()
clone
in interface LanguageObject
clone
in class Command
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
public int hashCode()
hashCode
in class java.lang.Object
public boolean areResultsCachable()
Command
areResultsCachable
in class Command
Command.areResultsCachable()
public int updatingModelCount(QueryMetadataInterface metadata) throws MetaMatrixComponentException
Command
updatingModelCount
in class Command
metadata
- QueryMetadataInterface
MetaMatrixComponentException
public java.util.List<QueryCommand> getQueryCommands()
public void setProjectedTypes(java.util.List<java.lang.Class<?>> projectedTypes)
projectedSymbols
- The projectedSymbols to set.public java.util.List<java.lang.Class<?>> getProjectedTypes()
public boolean isAll()
public void setAll(boolean all)
public QueryCommand getLeftQuery()
public void setLeftQuery(QueryCommand leftQuery)
public QueryCommand getRightQuery()
public void setRightQuery(QueryCommand rightQuery)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |