|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.sql.symbol.Reference
public class Reference
This class represents a reference within a SQL statement to some other source of data. This reference may resolve to many different values during evaluation. For any particular bound value, it is treated as a constant.
Constructor Summary | |
---|---|
Reference(int refIndex)
Constructor for Reference. |
|
Reference(int refIndex,
Expression expression)
Constructor for Reference. |
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Implement clone to make objects cloneable. |
boolean |
equals(java.lang.Object obj)
Compare this constant to another constant for equality. |
java.util.Map |
getDataElements()
|
Expression |
getExpression()
|
int |
getIndex()
|
java.util.List |
getTuple()
|
java.lang.Class |
getType()
Get the return type of this expression. |
java.lang.Object |
getValue(LookupEvaluator dataMgr,
CommandContext context)
|
int |
hashCode()
Define hash code to be that of the underlying object to make it stable. |
boolean |
isCorrelated()
|
boolean |
isPositional()
|
boolean |
isResolved()
Return true if expression has been fully resolved. |
void |
setCorrelated(boolean correlated)
|
void |
setData(java.util.Map elements,
java.util.List tuple)
Set value provider for this reference |
void |
setExpression(Expression expression)
|
void |
setPositional(boolean positional)
|
void |
setValue(java.lang.Object value)
|
java.lang.String |
toString()
Return a String representation of this object using SQLStringVisitor. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Reference(int refIndex)
public Reference(int refIndex, Expression expression)
Method Detail |
---|
public boolean isResolved()
Expression
isResolved
in interface Expression
public int getIndex()
public void setExpression(Expression expression)
public Expression getExpression()
public java.lang.Class getType()
Expression
Expression.isResolved()
returns true).
getType
in interface Expression
public void setData(java.util.Map elements, java.util.List tuple)
provider
- Provider of values for this referencepublic java.util.Map getDataElements()
public java.util.List getTuple()
public java.lang.Object getValue(LookupEvaluator dataMgr, CommandContext context) throws ExpressionEvaluationException, MetaMatrixComponentException
ExpressionEvaluationException
MetaMatrixComponentException
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
LanguageObject
clone
in interface LanguageObject
clone
in class java.lang.Object
Object.clone()
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 java.lang.String toString()
toString
in class java.lang.Object
public boolean isCorrelated()
public void setCorrelated(boolean correlated)
public void setValue(java.lang.Object value)
public boolean isPositional()
public void setPositional(boolean positional)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |