|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.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.
| Constructor Summary | |
|---|---|
ScalarSubquery(Command 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. |
Command |
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(Command command)
Sets the command. |
void |
setType(java.lang.Class type)
Set type of ScalarSubquery |
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(Command subqueryCommand)
| Method Detail |
|---|
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 Command getCommand()
SubqueryContainer
getCommand in interface SubqueryContainercom.metamatrix.query.sql.lang.SubqueryLanguageObject#getCommand()public void setCommand(Command command)
setCommand in interface SubqueryContainercommand - the subquery Command objectcom.metamatrix.query.sql.lang.SubqueryLanguageObject#setCommand()public 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 | |||||||||