|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.spec.ValueExpression
public abstract class ValueExpression
The abstract base class for an ODA expression
that resolves to a value.
It may be associated with an ExpressionVariable
or
ExpressionArguments
in an ODA query specification.
It is the responsibility of an ODA driver to resolve an expression,
when evaluating it with a query result spec expression.
This may be extended to represent complex types of value expression.
Field Summary | |
---|---|
static java.lang.Integer |
UNKNOWN_ODA_DATA_TYPE
|
Constructor Summary | |
---|---|
ValueExpression()
|
Method Summary | |
---|---|
java.lang.String |
getName()
Gets the name of this value expression type. |
java.lang.Integer |
getOdaDataType()
Gets the ODA-defined code value of this variable's data type. |
java.lang.String |
getQualifiedId()
Returns the qualified id of this value expression type. |
ExpressionVariable.VariableType |
getVariableType()
Returns the type of expression. |
void |
setOdaDataType(java.lang.Integer odaDataType)
Sets the ODA data type of this variable. |
java.lang.String |
toString()
|
void |
validate()
Validates this value expression. |
void |
validate(ValidationContext context)
Validates this expression in the specified context. |
abstract void |
validateSyntax(ValidationContext context)
Performs syntactic validation of this expression in the specified context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Integer UNKNOWN_ODA_DATA_TYPE
Constructor Detail |
---|
public ValueExpression()
Method Detail |
---|
public java.lang.String getQualifiedId()
public java.lang.String getName()
public ExpressionVariable.VariableType getVariableType()
public java.lang.Integer getOdaDataType()
public void setOdaDataType(java.lang.Integer odaDataType)
odaDataTypeCode
- the ODA data type code of this variable;
may be null to unset current valuepublic void validate() throws OdaException
OdaException
- if validation failed. The concrete cause is
defined by the subclass implementing this method.public void validate(ValidationContext context) throws OdaException
context
- context for validation; may be null which would limit the scope of validation
OdaException
- if validation failed. The concrete cause is
defined by the subclass implementing this method.public abstract void validateSyntax(ValidationContext context) throws OdaException
context
- context for validation; may be null which would limit the scope of validation
OdaException
- if validation failed. The concrete cause is
defined by the subclass implementing this method.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 |