|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.spec.manifest.VariableRestrictions
public class VariableRestrictions
Represents the restrictions on the types of expression variable that can be applied with an extension-defined expression, as specifed in an extension of the org.eclipse.datatools.connectivity.oda.dynamicResultSet extension point.
Field Summary | |
---|---|
static java.lang.String |
ATTR_ODA_SCALAR_DATA_TYPE
|
static java.lang.String |
ATTR_RESULT_INSTANCE_TYPE
|
static java.lang.String |
ATTR_VARIABLE_TYPE
|
static java.lang.String |
ATTR_VARIABLE_TYPE_INSTANCE_OF
|
static java.lang.String |
ATTR_VARIABLE_TYPE_QUERY_EXPR
|
static java.lang.String |
ATTR_VARIABLE_TYPE_RESULT_COLUMN
|
static java.lang.String |
SUB_ELEMENT_VARIABLE_RESTRICTION
|
static java.lang.String |
SUB_ELEMENT_VARIABLE_RESTRICTION_INSTANCE
|
static java.lang.String |
SUB_ELEMENT_VARIABLE_RESTRICTION_ODA_DATA_TYPE
|
Method Summary | |
---|---|
java.lang.String[] |
getInstanceRestrictedTypes()
Gets the collection of class names of instance variables that can be applied with this expression. |
int[] |
getQueryExpressionRestrictedOdaDataTypes()
Gets the collection of ODA data type(s) of query expression variables that can be applied with this expression. |
ExpressionVariable.VariableType[] |
getRestrictedVariableTypes()
Returns the restrictions on the type of variables that can be applied with this type of expression. |
int[] |
getResultColumnRestrictedOdaDataTypes()
Gets the collection of ODA data type(s) of result set column variables that can be applied with this expression. |
boolean |
hasDataTypeRestrictions(ExpressionVariable.VariableType type)
Indicates whether this has any restrictions on the data type of the specified type of variable. |
boolean |
supportsClassType(ExpressionVariable.VariableType type,
java.lang.String className)
Indicates whether this supports the specified class of the specified type of variable. |
boolean |
supportsOdaBooleanDataTypes(ExpressionVariable.VariableType varType)
A convenient method to indicate whether this supports the ODA boolean data type of the specified type of variable. |
boolean |
supportsOdaDataType(ExpressionVariable.VariableType varType,
int odaDataType)
Indicates whether this supports the specified ODA data type of the specified type of variable. |
boolean |
supportsOdaDatetimeDataTypes(ExpressionVariable.VariableType varType)
A convenient method to indicate whether this supports all the ODA date and/or datetime data types of the specified type of variable. |
boolean |
supportsOdaNumericDataTypes(ExpressionVariable.VariableType varType)
A convenient method to indicate whether this supports all the ODA numeric data types of the specified type of variable. |
boolean |
supportsOdaStringDataTypes(ExpressionVariable.VariableType varType)
A convenient method to indicate whether this supports the ODA string/character data type of the specified type of variable. |
boolean |
supportsVariableType(ExpressionVariable.VariableType type)
Indicates whether the specified type of variable can be applied for evaluation with this expression type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SUB_ELEMENT_VARIABLE_RESTRICTION
public static final java.lang.String ATTR_VARIABLE_TYPE
public static final java.lang.String ATTR_VARIABLE_TYPE_RESULT_COLUMN
public static final java.lang.String ATTR_VARIABLE_TYPE_INSTANCE_OF
public static final java.lang.String ATTR_VARIABLE_TYPE_QUERY_EXPR
public static final java.lang.String SUB_ELEMENT_VARIABLE_RESTRICTION_ODA_DATA_TYPE
public static final java.lang.String ATTR_ODA_SCALAR_DATA_TYPE
public static final java.lang.String SUB_ELEMENT_VARIABLE_RESTRICTION_INSTANCE
public static final java.lang.String ATTR_RESULT_INSTANCE_TYPE
Method Detail |
---|
public boolean supportsVariableType(ExpressionVariable.VariableType type)
type
- the type of variable; its value must be one of the pre-defined ExpressionVariable#VariableType
public ExpressionVariable.VariableType[] getRestrictedVariableTypes()
ExpressionVariable.VariableType
supported by this expression typepublic boolean hasDataTypeRestrictions(ExpressionVariable.VariableType type)
type
- the type of variable; its value must be one of the pre-defined ExpressionVariable#VariableType
public boolean supportsOdaDataType(ExpressionVariable.VariableType varType, int odaDataType)
varType
- the type of variable; its value must be one of the pre-defined ExpressionVariable#VariableType
odaDataType
- ODA scalar data type code
public boolean supportsOdaNumericDataTypes(ExpressionVariable.VariableType varType)
varType
- the type of variable; its value must be one of the pre-defined ExpressionVariable#VariableType
#supportsOdaDataType(VariableType, int)
public boolean supportsOdaStringDataTypes(ExpressionVariable.VariableType varType)
varType
- the type of variable; its value must be one of the pre-defined ExpressionVariable#VariableType
#supportsOdaDataType(VariableType, int)
public boolean supportsOdaDatetimeDataTypes(ExpressionVariable.VariableType varType)
varType
- the type of variable; its value must be one of the pre-defined ExpressionVariable#VariableType
#supportsOdaDataType(VariableType, int)
public boolean supportsOdaBooleanDataTypes(ExpressionVariable.VariableType varType)
varType
- the type of variable; its value must be one of the pre-defined ExpressionVariable#VariableType
#supportsOdaDataType(VariableType, int)
public boolean supportsClassType(ExpressionVariable.VariableType type, java.lang.String className)
type
- the type of variable; its value must be one of the pre-defined ExpressionVariable#VariableType
className
- the type of instance variable
public int[] getResultColumnRestrictedOdaDataTypes()
public int[] getQueryExpressionRestrictedOdaDataTypes()
public java.lang.String[] getInstanceRestrictedTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |