mondrian.rolap.aggmatcher
Class DefaultDef.AggRules

java.lang.Object
  extended by org.eigenbase.xom.ElementDef
      extended by mondrian.rolap.aggmatcher.DefaultDef.AggRules
All Implemented Interfaces:
Serializable, Cloneable, NodeDef
Enclosing class:
DefaultDef

public static class DefaultDef.AggRules
extends ElementDef

The set of "named" rules for matching aggregate tables. Only one rule can be applied to a given connection. In addition, one rule must be set as the default - this rule is always the choice when not selecting by name. It is very important that the AggRules validate method is called prior to using any of the object.

See Also:
Serialized Form
 

Field Summary
 DefaultDef.AggRule[] aggRules
          All AggRules (at least one).
 DefaultDef.FactCountMatch[] factCountMatches
          All shared FactCountMatches.
 DefaultDef.ForeignKeyMatch[] foreignKeyMatches
          All shared ForeignKeyMatches.
 DefaultDef.IgnoreMap[] ignoreMaps
          All shared IgnoreMap.
 DefaultDef.LevelMap[] levelMaps
          All shared LevelMap.
 DefaultDef.MeasureMap[] measureMaps
          All shared MeasureMap.
 DefaultDef.TableMatch[] tableMatches
          All shared TableMatches.
 String tag
           
 
Constructor Summary
DefaultDef.AggRules()
           
DefaultDef.AggRules(DOMWrapper _def)
           
 
Method Summary
 void display(PrintWriter _out, int _indent)
           
 boolean displayDiff(ElementDef _other, PrintWriter _out, int _indent)
           
 void displayXML(XMLOutput _out, int _indent)
           
 DefaultDef.AggRule getAggRule(String tag)
           
 DefaultDef.AggRule[] getAggRules()
           
 DefaultDef.FactCountMatch[] getFactCountMatches()
           
 DefaultDef.ForeignKeyMatch[] getForeignKeyMatches()
           
 DefaultDef.IgnoreMap[] getIgnoreMaps()
           
 DefaultDef.LevelMap[] getLevelMaps()
           
protected static org.apache.log4j.Logger getLogger()
           
 DefaultDef.MeasureMap[] getMeasureMaps()
           
 String getName()
           
 DefaultDef.TableMatch[] getTableMatches()
           
 String getTag()
           
 boolean hasAggRule(String id)
           
 boolean hasFactCountMatch(String id)
           
 boolean hasForeignKeyMatch(String id)
           
 boolean hasIgnoreMap(String id)
           
 boolean hasLevelMap(String id)
           
 boolean hasMeasureMap(String id)
           
 boolean hasTableMatch(String id)
           
 DefaultDef.AggRule lookupAggRule(String id)
           
 DefaultDef.FactCountMatch lookupFactCountMatch(String id)
           
 DefaultDef.ForeignKeyMatch lookupForeignKeyMatch(String id)
           
 DefaultDef.IgnoreMap lookupIgnoreMap(String id)
           
 DefaultDef.LevelMap lookupLevelMap(String id)
           
 DefaultDef.MeasureMap lookupMeasureMap(String id)
           
 DefaultDef.TableMatch lookupTableMatch(String id)
           
 void validate(MessageRecorder msgRecorder)
           
 
Methods inherited from class org.eigenbase.xom.ElementDef
addChild, addChildren, clone, constructElement, constructElement, deepCopy, diff, displayAttribute, displayAttributeDiff, displayElement, displayElementArray, displayElementArrayDiff, displayElementDiff, displayIndent, displayString, displayStringArray, displayStringArrayDiff, displayStringDiff, displayXML, displayXMLElement, displayXMLElementArray, displayXMLString, displayXMLStringArray, equals, getChildren, getElementChildren, getElementClass, getMixedChildren_new, getMixedChildren, getText, getType, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqual
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

tag

public String tag

tableMatches

public DefaultDef.TableMatch[] tableMatches
All shared TableMatches.


factCountMatches

public DefaultDef.FactCountMatch[] factCountMatches
All shared FactCountMatches.


foreignKeyMatches

public DefaultDef.ForeignKeyMatch[] foreignKeyMatches
All shared ForeignKeyMatches.


levelMaps

public DefaultDef.LevelMap[] levelMaps
All shared LevelMap.


measureMaps

public DefaultDef.MeasureMap[] measureMaps
All shared MeasureMap.


ignoreMaps

public DefaultDef.IgnoreMap[] ignoreMaps
All shared IgnoreMap.


aggRules

public DefaultDef.AggRule[] aggRules
All AggRules (at least one). Also, one of them must be marked with default=true.

Constructor Detail

DefaultDef.AggRules

public DefaultDef.AggRules()

DefaultDef.AggRules

public DefaultDef.AggRules(DOMWrapper _def)
                    throws XOMException
Throws:
XOMException
Method Detail

getName

public String getName()
Specified by:
getName in interface NodeDef
Overrides:
getName in class ElementDef

display

public void display(PrintWriter _out,
                    int _indent)

displayXML

public void displayXML(XMLOutput _out,
                       int _indent)
Specified by:
displayXML in interface NodeDef
Overrides:
displayXML in class ElementDef

displayDiff

public boolean displayDiff(ElementDef _other,
                           PrintWriter _out,
                           int _indent)
Overrides:
displayDiff in class ElementDef

getLogger

protected static org.apache.log4j.Logger getLogger()

getTag

public String getTag()

getAggRule

public DefaultDef.AggRule getAggRule(String tag)

validate

public void validate(MessageRecorder msgRecorder)

hasIgnoreMap

public boolean hasIgnoreMap(String id)

lookupIgnoreMap

public DefaultDef.IgnoreMap lookupIgnoreMap(String id)

hasFactCountMatch

public boolean hasFactCountMatch(String id)

lookupFactCountMatch

public DefaultDef.FactCountMatch lookupFactCountMatch(String id)

hasForeignKeyMatch

public boolean hasForeignKeyMatch(String id)

lookupForeignKeyMatch

public DefaultDef.ForeignKeyMatch lookupForeignKeyMatch(String id)

hasTableMatch

public boolean hasTableMatch(String id)

lookupTableMatch

public DefaultDef.TableMatch lookupTableMatch(String id)

hasLevelMap

public boolean hasLevelMap(String id)

lookupLevelMap

public DefaultDef.LevelMap lookupLevelMap(String id)

hasMeasureMap

public boolean hasMeasureMap(String id)

lookupMeasureMap

public DefaultDef.MeasureMap lookupMeasureMap(String id)

hasAggRule

public boolean hasAggRule(String id)

lookupAggRule

public DefaultDef.AggRule lookupAggRule(String id)

getIgnoreMaps

public DefaultDef.IgnoreMap[] getIgnoreMaps()

getFactCountMatches

public DefaultDef.FactCountMatch[] getFactCountMatches()

getForeignKeyMatches

public DefaultDef.ForeignKeyMatch[] getForeignKeyMatches()

getTableMatches

public DefaultDef.TableMatch[] getTableMatches()

getLevelMaps

public DefaultDef.LevelMap[] getLevelMaps()

getMeasureMaps

public DefaultDef.MeasureMap[] getMeasureMaps()

getAggRules

public DefaultDef.AggRule[] getAggRules()

SourceForge.net_Logo