com.tonbeller.jpivot.xmla
Class XMLA_PlaceHierarchies

java.lang.Object
  extended by com.tonbeller.jpivot.core.ExtensionSupport
      extended by com.tonbeller.jpivot.xmla.XMLA_PlaceHierarchies
All Implemented Interfaces:
Extension, PlaceHierarchiesOnAxes
Direct Known Subclasses:
XMLA_PlaceMembers

public class XMLA_PlaceHierarchies
extends ExtensionSupport
implements PlaceHierarchiesOnAxes

XMLA Place Hierarchies


Field Summary
 
Fields inherited from interface com.tonbeller.jpivot.olap.navi.PlaceHierarchiesOnAxes
ID
 
Constructor Summary
XMLA_PlaceHierarchies()
          Constructor sets ID
 
Method Summary
 java.lang.Object createMemberExpression(Hierarchy hier)
          finds the expression that generates members for hier.
 boolean getExpandAllMember()
          return the "expand All member" flag
 void setExpandAllMember(boolean expandAllMember)
          set the "expand All member" flag if this flag is set and an "All" memper is put onto an axis, the children of the All member will be added as well.
 void setQueryAxis(Axis target, java.lang.Object[] memberExpressions)
          sets the MemberExpressions for an Axis.
 
Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport
decorate, getId, getModel, modelInitialized, setId, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tonbeller.jpivot.core.Extension
decorate, getId, modelInitialized, setModel
 

Constructor Detail

XMLA_PlaceHierarchies

public XMLA_PlaceHierarchies()
Constructor sets ID

Method Detail

createMemberExpression

public java.lang.Object createMemberExpression(Hierarchy hier)
Description copied from interface: PlaceHierarchiesOnAxes
finds the expression that generates members for hier. If hier is used in the query, the expression from the query should be returned, so the navigation position remains unchanged. If the hierarchy is not used in the query, a new expression is created that selects the root members of the hierarchy.

Specified by:
createMemberExpression in interface PlaceHierarchiesOnAxes
Returns:
a member expression
See Also:
PlaceHierarchiesOnAxes.createMemberExpression(Hierarchy)

setQueryAxis

public void setQueryAxis(Axis target,
                         java.lang.Object[] memberExpressions)
Description copied from interface: PlaceHierarchiesOnAxes
sets the MemberExpressions for an Axis. The axis definition is replaced by the memberExpressions.

Specified by:
setQueryAxis in interface PlaceHierarchiesOnAxes
See Also:
PlaceHierarchiesOnAxes.setQueryAxis(Axis, Object[])

setExpandAllMember

public void setExpandAllMember(boolean expandAllMember)
Description copied from interface: PlaceHierarchiesOnAxes
set the "expand All member" flag if this flag is set and an "All" memper is put onto an axis, the children of the All member will be added as well.

Specified by:
setExpandAllMember in interface PlaceHierarchiesOnAxes
See Also:
PlaceHierarchiesOnAxes.setExpandAllMember

getExpandAllMember

public boolean getExpandAllMember()
Description copied from interface: PlaceHierarchiesOnAxes
return the "expand All member" flag

Specified by:
getExpandAllMember in interface PlaceHierarchiesOnAxes
See Also:
PlaceHierarchiesOnAxes.getExpandAllMember