mondrian.rolap.aggmatcher
Class ExplicitRules.TableDef.Level

java.lang.Object
  extended by mondrian.rolap.aggmatcher.ExplicitRules.TableDef.Level
Enclosing class:
ExplicitRules.TableDef

 class ExplicitRules.TableDef.Level
extends 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 Summary
ExplicitRules.TableDef.Level(String name, String columnName)
           
 
Method Summary
 String getColumnName()
          Get the foreign key column name of the aggregate table.
 String getName()
          Get the symbolic name, the level name.
 RolapLevel getRolapLevel()
          Get the RolapLevel associated with level name.
 void print(PrintWriter pw, String prefix)
           
 String toString()
           
 void validate(MessageRecorder msgRecorder)
          Validates a level's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExplicitRules.TableDef.Level

ExplicitRules.TableDef.Level(String name,
                             String columnName)
Method Detail

getName

public String getName()
Get the symbolic name, the level name.


getColumnName

public String getColumnName()
Get the foreign key column name of the aggregate 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 String toString()
Overrides:
toString in class Object

print

public void print(PrintWriter pw,
                  String prefix)

SourceForge.net_Logo