Class ScenarioImpl

  • All Implemented Interfaces:
    org.olap4j.Scenario

    public final class ScenarioImpl
    extends Object
    implements org.olap4j.Scenario
    Implementation of Scenario.
    Since:
    24 April, 2009
    Author:
    jhyde
    • Constructor Detail

      • ScenarioImpl

        public ScenarioImpl()
        Creates a ScenarioImpl.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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 cell
        newValue - New value
        currentValue - Current value
        allocationPolicy - Allocation policy
        allocationArgs - Additional arguments of allocation policy
      • getId

        public String getId()
        Specified by:
        getId in interface org.olap4j.Scenario
      • isScenario

        public static boolean isScenario​(Hierarchy hierarchy)
        Returns whether a hierarchy is the [Scenario] hierarchy.

        TODO: use a flag

        Parameters:
        hierarchy - Hierarchy
        Returns:
        Whether hierarchy is the scenario hierarchy
      • getMember

        public RolapMember 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