|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CalculatedItemInterface
Represents a calculated item and serves as the interface between a data model and the calculated item selectors.
Field Summary | |
---|---|
static int |
CALCITEM_TYPE_BITSTRING
A Column or other scalar expression. |
static int |
CALCITEM_TYPE_BOOLEAN
A true or false value. |
static int |
CALCITEM_TYPE_CHARACTER
A character based column or character expression. |
static int |
CALCITEM_TYPE_DATE
A date value |
static int |
CALCITEM_TYPE_INTERVAL_DT
An interval value--- Date and time only |
static int |
CALCITEM_TYPE_INTERVAL_YM
An interval value--- YEAR and MONTH only |
static int |
CALCITEM_TYPE_NOT_SET
Unset or Invalid expression |
static int |
CALCITEM_TYPE_NUMERIC
A Numeric column or numeric expression. |
static int |
CALCITEM_TYPE_OLAP_CATEGORY
An OLAP Category |
static int |
CALCITEM_TYPE_OLAP_MEASURE
An OLAP Measure |
static int |
CALCITEM_TYPE_TIME
A time value |
static int |
CALCITEM_TYPE_TIMESTAMP
A timestamp value |
Method Summary | |
---|---|
boolean |
commitChanges()
Commit changed data |
int |
convertToCalcItemType(int expressionType,
boolean isOLAP)
Converts a expression type from the com.sas.iquery.metadata.expr.ExpressionTypes to the CalcItem range |
int |
convertToExpressionType(int calculatedItemType,
boolean isOLAP)
Converts a expression type from CalcItem range to the com.sas.iquery.metadata.expr.ExpressionTypes range |
java.lang.String |
getDescription()
Gets the description of this calculated item. |
java.lang.String |
getExpression()
Gets the String expression representing this calculated item. |
int |
getExpressionType()
Get the Type of the expression |
java.lang.String |
getFormat()
Returns the format string for the calculated item |
java.lang.String |
getId()
Gets the unique ID of this calculated item. |
java.lang.String |
getLabel()
Gets the label (human readable name) of this calculated item. |
java.lang.String |
getLastInvalidCalculatedItemMessage()
get the text reason why validation failed |
java.lang.Exception |
getLastInvalidExpressionException()
get the exception of why the calculated items text wasnt valid. |
java.lang.String |
getName()
Deprecated. |
java.lang.String[] |
getValidExpressionTypeNames()
Get an default string descriptions for the valid expression types ordered by how they should appear in a pick list. |
int[] |
getValidExpressionTypeValues()
Get an array of the currently valid Types for this expression ordered the same as in getValidExpressionTypeNames() The first one returned should be used as the default value and if only one is returned then the type field must be that value. |
boolean |
isValidateCalculationEnabled()
is the calculation going to be validated when validate() runs |
void |
setDescription(java.lang.String description)
Sets the description of this calculated item. |
void |
setExpression(java.lang.String expression)
Set the String expression representing this calculated item. |
void |
setExpressionType(int type)
Set the Type of the expression representing this calculated item. |
void |
setFormat(java.lang.String format)
Sets the format string for the calculated item |
void |
setId(java.lang.String id)
Sets the unique ID of this calculated item. |
void |
setLabel(java.lang.String label)
Sets the label (human readable name) of this calculated item. |
void |
setName(java.lang.String name)
Deprecated. |
void |
setValidateCalculationEnabled(boolean enableCalculation)
Include the validation of the calculation as part of the required validations that validate() preforms. |
boolean |
validate()
Validates the expression. |
boolean |
validate(boolean includeCalculation)
Validates the expression. |
boolean |
validateCalculation()
call to validate just the calculation text |
Methods inherited from interface com.sas.dataselectors.calculateditems.CalculatedItemMetadataInterface |
---|
getBusinessDataSourceTree, getDataSourceTree, getFunctionListTree, getLevelHasMembers, getLevelNameMap, getLevelNames, getMaxOutputObservations, getMeasureNameMap, getMeasureNames, getMemberNames, getOperationList, getPhysicalDataSourceTree, getPromptDataSourceTree, setMaxOutputObservations |
Field Detail |
---|
static final int CALCITEM_TYPE_NOT_SET
static final int CALCITEM_TYPE_BITSTRING
static final int CALCITEM_TYPE_NUMERIC
static final int CALCITEM_TYPE_CHARACTER
static final int CALCITEM_TYPE_DATE
static final int CALCITEM_TYPE_TIME
static final int CALCITEM_TYPE_TIMESTAMP
static final int CALCITEM_TYPE_INTERVAL_YM
static final int CALCITEM_TYPE_INTERVAL_DT
static final int CALCITEM_TYPE_BOOLEAN
static final int CALCITEM_TYPE_OLAP_MEASURE
static final int CALCITEM_TYPE_OLAP_CATEGORY
Method Detail |
---|
java.lang.String getId()
void setId(java.lang.String id)
name
- the name of this calculated itemjava.lang.String getName()
void setName(java.lang.String name)
name
- the name of this calculated itemjava.lang.String getLabel()
void setLabel(java.lang.String label)
name
- the name of this calculated itemjava.lang.String getDescription()
void setDescription(java.lang.String description)
description
- the description of this calculated itemjava.lang.String getExpression()
void setExpression(java.lang.String expression)
expression
- the String expression to represent the calculated item.int getExpressionType()
void setExpressionType(int type)
type
- An int value defining the expression type (See CALCITEM_TYPE_* constants)boolean commitChanges()
java.lang.String[] getValidExpressionTypeNames()
int[] getValidExpressionTypeValues()
int convertToCalcItemType(int expressionType, boolean isOLAP)
int convertToExpressionType(int calculatedItemType, boolean isOLAP)
java.lang.String getFormat()
void setFormat(java.lang.String format)
The
- format string.void setValidateCalculationEnabled(boolean enableCalculation)
boolean
- false if the required validations are not to include validating the calculation textboolean isValidateCalculationEnabled()
boolean validate()
boolean validate(boolean includeCalculation)
boolean
- if false it will skip validating the calculation text.
boolean validateCalculation()
java.lang.String getLastInvalidCalculatedItemMessage()
java.lang.Exception getLastInvalidExpressionException()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |