|
Oracle® OLAP Java API Reference 10g Release 2 (10.2) B14348-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.olapi.data.source.Assignment
An object that belongs to a Model
and that represents a calculation, a set of Source
elements, and a precedence. When Oracle OLAP applies a Model
to an associated Source
, the Assignment
objects of the Model
modify the values of that Source
.
The calculation of an Assignment
is specified by its assigned
Source
. Its set of Source
elements are represented by its Qualification
objects, and its precedence is indicated by an integer.
A Qualification
specifies a Source
and an element of that Source
. The Source
specified by a Qualification
is its qualified Source
. The precedence of an Assignment
indicates the order in which Oracle OLAP evaluates it, relative to other Assignment
objects, when Oracle OLAP applies the Model
in retrieving or calculating data in a query.
Typically, an application does not explicitly create Assignment
objects. Oracle OLAP creates an Assignment
object when an application creates a custom dimension member, or when the application calls an assign
method of a Model
.
For an example program that calls the assign
method of a CustomModel
, see ImplementingExtractAsACustomModel.java
.
Model
, CustomModel
, Qualification
Constructor Summary | |
Assignment(Model owner, Qualification[] qualifications, Source assigned, int precedence) Creates an Assignment object. |
Method Summary | |
void |
assign(Model newOwner, Source oldQualifiedSource, Source newQualifiedSource) Moves the ownership of the Assignment from one Model to another. |
Source |
getAssignedSource() The Source that represents the calculated value that the Model assigns for a Source that has the qualified Source objects as inputs. |
Model |
getOwner() Gets the Model to which the Assignment applies. |
int |
getPrecedence() Gets the precedence of the Assignment ; a higher value indicates a higher precedence. |
java.util.List |
getQualifications() Gets the Qualification objects for the Assignment . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Assignment(Model owner, Qualification[] qualifications, Source assigned, int precedence)
Assignment
object.owner
- The Model
to which this Assignment
applies.qualifications
- An array of Qualification
objects.assigned
- A Source
that specifies the value to assign for the qualified Source
elements.precedence
- The precedence of the Assignment
in relation to the other Assignment
objects of the Model
.Method Detail |
public void assign(Model newOwner, Source oldQualifiedSource, Source newQualifiedSource)
Assignment
from one Model
to another.newOwner
- The Model
to which you want the Assignment
to apply.oldQualifiedSource
- The qualified Source
to replace in the Qualification
objects of the Assignment
.newQualifiedSource
- The Source
that replaces the old qualified Source
in the Qualification
objects of the Assignment
.public final Model getOwner()
Model
to which the Assignment
applies.Model
to which the Assignment
applies.public final java.util.List getQualifications()
Qualification
objects for the Assignment
.List
of the Qualification
objects of the Assignment
.public final Source getAssignedSource()
Source
that represents the calculated value that the Model
assigns for a Source
that has the qualified Source
objects as inputs.Source
that represents the value to assign as the value specified by the qualified Source
objects.public final int getPrecedence()
Assignment
; a higher value indicates a higher precedence. Oracle OLAP uses the precedence value in determining the order in which it evaluates the Assignment
objects of a Model
. It evaluates an Assignment
with a higher value before one with a lower value.Model
.
|
Oracle® OLAP Java API Reference 10g Release 2 (10.2) B14348-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |