mondrian.rolap.aggmatcher
Class DefaultDef.AggRule

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

public static class DefaultDef.AggRule
extends DefaultDef.Base

A RolapConnection uses one AggRule. If no name is specified, then the AggRule which is marked as default==true is used (validation fails if one and only one AggRule is not marked as the default). An AggRule has manditory child elements for matching the aggregate table names, aggregate table fact count column, foreign key columns, the measure columns, and the hierarchy level columns. These child elements can be specified as direct children of an AggRule element or by reference to elements defined as a pier to the AggRule (using references allows reuse of the child elements and with one quick edit the reference to use can be changed by changing the refid attribute value).

See Also:
Serialized Form
 

Field Summary
 String countColumn
           
 DefaultDef.FactCountMatch factCountMatch
           
 DefaultDef.FactCountMatchRef factCountMatchRef
           
 DefaultDef.ForeignKeyMatch foreignKeyMatch
           
 DefaultDef.ForeignKeyMatchRef foreignKeyMatchRef
           
 DefaultDef.IgnoreMap ignoreMap
           
 DefaultDef.IgnoreMapRef ignoreMapRef
           
 DefaultDef.LevelMap levelMap
           
 DefaultDef.LevelMapRef levelMapRef
           
 DefaultDef.MeasureMap measureMap
           
 DefaultDef.MeasureMapRef measureMapRef
           
 DefaultDef.TableMatch tableMatch
           
 DefaultDef.TableMatchRef tableMatchRef
           
 String tag
           
 
Fields inherited from class mondrian.rolap.aggmatcher.DefaultDef.Base
enabled
 
Constructor Summary
DefaultDef.AggRule()
           
DefaultDef.AggRule(DOMWrapper _def)
           
 
Method Summary
 void display(PrintWriter _out, int _indent)
           
 boolean displayDiff(ElementDef _other, PrintWriter _out, int _indent)
           
 void displayXML(XMLOutput _out, int _indent)
           
 String getCountColumn()
           
 DefaultDef.FactCountMatch getFactCountMatch()
           
 DefaultDef.ForeignKeyMatch getForeignKeyMatch()
           
 DefaultDef.IgnoreMap getIgnoreMap()
           
 DefaultDef.LevelMap getLevelMap()
           
 DefaultDef.MeasureMap getMeasureMap()
           
 String getName()
           
 DefaultDef.TableMatch getTableMatch()
           
 String getTag()
           
 void validate(DefaultDef.AggRules rules, MessageRecorder msgRecorder)
           
 
Methods inherited from class mondrian.rolap.aggmatcher.DefaultDef.Base
isEnabled
 
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

countColumn

public String countColumn

ignoreMap

public DefaultDef.IgnoreMap ignoreMap

ignoreMapRef

public DefaultDef.IgnoreMapRef ignoreMapRef

factCountMatch

public DefaultDef.FactCountMatch factCountMatch

factCountMatchRef

public DefaultDef.FactCountMatchRef factCountMatchRef

foreignKeyMatch

public DefaultDef.ForeignKeyMatch foreignKeyMatch

foreignKeyMatchRef

public DefaultDef.ForeignKeyMatchRef foreignKeyMatchRef

tableMatch

public DefaultDef.TableMatch tableMatch

tableMatchRef

public DefaultDef.TableMatchRef tableMatchRef

levelMap

public DefaultDef.LevelMap levelMap

levelMapRef

public DefaultDef.LevelMapRef levelMapRef

measureMap

public DefaultDef.MeasureMap measureMap

measureMapRef

public DefaultDef.MeasureMapRef measureMapRef
Constructor Detail

DefaultDef.AggRule

public DefaultDef.AggRule()

DefaultDef.AggRule

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

getName

public String getName()
Specified by:
getName in interface NodeDef
Overrides:
getName in class DefaultDef.Base

display

public void display(PrintWriter _out,
                    int _indent)
Specified by:
display in interface NodeDef
Overrides:
display in class DefaultDef.Base

displayXML

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

displayDiff

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

validate

public void validate(DefaultDef.AggRules rules,
                     MessageRecorder msgRecorder)
Specified by:
validate in class DefaultDef.Base

getTag

public String getTag()
Specified by:
getTag in class DefaultDef.Base

getCountColumn

public String getCountColumn()

getFactCountMatch

public DefaultDef.FactCountMatch getFactCountMatch()

getForeignKeyMatch

public DefaultDef.ForeignKeyMatch getForeignKeyMatch()

getTableMatch

public DefaultDef.TableMatch getTableMatch()

getLevelMap

public DefaultDef.LevelMap getLevelMap()

getMeasureMap

public DefaultDef.MeasureMap getMeasureMap()

getIgnoreMap

public DefaultDef.IgnoreMap getIgnoreMap()

SourceForge.net_Logo