|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.CorrelatedVariable
public class CorrelatedVariable
A wrapper for a variable in a sub-query that references a column outside of the current query. A correlated variable differs from a regular variable because its value is constant in an operation, but may vary over future iterations of the operation.
This object is NOT immutable.
Constructor Summary | |
---|---|
CorrelatedVariable(Variable variable,
int level_offset)
Constructs the CorrelatedVariable. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the object. |
TObject |
getEvalResult()
Returns the value this correlated variable evaluates to. |
int |
getQueryLevelOffset()
Returns the number of sub-query branches back that the reference for this variable can be found. |
Variable |
getVariable()
Returns the wrapped Variable. |
TType |
returnTType()
Returns the TType this correlated variable evaluates to. |
void |
setEvalResult(TObject ob)
Sets the value this correlated variable evaluates to. |
void |
setFromResolver(VariableResolver resolver)
Given a VariableResolver this will set the value of the correlated variable. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CorrelatedVariable(Variable variable, int level_offset)
Method Detail |
---|
public Variable getVariable()
public int getQueryLevelOffset()
public void setEvalResult(TObject ob)
public void setFromResolver(VariableResolver resolver)
public TObject getEvalResult()
public TType returnTType()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
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 |