|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.sql.lang.Command
org.teiid.query.sql.lang.QueryCommand
org.teiid.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
|
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_INSERT, TYPE_QUERY, TYPE_SQL, TYPE_STORED_PROCEDURE, TYPE_TRIGGER_ACTION, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE |
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. |
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 |
getTypedProjectedSymbols(List acutal,
List 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)
|
Methods inherited from class org.teiid.query.sql.lang.QueryCommand |
---|
getLimit, getOrderBy, getWith, returnsResultSet, setLimit, setOrderBy, setWith |
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 List getProjectedSymbols()
getProjectedSymbols
in class Command
public static List getTypedProjectedSymbols(List acutal, List projectedTypes, QueryMetadataInterface metadata)
public Object clone()
clone
in interface LanguageObject
clone
in class Command
public boolean equals(Object obj)
equals
in class Object
obj
- Other object
public int hashCode()
hashCode
in class Object
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 List<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 |