Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.util.datacache
Class BaseCachedDataSource

java.lang.Object
  |
  +--oracle.dss.util.DataAccessAdapter
        |
        +--oracle.dss.util.datacache.BaseCachedDataSource
All Implemented Interfaces:
DataDirector, DataSource, Persistable, StringXMLizable
Direct Known Subclasses:
CachedDataSource, RelationalCachedDataSource

public abstract class BaseCachedDataSource
extends DataAccessAdapter
implements DataSource, Persistable

Base class for the relational and multidimensional data cache implementations

See Also:
CachedDataSource, RelationalCachedDataSource

Field Summary
static java.lang.String COLUMN_EDGE
           
static java.lang.String DATAMAP
           
static java.lang.String LAYERMETADATAMAP
           
static java.lang.String METADATAMAP
           
static java.lang.String PAGE_EDGE
           
static java.lang.String ROW_EDGE
           

 

Fields inherited from interface oracle.dss.util.DataDirector
DATA_ELEMENT_EDGE, DRILL_REPLACE, DRILLSTATE_DRILLABLE, DRILLSTATE_IS_DRILLED, DRILLSTATE_NOT_DRILLABLE, GROUPSORT_END, GROUPSORT_MIDDLE, GROUPSORT_NONE, GROUPSORT_START, max_edge, NA_SUPPRESSION, NA_ZERO_SUPPRESSION, NO_SUPPRESSION, PIVOT_EDGES, PIVOT_MOVE_AFTER, PIVOT_MOVE_BEFORE, PIVOT_MOVE_TO, PIVOT_SWAP, ZERO_SUPPRESSION

 

Constructor Summary
BaseCachedDataSource()
          Constructor

 

Method Summary
 void addDataDirectorListener(DataDirectorListener l)
          Registers a listener to the data source for changes.
 void copyDataSource(DataAccess da, DataDirector dd)
          Initializes the instance with data from existing DataAccess and DataDirector
 CubeDataDirector createCubeDataDirector()
          Creates a DataDirector for cube-based (OLAP) views
 RelationalDataDirector createRelationalDataDirector()
          Creates a DataDirector for relational views.
 int getEdgeCount()
          Retrieves the total number of edges in the cursor.
 int[] getEdgeCurrentHPos(int edge)
          Retrieves, for the specified edge, the hierarchical address of the location that is defined by the implementor as the "current" location.
 int getEdgeCurrentSlice(int edge)
          Retrieves the zero-based index of the slice that is defined by the implementor as the current slice.
 int getEdgeExtent(int edge)
          Retrieves the total number of slices that are available on the specified edge.
 DataMap getExpectedDataMap()
          Returns expected data map
 LayerMetadataMap getExpectedLayerMetadataMap()
          Returns expected layer metadata map
 MetadataMap getExpectedMetadataMap()
          Returns expected metadata map
 int[] getFirstHPos(int edge)
          Retrieves the hPos array that identifies the members at each physical layer of slice 0 on the specified edge.
 int[] getLastHPos(int edge)
          Retrieves the hPos array that identifies the members at each physical layer in the last slice on the specified edge.
 int getLayerCount(int edge)
          Retrieves the total number of layers on the specified edge.
 java.lang.Object getLayerMetadata(int edge, int layer, java.lang.String type)
          Retrieves the specified type of metadata for a member at the specified location.
 int getMemberDepth(int edge, int layer, int slice)
          Retrieves the size (expressed in layers that are perpendicular to the specified edge orientation) of a member at the specified layer, slice, and edge.
 int getMemberExtent(int edge, int layer, int slice)
          Retrieves the size of a member, that is, the number of slices that the member spans at a specified edge, layer, and slice location (parallel to the direction of the edge).
 int[] getMemberHPos(int edge, int layer, int slice)
          Retrieves the hierarchical address for an absolute address that is specified as edge, physical layer, and slice.
 java.lang.Object getMemberMetadata(int edge, int[] hPos, int memberLayer, int hIndex, java.lang.String type)
          Retrieves the specified type of metadata for the member at a specified location.
 java.lang.Object getMemberMetadata(int edge, int layer, int slice, java.lang.String type)
          Retrieves the specified type of metadata for a member at the specified location.
 int getMemberSiblingCount(int edge, int[] hPos, int memberLayer)
          Retrieves the count of all the sibling members at a specified logical layer based on a series of relative indexes for each logical layer down to the specified logical layer.
 int getMemberStartLayer(int edge, int layer, int slice)
          Retrieves the starting layer at which a member at the specified edge, layer, and slice location begins.
 int getMemberStartSlice(int edge, int layer, int slice)
          Retrieves the absolute number of the first slice that a member spans.
 int[] getNextHPos(int edge, int[] hPos)
          Retrieves the hPos that identifies the next member on the specified edge relative to a specified hPos.
 int[] getPrevHPos(int edge, int[] hPos)
          Retrieves the hPos array that identifies the members at each physical layer of the slice that is immediately previous to the specified hPos on the specified edge.
 java.lang.Object getSliceLabel(int edge, int slice, java.lang.String type)
          Retrieves the label (or concatenated metadata) for the specified slice.
 int getSliceMemberCount(int edge, int slice)
          Retrieves the number of unique logical layers (that is, the number of members that run perpendicular to the orientation of the edge) at the specified slice and edge.
 DataMap getSupportedDataMap()
          Return a DataMap that contains all of the types that this DataAccessAdapter can support.
 LayerMetadataMap getSupportedLayerMetadataMap()
          Return a LayerMetadataMap that contains all of the types that this DataAccessAdapter can support.
 MetadataMap getSupportedMetadataMap()
          Retrieves a MetadataMap that contains all of the types that this DataAccessAdapter can support.
 java.lang.Object getValue(int row, int col, java.lang.String type)
          Retrieves a data value for the specified row and column intersection.
 java.lang.String getXML()
          Returns XML representation of the data source as a string
 void readXML(java.io.InputStream stream)
          Initializes data source from an XML stream
 void setExpectedDataMap(DataMap map)
          Specifies the data map to be used when data is copied from the existing data source.
 void setExpectedLayerMetadataMap(LayerMetadataMap map)
          Specifies the layer metadata map to be used when data is copied from the existing data source.
 void setExpectedMetadataMap(MetadataMap map)
          Specifies the metadata map to be used when data is copied from the existing data source.
 void setXML(java.lang.String xml)
          Initializes data source from an XML string
 void writeXML(java.io.OutputStream stream)
          Writes XML representation of the data source into a stream

 

