|
Oracle® OLAP Java API Reference 11g Release 2 (11.2) E10794-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.olapi.data.source.CustomModel
public final class CustomModel
A Model that an application can explicitly create.
To create a CustomModel, call one of the
createModel methods of the DataProvider
in use.
By calling a createSolvedSource method of a
CustomModel, you can produce a Source that
represents the evaluation of the Assignment objects of
the CustomModel.
The solved Source has all of the inputs of the
CustomModel.
The ImplementingExtractAsACustomModel.java example program
demonstrates creating a CustomModel.
For information on the example programs, see
Example Oracle OLAP Java API Programs.
Assignment,
Qualification| Constructor Summary | |
|---|---|
CustomModel(DataProvider dataProvider,
Source[] inputs,
Source type,
Source[] outputs,
Model[] parentModels,
Transaction transaction)
Creates a new CustomModel. |
|
| Method Summary | |
|---|---|
void |
assign(Qualification[] qualifications,
Source assigned)
Creates an Assignment with the default precedence and adds
it to the CustomModel. |
void |
assign(Qualification[] qualifications,
Source assigned,
int precedence)
Creates an Assignment with the specified precedence
and adds it to the CustomModel. |
void |
assign(java.lang.String[] values,
Source assigned)
Creates an Assignment with the default precedence and adds
it to the CustomModel. |
void |
assign(java.lang.String[] values,
Source assigned,
int precedence)
Creates an Assignment with the specified precedence and adds
it to the CustomModel. |
void |
assign(java.lang.String value,
Source assigned)
Creates an Assignment with the default precedence and adds
it to the Model; use this method for a
CustomModel that has only one input. |
void |
assign(java.lang.String value,
Source assigned,
int precedence)
Creates an Assignment with the specified precedence and adds
it to the CustomModel; use this method for a
CustomModel that has only one input. |
Source |
createSolvedSource()
Creates a Source that represents the results of the
evaluation of the Assignment objects of
CustomModel. |
Source |
createSolvedSource(Source defaultValues)
Creates a Source that represents the results of the
evaluation of the Assignment objects of the
CustomModel. |
java.util.List |
getAssignments()
Gets the Assignment objects of the CustomModel. |
int |
getDefaultPrecedence()
Gets the default precedence value for the CustomModel. |
java.lang.String |
getID()
Gets a String that uniquely identifies the
CustomModel. |
java.util.List |
getInputs()
Gets the Source objects that are the inputs of the
CustomModel. |
java.util.List |
getOutputs()
Gets the Source objects that are the outputs of the
CustomModel. |
java.util.List |
getParentModels()
Gets the Model objects from which the
CustomModel inherits Assignment objects. |
Source |
getType()
Gets the Source for the FundamentalMetadataObject
that represents the data type of the CustomModel. |
void |
setDefaultPrecedence(int precedence)
Specifies the default precedence, which is the precedence value for Assignment objects that are created by methods that do
not specify a precendence value. |
void |
unassign(Assignment assignment)
Removes an Assignment from the CustomModel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomModel(DataProvider dataProvider,
Source[] inputs,
Source type,
Source[] outputs,
Model[] parentModels,
Transaction transaction)
CustomModel.
An application typically creates a CustomModel by calling
one of the createModel methods of the
DataProvider it is using.
dataProvider - The DataProvider that you are using.inputs - An array of Source objects that are
the inputs of the CustomModel.
The Qualification objects of the
Assignment objects of the
CustomModel specify the values of
the inputs for which the CustomModel
assigns values.type - The Source for the
FundamentalMetadataObject for the data type
that you want the CustomModel to have.outputs - An array of Source objects that you want
the CustomModel to have as outputs.
An assigned Source of the
Assignment objects of the
CustomModel must have the same the outputs
as the CustomModel.parentModels - An array of Model objects from which
the CustomModel inherits
Assignment objects.transaction - The current Transaction.| Method Detail |
|---|
public final java.lang.String getID()
String that uniquely identifies the
CustomModel.
String that uniquely identifies the
CustomModel.public final Source getType()
Source for the FundamentalMetadataObject
that represents the data type of the CustomModel.
getType in interface ModelSource that is the type of the
CustomModel.public final java.util.List getInputs()
Source objects that are the inputs of the
CustomModel.
getInputs in interface ModelList of the Source objects that are
the inputs of the CustomModel.public final java.util.List getOutputs()
Source objects that are the outputs of the
CustomModel.
getOutputs in interface ModelList of the Source objects that are
the outputs of the CustomModel.public final java.util.List getParentModels()
Model objects from which the
CustomModel inherits Assignment objects.
getParentModels in interface ModelList of the Model objects from
which the CustomModel inherits
Assignment objects.public java.util.List getAssignments()
Assignment objects of the CustomModel.
getAssignments in interface ModelList of the Assignment objects of
the CustomModel.
public void assign(Qualification[] qualifications,
Source assigned)
Assignment with the default precedence and adds
it to the CustomModel.
assign in interface Modelqualifications - An array of Qualification objects,
each of which specifies a Source
and an element of that Source.
The array must have a Qualification
for each input of the CustomModel.assigned - A Source that is the assigned
Source for the Assignment.
public void assign(Qualification[] qualifications,
Source assigned,
int precedence)
Assignment with the specified precedence
and adds it to the CustomModel.
assign in interface Modelqualifications - An array of Qualification objects,
each of which specifies a Source
and an element of that Source.
The array must have a Qualification
for each input of the CustomModel.assigned - A Source that is the assigned
Source for the Assignment.precedence - An integer that specifies the precedence value for
the Assignment.
public void assign(java.lang.String value,
Source assigned)
Assignment with the default precedence and adds
it to the Model; use this method for a
CustomModel that has only one input.
assign in interface Modelvalue - A String that contains the value of an
element of the qualified Source for the
Qualification of the Assignment.assigned - A Source that is the assigned
Source for the Assignment.
public void assign(java.lang.String value,
Source assigned,
int precedence)
Assignment with the specified precedence and adds
it to the CustomModel; use this method for a
CustomModel that has only one input.
assign in interface Modelvalue - A String that contains the value of an
element of the qualified Source for the
Qualification of the Assignment.assigned - A Source that is the assigned
Source of the Assignment.precedence - An integer that specifies the precedence value for
the Assignment.
public void assign(java.lang.String[] values,
Source assigned)
Assignment with the default precedence and adds
it to the CustomModel.
assign in interface Modelvalues - An array of String objects, each of which
contains the value of an element of a qualified
Source for the Qualification
objects of the Assignment.
The array must have a String value
for each input of the CustomModel.assigned - A Source that is the assigned
Source for the Assignment.
public void assign(java.lang.String[] values,
Source assigned,
int precedence)
Assignment with the specified precedence and adds
it to the CustomModel.
assign in interface Modelvalues - An array of String objects, each of which
contains the value of an element of a qualified
Source for the Qualification
objects of the Assignment.
The array must have a String value
for each input of the CustomModel.assigned - A Source that is the assigned
Source for the Assignment.precedence - An integer that specifies the precedence value for
the Assignment.public void unassign(Assignment assignment)
Assignment from the CustomModel.
unassign in interface Modelassignment - The Assignment to remove.public int getDefaultPrecedence()
CustomModel.
getDefaultPrecedence in interface ModelAssignment objects that are created by
methods that do not specify a precedence value.public void setDefaultPrecedence(int precedence)
Assignment objects that are created by methods that do
not specify a precendence value.
setDefaultPrecedence in interface Modelprecedence - An integer value to set as the default precedence;
a higher value indicates a higher precedence.public final Source createSolvedSource()
Source that represents the results of the
evaluation of the Assignment objects of
CustomModel.
For an element of the returned Source that does not
have an assigned value, the value is null.
createSolvedSource in interface ModelSource represents the results of the
evaluation of the Assignment objects of
Model and that has null for
unassigned values.public final Source createSolvedSource(Source defaultValues)
Source that represents the results of the
evaluation of the Assignment objects of the
CustomModel.
The elements of the returned Source that do not
have an assigned value have the value specified by the
defaultValues Source.
createSolvedSource in interface ModeldefaultValues - A Source that specifies the value
that you want Oracle OLAP to assign for a
member of an input when the Assignment
objects of the CustomModel do not
assign a value for the input member.
Source that represents the results of the
evaluation of the Assignment objects of the
CustomModel and that has the values of
defaultValues for unassigned values.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||