Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-01

oracle.olapi.data.source
Class ConstantListDefinition

java.lang.Object
  |
  +--oracle.olapi.data.source.SourceDefinition
        |
        +--oracle.olapi.data.source.ImmutableDefinition
              |
              +--oracle.olapi.data.source.ConstantListDefinition

public final class ConstantListDefinition
extends ImmutableDefinition

An ImmutableDefinition that contains information about a Source that was returned by a createListSource or createConstantSource method of a DataProvider. The elements of a Source returned by those methods are contained in a List object. For a Source returned by the createListSource(Object[][] tuples) method, the List contains other List objects, one for each tuple.


Method Summary
Model getCalculationModel()
Gets the Model for the Source for the ConstantListDefinition.
java.util.List getElements()
Gets a List of elements of the Source for the ConstantListDefinition.
java.util.List getElements(int colNum)
Gets the specified List of the elements of the Source for the ConstantListDefinition.
java.util.List getTuples()
Gets a List of the elements of the Source for the ConstantListDefinition.

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

getCalculationModel

public final Model getCalculationModel()
Gets the Model for the Source for the ConstantListDefinition.
Returns:
The Model for the Source for the ConstantListDefinition.

getElements

public final java.util.List getElements()
Gets a List of elements of the Source for the ConstantListDefinition. If the Source for the ConstantListDefinition was returned by any method other than createListSource(Object[][] tuples), then the elements of the Source are contained in a single List.

This method is the equivalent of getElements(0).

Returns:
A List that has elements of the Source for the ConstantListDefinition.

getElements

public final java.util.List getElements(int colNum)
Gets the specified List of the elements of the Source for the ConstantListDefinition. If the Source for the ConstantListDefinition was returned by any method other than createListSource(Object[][] tuples), then the ConstantListDefinition has only one List, which this method returns, and the colNum value has no effect. If the Source was returned by the createListSource(Object[][] tuples) method, then the colNum value specifies a List that is a component of the List returned by the getTuples method.
Parameters:
colNum - An integer that specifies a component List of the List returned by the getTuples method.
Returns:
A List that has the specified elements of the Source for the ConstantListDefinition.

getTuples

public final java.util.List getTuples()
Gets a List of the elements of the Source for the ConstantListDefinition. If the Source for the ConstantListDefinition was returned by the createListSource(Object[][] tuples) method, then the List contains List objects. The component List objects contain the elements of the Source. If the Source was returned by any method other than createListSource(Object[][] tuples), then the List contains the elements of the Source.
Returns:
A List that has the elements of the Source for the ConstantListDefinition or a List that has component List objects that have the elements of the Source.

Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-01

Copyright © 2002, 2005, Oracle. All rights reserved.