| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.oda.spec.ExpressionVariable
public class ExpressionVariable
Represents the variable of an expression defined in an ODA query specification.
 
It is the responsibility of an ODA driver to resolve a variable,
 when evaluating it with an expression.
 This may be extended to represent complex types of variables.
| Nested Class Summary | |
|---|---|
| static class | ExpressionVariable.VariableType | 
| Field Summary | |
|---|---|
| static java.lang.String | ALIAS_SEPARATOR | 
| Constructor Summary | |
|---|---|
| ExpressionVariable(ColumnIdentifier columnIdentifier)Constructor for an expression variable that references a result set column by its identifier. | |
| ExpressionVariable(java.lang.String variableIdentfier)Constructor for an expression variable that references a result set column by name or expression. | |
| ExpressionVariable(java.lang.String variableIdentfier,
                   ExpressionVariable.VariableType varType)Constructor for an expression variable of the specified type. | |
| ExpressionVariable(ValueExpression valueExpr)Constructor for an expression variable that references the specified value expression. | |
| Method Summary | |
|---|---|
|  java.lang.String | getAlias()Gets the variable alias. | 
|  java.lang.String | getIdentifier()Gets the name or expression that identifies the variable in evaluating an expression. | 
|  java.lang.Integer | getNativeDataType()Deprecated. replaced by getOdaDataType() | 
|  java.lang.Integer | getOdaDataType()Gets the ODA-defined code value of this variable's data type. | 
|  ExpressionVariable.VariableType | getType()Gets the type of this variable, e.g. | 
|  ValueExpression | getValueExpression()Returns the value expression of this variable. | 
|  void | setAlias(java.lang.String alias)Specifies the variable alias. | 
|  void | setNativeDataType(java.lang.Integer nativeDataTypeCode)Deprecated. replaced by ValueExpression.setOdaDataType(Integer) | 
|  void | setType(ExpressionVariable.VariableType type)Deprecated. replaced by deriving from the type of ValueExpression in this variable | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String ALIAS_SEPARATOR
| Constructor Detail | 
|---|
public ExpressionVariable(java.lang.String variableIdentfier)
variableIdentfier - the name or expression that identifies the variable to use in evaluating an expression.
              The identifier must be in a format recognized by the ODA data provider that will be 
              evaluating the expression.
public ExpressionVariable(java.lang.String variableIdentfier,
                          ExpressionVariable.VariableType varType)
variableIdentfier - the name or expression that identifies the variable to use in evaluating an expression.
              The identifier must be in a format recognized by the ODA data provider that will be 
              evaluating the expression.type - the type of variable; its value must be one of the pre-defined ExpressionVariable.VariableTypepublic ExpressionVariable(ColumnIdentifier columnIdentifier)
columnIdentifier - a column identifierpublic ExpressionVariable(ValueExpression valueExpr)
valueExpr - a concrete ValueExpression instance| Method Detail | 
|---|
public ValueExpression getValueExpression()
public java.lang.String getIdentifier()
public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
alias - the alias to set; may be nullpublic ExpressionVariable.VariableType getType()
public void setType(ExpressionVariable.VariableType type)
type - a VariableType enum valuepublic java.lang.Integer getNativeDataType()
getOdaDataType()
public void setNativeDataType(java.lang.Integer nativeDataTypeCode)
ValueExpression.setOdaDataType(Integer)
nativeDataTypeCode - the native data type code of this variable;
              may be null to unset current valuepublic java.lang.Integer getOdaDataType()
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 | |||||||||