Package mondrian.rolap
Class ScenarioImpl
java.lang.Object
mondrian.rolap.ScenarioImpl
- All Implemented Interfaces:
org.olap4j.Scenario
Implementation of
Scenario.- Since:
- 24 April, 2009
- Author:
- jhyde
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Returns the member of the [Scenario] dimension that represents this scenario.inthashCode()static booleanisScenario(Hierarchy hierarchy) Returns whether a hierarchy is the [Scenario] hierarchy.voidsetCellValue(Connection connection, List<RolapMember> members, double newValue, double currentValue, org.olap4j.AllocationPolicy allocationPolicy, Object[] allocationArgs) Sets the value of a cell.toString()
-
Constructor Details
-
ScenarioImpl
public ScenarioImpl()Creates a ScenarioImpl.
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
setCellValue
public void setCellValue(Connection connection, List<RolapMember> members, double newValue, double currentValue, org.olap4j.AllocationPolicy allocationPolicy, Object[] allocationArgs) Sets the value of a cell.- Parameters:
connection- Connection (not currently used)members- Coordinates of cellnewValue- New valuecurrentValue- Current valueallocationPolicy- Allocation policyallocationArgs- Additional arguments of allocation policy
-
getId
- Specified by:
getIdin interfaceorg.olap4j.Scenario
-
isScenario
Returns whether a hierarchy is the [Scenario] hierarchy.TODO: use a flag
- Parameters:
hierarchy- Hierarchy- Returns:
- Whether hierarchy is the scenario hierarchy
-
getMember
Returns the member of the [Scenario] dimension that represents this scenario. Including that member in the slicer will automatically use this scenario.The result is not null, provided that
register(RolapSchema)has been called.- Returns:
- Scenario member
-