|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.ScenarioImpl
public final class ScenarioImpl
Implementation of Scenario.
| Nested Class Summary | |
|---|---|
(package private) static class |
ScenarioImpl.CellRelation
Decribes the relationship between two cells. |
| Constructor Summary | |
|---|---|
ScenarioImpl()
Creates a ScenarioImpl. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
(package private) static Scenario |
forMember(RolapMember member)
Returns the scenario inside a calculated member in the scenario dimension. |
String |
getId()
|
RolapMember |
getMember()
Returns the member of the [Scenario] dimension that represents this scenario. |
int |
hashCode()
|
static boolean |
isScenario(Hierarchy hierarchy)
Returns whether a hierarchy is the [Scenario] hierarchy. |
(package private) void |
register(RolapSchema schema)
Registers this Scenario with a Schema, creating a calulated member [Scenario].[{id}] for each cube that has writeback enabled. |
void |
setCellValue(Connection connection,
List<RolapMember> members,
double newValue,
double currentValue,
AllocationPolicy allocationPolicy,
Object[] allocationArgs)
Sets the value of a cell. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScenarioImpl()
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
public void setCellValue(Connection connection,
List<RolapMember> members,
double newValue,
double currentValue,
AllocationPolicy allocationPolicy,
Object[] allocationArgs)
connection - Connection (not currently used)members - Coordinates of cellnewValue - New valuecurrentValue - Current valueallocationPolicy - Allocation policyallocationArgs - Additional arguments of allocation policypublic String getId()
getId in interface Scenariostatic Scenario forMember(RolapMember member)
member - Wrapper member
void register(RolapSchema schema)
schema - Schemapublic static boolean isScenario(Hierarchy hierarchy)
TODO: use a flag
hierarchy - Hierarchy
public RolapMember getMember()
The result is not null, provided that register(RolapSchema)
has been called.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||