|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.AWXML.BaseObject | +--oracle.AWXML.SolveDefinition | +--oracle.AWXML.AllocationDefinition
A SolveDefinition
that specifies allocation instructions for an AllocationSolve
. For a diagram of AllocationDefinition
associations, see AllocationDefinition Class Associations.
An AllocationDefinition
is owned by a Cube
. An AllocationDefinition
owns an ordered list of Allocation
objects, each of which specifies an allocation statement for a dimension hierarchy. Oracle OLAP performs the calculations in the order in which they appear in the calculation list. AllocationHierarchySpecification
, which extends Allocation
, specifies the hierarchy. An Allocation
also owns an AllocationOperator
, and it can own one or more AllocationArgument
objects.
An AllocationDefinition
is implemented in the OLAP DML as an aggmap object of type ALLOCMAP
. This type of aggmap specifies the rules for allocating hierarchically dimensioned data to the cells of a target. An Allocation
is implemented in the OLAP DML as a RELATION
statement in the aggmap.
The AllocationDefinition
class includes methods for specifying CHILDLOCK
, DEADLOCK
, and SOURCEVAL
statements in the allocation specification. The CHILDLOCK
statement specifies whether to detect locks on child elements in a hierarchy when the parent elements are also locked, a condition that can cause incorrect allocation results. A DEADLOCK
statement specifies whether to continue an allocation when a targeted cell is locked or has a value of NA. A SOURCEVAL
statement specifies the value to assign to source cells after the source values have been allocated to a target.
For more information on OLAP allocation, see the OLAP DML Reference and the OLAP Application Developer's Guide.
AllocationSolve
Fields inherited from class oracle.AWXML.BaseObject |
DATABASENULL |
Constructor Summary | |
AllocationDefinition(BaseObject input) Creates an AllocationDefinition for the specified Cube . |
Method Summary | |
void |
addAllocation(Allocation input) Adds the specified Allocation to the AllocationDefinition , and appends it to the end of the calculation list. |
void |
addAllocationAfter(Allocation input, BaseObject reference) Adds the specified Allocation to the AllocationDefinition , and inserts it after the referenced Allocation in the calculation list. |
void |
addAllocationBefore(Allocation input, BaseObject reference) Adds the specified Allocation to the AllocationDefinition , and inserts it before the referenced Allocation in the calculation list. |
void |
addAllocationFirst(Allocation input) Adds the specified Allocation to the AllocationDefinition , and puts it at the beginning of the calculation list. |
java.lang.String |
Create(AWConnection connection) Creates the AllocationDefinition in the current analytic workspace of the specified database connection. |
AllocationHierarchySpecification |
createAllocateHierarchySpecification() Creates an AllocationHierarchySpecification for the AllocationDefinition , and appends it to the end of the calculation list. |
AllocationHierarchySpecification |
createAllocateHierarchySpecificationAfter(Allocation input) Creates an AllocationHierarchySpecification for the AllocationDefinition , and inserts it after the specified Allocation in the calculation list. |
AllocationHierarchySpecification |
createAllocateHierarchySpecificationBefore(Allocation input) Creates an AllocationHierarchySpecification for the AllocationDefinition , and inserts it before the specified Allocation in the calculation list. |
AllocationHierarchySpecification |
createAllocateHierarchySpecificationFirst() Creates an AllocationHierarchySpecification and inserts it at the beginning of the calculation list. |
java.lang.String |
Delete(AWConnection connection) Deletes the AllocationDefinition in the current analytic workspace of the specified database connection. |
java.util.Vector |
getAllocations() Gets the ordered list of Allocation objects in the AllocationDefinition . |
java.lang.String |
getChildLock() Gets the value of the CHILDLOCK statement in the allocation specification. |
java.lang.String |
getDeadLock() Gets the value of the DEADLOCK statement in the allocation specification. |
java.lang.String |
getSourceVal() Gets the value of the SOURCEVAL statement in the allocation specification. |
void |
readAWDefinitions(AWConnection connection, boolean readType) Reads the objects owned by the AllocationDefinition into memory, making them available for processing within the current analytic workspace of the specified database connection. |
void |
removeAllocation(Allocation input) Removes an Allocation from the AllocationDefinition . |
void |
setChildLock(java.lang.String input) Specifies the CHILDLOCK statement in the allocation specification. |
void |
setDeadLock(java.lang.String input) Specifies the value of the DEADLOCK statement in the allocation specification. |
void |
setSourceVal(java.lang.String input) Specifies the value of the SOURCEVAL statement in the allocation specification. |
java.lang.String |
WriteToXML() Gets an XML representation of the AllocationDefinition . |
Methods inherited from class oracle.AWXML.BaseObject |
Alter, CreateAfter, CreateBefore, CreateFirst, DataRead, getColumnName, getId, getLongName, getLongName, getName, getOwner, getPluralName, getPluralName, getSchema, getShortName, getShortName, setColumnName, setLongName, setLongName, setName, setPluralName, setPluralName, setSchema, setShortName, setShortName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AllocationDefinition(BaseObject input)
AllocationDefinition
for the specified Cube
.input
- The Cube
that owns the AllocationDefinition
.Method Detail |
public java.lang.String getSourceVal()
SOURCEVAL
statement in the allocation specification. The SOURCEVAL
statement determines the value that the OLAP DML ALLOCATE
command assigns to a source cell after successfully allocating its original value to a target. The value of the SOURCEVAL
statement can be CURRENT
, ZERO
, or NA
.String
that contains the value of the SOURCEVAL
statement.public void setSourceVal(java.lang.String input)
SOURCEVAL
statement in the allocation specification. The SOURCEVAL
statement determines the data value that the OLAP DML ALLOCATE
command assigns to a source cell after successfully allocating its original value to a target.
The SOURCEVAL
statement can have one of the following values:
CURRENT
, which specifies that the value of a source cell after the allocation is the same as its value before the allocation. This is the default SOURCEVAL
value.ZERO
, which specifies that the value of a source cell after the allocation is zero.NA
, which specifies that the value of the source cell after the allocation is NA.input
- The value that you want the SOURCEVAL
statement to have.public java.lang.String getDeadLock()
DEADLOCK
statement in the allocation specification. The DEADLOCK
statement determines the behavior of the OLAP DML ALLOCATE
command when it cannot distribute a source value to a target cell because the target cell is either locked or has a basis value of NA. The value of the DEADLOCK
statement can be SKIP
or NOSKIP
.String
that contains the value of the DEADLOCK
statement.public void setDeadLock(java.lang.String input)
DEADLOCK
statement in the allocation specification. The DEADLOCK
statement determines the behavior of the OLAP DML ALLOCATE
command when it cannot distribute a source value to a target cell because the target cell is either locked or has a basis value of NA.
DEADLOCK
can have one of the following values:
SKIP
, which specifies logging the error and continuing the allocation. This is the default value.NOSKIP
, which specifies stopping the allocation and returning an error.input
- The value that you want the DEADLOCK
statement to have.public java.lang.String getChildLock()
CHILDLOCK
statement in the allocation specification. The CHILDLOCK
statement specifies the behavior of the OLAP DML ALLOCATE
command when both a parent and a child within a hierarchy are locked. Locking both a parent and one of its children can cause incorrect allocation results. The value of the CHILDLOCK
statement can be DETECT
or NODETECT
.String
that contains the value of the CHILDLOCK
statement.public void setChildLock(java.lang.String input)
CHILDLOCK
statement in the allocation specification.
The CHILDLOCK
statement specifies the behavior of the OLAP DML ALLOCATE
command when both a parent and a child within a hierarchy are locked. Locking both a parent and one of its children can cause incorrect allocation results.
The value of the CHILDLOCK
statement can be one of the following:
DETECT
, which specifies detecting the condition and making an entry in the error log. This is the default value.NODETECT
, which specifies ignoring the condition.input
- The value that you want the CHILDLOCK
statement to have.public java.lang.String WriteToXML()
AllocationDefinition
.String
that represents the AllocationDefinition
.public void addAllocation(Allocation input)
Allocation
to the AllocationDefinition
, and appends it to the end of the calculation list.input
- The Allocation
to add.public void addAllocationAfter(Allocation input, BaseObject reference)
Allocation
to the AllocationDefinition
, and inserts it after the referenced Allocation
in the calculation list.input
- The Allocation
to add.reference
- The referenced Allocation
.public void addAllocationBefore(Allocation input, BaseObject reference)
Allocation
to the AllocationDefinition
, and inserts it before the referenced Allocation
in the calculation list.input
- The Allocation
to add.reference
- The referenced Allocation
.public void addAllocationFirst(Allocation input)
Allocation
to the AllocationDefinition
, and puts it at the beginning of the calculation list.input
- The Allocation
to add.public void removeAllocation(Allocation input)
Allocation
from the AllocationDefinition
.input
- The Allocation
to remove.public java.util.Vector getAllocations()
Allocation
objects in the AllocationDefinition
.Vector
of Allocation
objects.public AllocationHierarchySpecification createAllocateHierarchySpecification()
AllocationHierarchySpecification
for the AllocationDefinition
, and appends it to the end of the calculation list.AllocationHierarchySpecification
.public AllocationHierarchySpecification createAllocateHierarchySpecificationAfter(Allocation input)
AllocationHierarchySpecification
for the AllocationDefinition
, and inserts it after the specified Allocation
in the calculation list.input
- The referenced Allocation
.AllocationHierarchySpecification
.public AllocationHierarchySpecification createAllocateHierarchySpecificationBefore(Allocation input)
AllocationHierarchySpecification
for the AllocationDefinition
, and inserts it before the specified Allocation
in the calculation list.input
- The referenced Allocation
.AllocationHierarchySpecification
.public AllocationHierarchySpecification createAllocateHierarchySpecificationFirst()
AllocationHierarchySpecification
and inserts it at the beginning of the calculation list.AllocationHierarchySpecification
.public java.lang.String Create(AWConnection connection)
AllocationDefinition
in the current analytic workspace of the specified database connection.connection
- The AWConnection
that specifies the database connection.String
that contains success
.public java.lang.String Delete(AWConnection connection)
AllocationDefinition
in the current analytic workspace of the specified database connection.connection
- The AWConnection
that specifies the database connection.String
that contains success
.public void readAWDefinitions(AWConnection connection, boolean readType)
AllocationDefinition
into memory, making them available for processing within the current analytic workspace of the specified database connection.connection
- The AWConnection
that specifies the database connection.readType
- Specify True
to read the AllocationSpecification
and all its child objects. Specify False
to read the AllocationSpecification
but omit specific child objects.
|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |