Package mondrian.rolap
Class RolapProperty
- java.lang.Object
-
- mondrian.olap.EnumeratedValues.BasicValue
-
- mondrian.olap.Property
-
- mondrian.rolap.RolapProperty
-
- All Implemented Interfaces:
EnumeratedValues.Value
class RolapProperty extends Property
RolapProperty
is the definition of a member property.- Author:
- jhyde
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.olap.Property
Property.Datatype
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static RolapProperty[]
emptyArray
Array of RolapProperty of length 0.-
Fields inherited from class mondrian.olap.Property
ACTION_TYPE, ACTION_TYPE_ORDINAL, AGGREGATION_TYPE, AGGREGATION_TYPE_ORDINAL, BACK_COLOR, BACK_COLOR_ORDINAL, CAPTION, CAPTION_ORDINAL, CATALOG_NAME, CATALOG_NAME_ORDINAL, CELL_EVALUATION_LIST, CELL_EVALUATION_LIST_ORDINAL, CELL_FORMATTER, CELL_FORMATTER_ORDINAL, CELL_FORMATTER_SCRIPT, CELL_FORMATTER_SCRIPT_LANGUAGE, CELL_FORMATTER_SCRIPT_LANGUAGE_ORDINAL, CELL_FORMATTER_SCRIPT_ORDINAL, CELL_ORDINAL, CELL_ORDINAL_ORDINAL, CHILDREN_CARDINALITY, CHILDREN_CARDINALITY_ORDINAL, CONTRIBUTING_CHILDREN, CONTRIBUTING_CHILDREN_ORDINAL, CUBE_NAME, CUBE_NAME_ORDINAL, DATATYPE, DATATYPE_ORDINAL, DEPTH, DEPTH_ORDINAL, DESCRIPTION, DESCRIPTION_ORDINAL, DIMENSION_UNIQUE_NAME, DIMENSION_UNIQUE_NAME_ORDINAL, DISPLAY_FOLDER, DISPLAY_FOLDER_ORDINAL, DISPLAY_INFO, DISPLAY_INFO_ORDINAL, DRILLTHROUGH_COUNT, DRILLTHROUGH_COUNT_ORDINAL, enumeration, FONT_FLAGS, FONT_FLAGS_ORDINAL, FONT_NAME, FONT_NAME_ORDINAL, FONT_SIZE, FONT_SIZE_ORDINAL, FORE_COLOR, FORE_COLOR_ORDINAL, FORMAT_EXP, FORMAT_EXP_ORDINAL, FORMAT_EXP_PARSED, FORMAT_EXP_PARSED_ORDINAL, FORMAT_STRING, FORMAT_STRING_ORDINAL, FORMATTED_VALUE, FORMATTED_VALUE_ORDINAL, FORMULA, FORMULA_ORDINAL, HIERARCHY_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME_ORDINAL, KEY, KEY_ORDINAL, LANGUAGE, LANGUAGE_ORDINAL, LEVEL_NUMBER, LEVEL_NUMBER_ORDINAL, LEVEL_UNIQUE_NAME, LEVEL_UNIQUE_NAME_ORDINAL, mapUpperNameToProperties, MEMBER_CAPTION, MEMBER_CAPTION_ORDINAL, MEMBER_GUID, MEMBER_GUID_ORDINAL, MEMBER_KEY, MEMBER_KEY_ORDINAL, MEMBER_NAME, MEMBER_NAME_ORDINAL, MEMBER_ORDINAL, MEMBER_ORDINAL_ORDINAL, MEMBER_SCOPE, MEMBER_SCOPE_ORDINAL, MEMBER_TYPE, MEMBER_TYPE_ORDINAL, MEMBER_UNIQUE_NAME, MEMBER_UNIQUE_NAME_ORDINAL, NAME, NAME_ORDINAL, NON_EMPTY_BEHAVIOR, NON_EMPTY_BEHAVIOR_ORDINAL, PARENT_COUNT, PARENT_COUNT_ORDINAL, PARENT_LEVEL, PARENT_LEVEL_ORDINAL, PARENT_UNIQUE_NAME, PARENT_UNIQUE_NAME_ORDINAL, SCENARIO, SCENARIO_ORDINAL, SCHEMA_NAME, SCHEMA_NAME_ORDINAL, SOLVE_ORDER, SOLVE_ORDER_ORDINAL, VALUE, VALUE_ORDINAL, VISIBLE, VISIBLE_ORDINAL
-
Fields inherited from class mondrian.olap.EnumeratedValues.BasicValue
description, name, ordinal
-
-
Constructor Summary
Constructors Constructor Description RolapProperty(java.lang.String name, Property.Datatype type, MondrianDef.Expression exp, PropertyFormatter formatter, java.lang.String caption, java.lang.Boolean dependsOnLevelValue, boolean internal, java.lang.String description)
Creates a RolapProperty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dependsOnLevelValue()
java.lang.String
getCaption()
Returns the caption of this property.(package private) MondrianDef.Expression
getExp()
PropertyFormatter
getFormatter()
-
Methods inherited from class mondrian.olap.Property
getType, isCellProperty, isInternal, isMemberProperty, isStandard, lookup, lookup
-
Methods inherited from class mondrian.olap.EnumeratedValues.BasicValue
equals, getDescription, getName, getOrdinal, toString, unexpected
-
-
-
-
Field Detail
-
emptyArray
static final RolapProperty[] emptyArray
Array of RolapProperty of length 0.
-
-
Constructor Detail
-
RolapProperty
RolapProperty(java.lang.String name, Property.Datatype type, MondrianDef.Expression exp, PropertyFormatter formatter, java.lang.String caption, java.lang.Boolean dependsOnLevelValue, boolean internal, java.lang.String description)
Creates a RolapProperty.- Parameters:
name
- Name of propertytype
- Datatypeexp
- Expression for property's value; often a literalformatter
- A property formatter, or nullcaption
- CaptiondependsOnLevelValue
- Whether the property is functionally dependent on the level with which it is associatedinternal
- Whether property is internal
-
-
Method Detail
-
getExp
MondrianDef.Expression getExp()
-
getFormatter
public PropertyFormatter getFormatter()
- Overrides:
getFormatter
in classProperty
-
getCaption
public java.lang.String getCaption()
Description copied from class:Property
Returns the caption of this property.- Overrides:
getCaption
in classProperty
- Returns:
- Returns the caption.
-
dependsOnLevelValue
public boolean dependsOnLevelValue()
- Returns:
Returns the dependsOnLevelValue setting (if unset, returns false). This indicates whether the property is functionally dependent on the level with which it is associated.
If true, then the property column can be eliminated from the GROUP BY clause for queries on certain databases such as MySQL.
-
-