|
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.SourceDefinition | +--oracle.olapi.data.source.DynamicDefinition
A proxy for the SourceDefinition
of the Source
returned by the SourceGenerator
for a Template
. An application creates a DynamicDefinition
for a Template
by calling the createDynamicDefinition
method on the Template
and passing it a SourceGenerator
. The application can then generate the Source
defined by the Template
by calling the getSource
method of the DynamicDefinition
. The DynamicDefinition
inherits the getSource
method from SourceDefinition
.
When an application calls the getSource
method of the DynamicDefinition
, the generateSource
method of the SourceGenerator
is called. That method uses the values stored in the MetadataState
for the Template
to create the Source
returned by getSource
. If the Source
has no inputs, the application can create a Cursor
for the Source
to retrieve the data it specifies from the data store.
An application can modify the query produced by the Template
by calling methods of the Template
to change the values of one or more of the fields in its MetadataState
object. The application can then call the getSource
method of the DynamicDefinition
again to generate a Source
using the new values or different logic or both. The instances of the Template
and DynamicDefinition
objects remain the same but the Source
that the Template
produces has changed.
MetadataState
, SourceGenerator
, Template
Method Summary | |
SourceDefinition |
getCurrent() Gets the SourceDefinition for the Source currently returned by the generateSource method of the SourceGenerator for this DynamicDefinition . |
SourceDefinition |
getCurrent(Transaction transaction) |
SourceGenerator |
getSourceGenerator() Gets the SourceGenerator for this DynamicDefinition . |
Template |
getTemplate() Gets the Template whose createDynamicDefinition method returned this DynamicDefinition . |
boolean |
isModified(Transaction transaction) Indicates whether, in the specified Transaction , the Template for this DynamicDefinition has changed the Source that it generates for this DynamicDefinition . |
Methods inherited from class oracle.olapi.data.source.SourceDefinition |
getDataProvider, getModel, getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final SourceDefinition getCurrent()
SourceDefinition
for the Source
currently returned by the generateSource
method of the SourceGenerator
for this DynamicDefinition
. The relationship between that SourceDefinition
and the Source
is immutable. For example, if the current state of the Template
components is such that the generateSource
method returns the result of a join
method call, then a call to getCurrent
returns a JoinDefinition
. Calling the getSource
method of that JoinDefinition
always returns the same Source
, the Source
that is paired to it.
In contrast, the getSource
method of DynamicDefinition
returns the Source
that the generateSource
method produces. The DynamicDefinition
is a proxy for the SourceDefinition
that is immutably paired to the Source
. Thus if the current state of the values used to create the Source
changes, then the getSource
method returns a different Source
, yet the DynamicDefinition
remains the same.
The getCurrent
method is primarily informational, and is not used by an application in building a query. An application uses the getSource
method to get the Source
for the Template
and then uses that Source
in building a complex query or in the process of creating a Cursor
for retrieving the data defined by the Source
.
SourceDefinition
for the Source
currently generated by the SourceGenerator
.public final SourceDefinition getCurrent(Transaction transaction)
public final SourceGenerator getSourceGenerator()
SourceGenerator
for this DynamicDefinition
.SourceGenerator
for this DynamicDefinition
.public final Template getTemplate()
Template
whose createDynamicDefinition
method returned this DynamicDefinition
.Template
used in creating this DynamicDefinition
.public final boolean isModified(Transaction transaction)
Transaction
, the Template
for this DynamicDefinition
has changed the Source
that it generates for this DynamicDefinition
.transaction
- The Transaction
to specify.true
if the Source
has been modified in the specified Transaction
and false
if it has not.
|
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 |