mondrian.rolap.aggmatcher
Class ExplicitRules.Group

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

public static class ExplicitRules.Group
extends Object

This class forms a collection of aggregate table explicit rules for a given cube.

 

Constructor Summary
ExplicitRules.Group(RolapCube cube)
           
 
Method Summary
 void addExclude(mondrian.rolap.aggmatcher.ExplicitRules.Exclude exclude)
          Add an exclude rule.
 void addTableDef(ExplicitRules.TableDef tableDef)
          Add a name or pattern (table) rule.
 boolean excludeTable(String tableName)
          Returns whether the given tableName is excluded.
 String getCatalogName()
          Get the database catalog name associated with this Group's RolapStar's fact table.
 RolapCube getCube()
          Get the RolapCube associated with this Group.
 ExplicitRules.TableDef getIncludeByTableDef(String tableName)
          Is the given tableName included either by exact name or by pattern.
 String getName()
          Get the name of this Group (its the name of its RolapCube).
 String getSchemaName()
          Get the database schema name associated with this Group's RolapStar's fact table.
 RolapStar getStar()
          Get the RolapStar associated with this Group's RolapCube.
 String getTableName()
          Get the database table name associated with this Group's RolapStar's fact table.
 boolean hasRules()
          Are there any rules associated with this Group.
static ExplicitRules.Group make(RolapCube cube, MondrianDef.Cube xmlCube)
          Make an ExplicitRules.Group for a given RolapCube given the MondrianDef.Cube associated with that cube.
 void print(PrintWriter pw, String prefix)
           
 String toString()
           
 void validate(MessageRecorder msgRecorder)
          Validate the content and structure of this Group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExplicitRules.Group

public ExplicitRules.Group(RolapCube cube)
Method Detail

make

public static ExplicitRules.Group make(RolapCube cube,
                                       MondrianDef.Cube xmlCube)
Make an ExplicitRules.Group for a given RolapCube given the MondrianDef.Cube associated with that cube.


getCube

public RolapCube getCube()
Get the RolapCube associated with this Group.


getStar

public RolapStar getStar()
Get the RolapStar associated with this Group's RolapCube.


getName

public String getName()
Get the name of this Group (its the name of its RolapCube).


hasRules

public boolean hasRules()
Are there any rules associated with this Group.


addExclude

public void addExclude(mondrian.rolap.aggmatcher.ExplicitRules.Exclude exclude)
Add an exclude rule.

Parameters:
exclude -

addTableDef

public void addTableDef(ExplicitRules.TableDef tableDef)
Add a name or pattern (table) rule.

Parameters:
tableDef -

excludeTable

public boolean excludeTable(String tableName)
Returns whether the given tableName is excluded.


getIncludeByTableDef

public ExplicitRules.TableDef getIncludeByTableDef(String tableName)
Is the given tableName included either by exact name or by pattern.


getTableName

public String getTableName()
Get the database table name associated with this Group's RolapStar's fact table.


getSchemaName

public String getSchemaName()
Get the database schema name associated with this Group's RolapStar's fact table.


getCatalogName

public String getCatalogName()
Get the database catalog name associated with this Group's RolapStar's fact table. Note: this currently this always returns null.


validate

public void validate(MessageRecorder msgRecorder)
Validate the content and structure of this Group.


toString

public String toString()
Overrides:
toString in class Object

print

public void print(PrintWriter pw,
                  String prefix)

SourceForge.net_Logo