|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.sql.symbol.ScalarSubquery
public class ScalarSubquery
This is an Expression implementation that can be used in a SELECT clause. It has a subquery Command which must only produce exactly one value (or an Exception will result during query processing). It's type will be the type of the one symbol to be produced. In theory an instance of this could be used wherever an Expression is legal, but it is specifically needed for the SELECT clause.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
|---|
LanguageObject.Util |
| Constructor Summary | |
|---|---|
ScalarSubquery(QueryCommand subqueryCommand)
|
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Returns a safe clone |
boolean |
equals(java.lang.Object obj)
Compare this ScalarSubquery to another ScalarSubquery for equality. |
QueryCommand |
getCommand()
Returns the subquery Command object |
java.lang.String |
getContextSymbol()
|
java.lang.Class<?> |
getType()
Get the return type of this expression. |
Expression |
getValueExpression()
|
int |
hashCode()
Get hashcode for the object |
boolean |
isResolved()
Return true if expression has been fully resolved. |
void |
setCommand(QueryCommand command)
Sets the command. |
void |
setShouldEvaluate(boolean shouldEvaluate)
|
void |
setType(java.lang.Class<?> type)
Set type of ScalarSubquery |
boolean |
shouldEvaluate()
|
java.lang.String |
toString()
Returns string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScalarSubquery(QueryCommand subqueryCommand)
| Method Detail |
|---|
public boolean shouldEvaluate()
public void setShouldEvaluate(boolean shouldEvaluate)
public java.lang.String getContextSymbol()
getContextSymbol in interface ContextReferencepublic Expression getValueExpression()
getValueExpression in interface ContextReferencepublic boolean isResolved()
Expression
isResolved in interface ExpressionExpression.isResolved()public java.lang.Class<?> getType()
ExpressionExpression.isResolved() returns true).
getType in interface ExpressionExpression.getType()public void setType(java.lang.Class<?> type)
type - New typepublic QueryCommand getCommand()
SubqueryContainer
getCommand in interface SubqueryContainer<QueryCommand>public void setCommand(QueryCommand command)
setCommand in interface SubqueryContainer<QueryCommand>command - the subquery Command objectpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Other object
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in interface LanguageObjectclone in class java.lang.ObjectObject.clone()public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||