Methods inherited from class oracle.dss.util.DataAccessAdapter
cancel, changeEdgeCurrentHPos, changeEdgeCurrentSlice, deleteMemberCalc, deleteValueCalc, drill, drill, drillOK, drillOK, dropChanges, endGroupEdit, findMember, forceFetch, getDataMap, getLayerQDR, getMemberLogicalLayer, getMemberQDR, getMemberQDR, getMetadataMap, getQDRoverrideCollection, getSliceOutlineLayer, getSliceQDR, getValueQDR, insertMemberCalc, insertValueCalc, isAutoSubmit, isCancelable, isFetched, isOutline, pivot, pivotOK, redoEdit, refresh, release, removeDataDirectorListener, reorder, revalidate, setAutoSubmit, setDataMap, setManualUpdate, setMetadataMap, setOutline, setValue, startGroupEdit, submitChanges, undoEdit, update

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.dss.util.persistence.Persistable
getPersistableAttributes, getPersistableComponents, initialize, setPersistableAttributes, setPersistableComponents

 

Methods inherited from interface oracle.dss.util.persistence.StringXMLizable
getXMLAsString, setXMLAsString

 

Field Detail

COLUMN_EDGE

public static final java.lang.String COLUMN_EDGE

ROW_EDGE

public static final java.lang.String ROW_EDGE

PAGE_EDGE

public static final java.lang.String PAGE_EDGE

DATAMAP

public static final java.lang.String DATAMAP

METADATAMAP

public static final java.lang.String METADATAMAP

LAYERMETADATAMAP

public static final java.lang.String LAYERMETADATAMAP
Constructor Detail

BaseCachedDataSource

public BaseCachedDataSource()
Constructor
Method Detail

copyDataSource

public void copyDataSource(DataAccess da,
DataDirector dd)
Initializes the instance with data from existing DataAccess and DataDirector
Parameters:
1 - source DataAccess
2 - source DataDirector

getEdgeCount

public int getEdgeCount()
Description copied from class: DataAccessAdapter
Retrieves the total number of edges in the cursor. Views assume the following: