Class RolapProperty

  • All Implemented Interfaces:
    EnumeratedValues.Value

    class RolapProperty
    extends Property
    RolapProperty is the definition of a member property.
    Author:
    jhyde
    • 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 property
        type - Datatype
        exp - Expression for property's value; often a literal
        formatter - A property formatter, or null
        caption - Caption
        dependsOnLevelValue - Whether the property is functionally dependent on the level with which it is associated
        internal - Whether property is internal
    • Method Detail

      • getCaption

        public java.lang.String getCaption()
        Description copied from class: Property
        Returns the caption of this property.
        Overrides:
        getCaption in class Property
        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.