Class ExplicitRules.TableDef.Level

  • Enclosing class:
    ExplicitRules.TableDef

    class ExplicitRules.TableDef.Level
    extends java.lang.Object
    This class is used to map from a Level's symbolic name, [Time].[Year] to the aggregate table's column name, TIME_YEAR.
    • Constructor Detail

      • Level

        Level​(java.lang.String name,
              java.lang.String columnName,
              boolean collapsed,
              java.lang.String ordinalColumn,
              java.lang.String captionColumn,
              MondrianDef.AggLevelProperty[] properties)
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the symbolic name, the level name.
      • getColumnName

        public java.lang.String getColumnName()
        Get the foreign key column name of the aggregate table.
      • isCollapsed

        public boolean isCollapsed()
        Returns whether this level is collapsed (includes parent levels in the agg table).
      • getRolapLevel

        public RolapLevel getRolapLevel()
        Get the RolapLevel associated with level name.
      • validate

        public void validate​(MessageRecorder msgRecorder)
        Validates a level's name.

        The level name must be of the form [hierarchy usage name].[level name].

        This method checks that is of length 2, starts with a hierarchy and the "level name" exists.

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • print

        public void print​(java.io.PrintWriter pw,
                          java.lang.String prefix)
      • getOrdinalColumn

        public java.lang.String getOrdinalColumn()
      • getCaptionColumn

        public java.lang.String getCaptionColumn()
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()