| 
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.dss.util.DataAccessAdapter
oracle.dss.dataView.LocalXMLDataSource
public class LocalXMLDataSource
| Field Summary | |
|---|---|
protected  int | 
m_columnCount
 | 
protected  java.lang.Object[] | 
m_columnLabels
 | 
protected  java.lang.Object[][] | 
m_data
 | 
protected  DataMap | 
m_dataMap
 | 
protected  javax.swing.event.EventListenerList | 
m_listenerList
 | 
protected  MetadataMap | 
m_metadataMap
 | 
protected  int | 
m_pageCount
 | 
protected  int | 
m_rowCount
 | 
protected  java.lang.Object[] | 
m_rowLabels
 | 
| Fields inherited from interface oracle.dss.util.DataAccess | 
|---|
DATATYPE_BOOLEAN, DATATYPE_DATE, DATATYPE_DOUBLE, DATATYPE_FLOAT, DATATYPE_INTEGER, DATATYPE_LONG, DATATYPE_SHORT, DATATYPE_STRING, FIND_CASE_INSENSITIVE, FIND_CONTAINS, FIND_ENDS_WITH, FIND_EXACT, FIND_PRIOR, FIND_STARTS_WITH, QDR_WITH_PAGE, QDR_WITHOUT_PAGE | 
| Constructor Summary | |
|---|---|
LocalXMLDataSource(java.lang.Object[] columnLabels,
                   java.lang.Object[] rowLabels,
                   java.lang.Object[][] data)
Constructor.  | 
|
| Method Summary | |
|---|---|
 void | 
addDataDirectorListener(DataDirectorListener l)
Registers a listener to the data source for changes.  | 
 CubeDataDirector | 
createCubeDataDirector()
Creates a DataDirector for cube-based (OLAP) views  | 
 DataDirector | 
createDataDirector()
 | 
 RelationalDataDirector | 
createRelationalDataDirector()
Creates a DataDirector for relational views.  | 
protected  void | 
fireDataAvailableEvent(DataAvailableEvent e)
Fire a DataAvailableEvent to all DataDirectorListeners.  | 
 DataAccess | 
getDataAccess()
Called by the view to get a current BaseDataAccess model of the data. | 
 DataMap | 
getDataMap()
Retrieves the list of types of data that can be retrieved or set for each location in the data cursor.  | 
 int | 
getEdgeCount()
Retrieves the total number of edges in the cursor.  | 
 int | 
getEdgeExtent(int edge)
Retrieves the total number of members on the given edge.  | 
 int | 
getLayerCount(int edge)
Retrieves the number of layers on the specified edge.  | 
 int | 
getMemberExtent(int edge,
                int layer,
                int slice)
Retrieves the number of slices that a member spans.  | 
 java.lang.Object | 
getMemberMetadata(int edge,
                  int layer,
                  int slice,
                  java.lang.String type)
Retrieves a piece of metadata for a dimension member.  | 
 int | 
getMemberStartSlice(int edge,
                    int layer,
                    int slice)
Retrieves the first slice that a member spans.  | 
 MetadataMap | 
getMetadataMap(int edge,
               int layer)
Retrieves the list of available types of metadata.  | 
 java.lang.Object | 
getSliceLabel(int edge,
              int slice,
              java.lang.String type)
Retrieves the label for the specified slice.  | 
 int | 
getSliceMemberCount(int edge,
                    int slice)
Retrieves the number of logical layers at the specified location on the specified 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.  | 
 void | 
removeDataDirectorListener(DataDirectorListener l)
Removes a listener from the data source.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface oracle.dss.util.DataDirector | 
|---|
cancel, changeEdgeCurrentHPos, changeEdgeCurrentSlice, deleteMemberCalc, deleteValueCalc, drill, drill, drill, drill, drillOK, drillOK, drillOK, drillOK, fireEvents, getColumnSorts, getCompatibleDataItemMetadata, getDimensionSorts, getExpressions, getMemberSorts, getProperty, getSorts, getStatus, insertMemberCalc, insertValueCalc, isCancelable, isOutline, pivot, pivotCheck, pivotOK, refresh, release, reorder, revalidate, setColumnSorts, setDataMap, setDimensionSorts, setExpressions, setLayerMetadata, setManualUpdate, setMemberSorts, setMetadataMap, setOutline, setProperty, setSorts, startExecution, update | 
| Methods inherited from interface oracle.dss.util.CDFDataAccess | 
|---|
getEdgeSymmetric, getLayerMetadata, getMemberDepth, getMemberStartLayer | 
| Field Detail | 
|---|
protected javax.swing.event.EventListenerList m_listenerList
protected DataMap m_dataMap
protected MetadataMap m_metadataMap
protected int m_columnCount
protected int m_rowCount
protected int m_pageCount
protected java.lang.Object[] m_columnLabels
protected java.lang.Object[] m_rowLabels
protected java.lang.Object[][] m_data
| Constructor Detail | 
|---|
public LocalXMLDataSource(java.lang.Object[] columnLabels,
                          java.lang.Object[] rowLabels,
                          java.lang.Object[][] data)
| Method Detail | 
|---|
public CubeDataDirector createCubeDataDirector()
createCubeDataDirector in interface DataSourcepublic RelationalDataDirector createRelationalDataDirector()
createRelationalDataDirector in interface DataSourcepublic void addDataDirectorListener(DataDirectorListener l)
addDataDirectorListener in interface DataDirectoraddDataDirectorListener in class DataAccessAdapterl - The listener to add.public void removeDataDirectorListener(DataDirectorListener l)
removeDataDirectorListener in interface DataDirectorremoveDataDirectorListener in class DataAccessAdapterl - The listener to remove.public DataDirector createDataDirector()
public DataAccess getDataAccess()
                         throws DataDirectorException
DataDirectorBaseDataAccess model of the data.
getDataAccess in interface DataDirectorgetDataAccess in class DataAccessAdapterBaseDataAccess
DataDirectorExceptionpublic DataMap getDataMap()
getDataMap in interface DataDirectorgetDataMap in class DataAccessAdapterpublic int getEdgeCount()
getEdgeCount in interface CDFDataAccessgetEdgeCount in class DataAccessAdapter
public int getEdgeExtent(int edge)
                  throws EdgeOutOfRangeException
getEdgeExtent in interface CDFDataAccessgetEdgeExtent in class DataAccessAdapteredge - A constant that represents the edge of interest.
               The constants end with _EDGE in
               DataDirector.
EdgeOutOfRangeException - If the edge parameter is
                                 not valid.DataDirector.COLUMN_EDGE, 
DataDirector.PAGE_EDGE, 
*
public int getLayerCount(int edge)
                  throws EdgeOutOfRangeException
getLayerCount in interface CDFDataAccessgetLayerCount in class DataAccessAdapteredge - A constant that represents the edge of interest.
              The constants end with _EDGE in
              DataDirector.
layer parameter in other API calls:
         the valid range is from zero to this return value minus one.
         This implementation returns zero.
EdgeOutOfRangeException - If edge is out of range.DataDirector.COLUMN_EDGE, 
DataDirector.PAGE_EDGE, 
DataDirector.ROW_EDGE
public int getMemberExtent(int edge,
                           int layer,
                           int slice)
                    throws EdgeOutOfRangeException,
                           LayerOutOfRangeException,
                           SliceOutOfRangeException
getMemberExtent in interface CDFDataAccessgetMemberExtent in class DataAccessAdapteredge - A constant that represents the edge in which to look for
              the layer and slice.
              The constants end with _EDGE in
              DataDirector.layer - The zero-based index of the physical layer of the member
              whose size will be returned.
              Valid values are zero to total layers at the specified
              slice.slice - An absolute index (zero-based) that indicates the location
              along the edge of the member whose extent will be returned.
              Each member in the innermost layer has a unique slice.
              In outer layers, any slice that the outer member spans
              can be used.
EdgeOutOfRangeException - If edge is too large.
LayerOutOfRangeException - If layer is negative or
               too large
SliceOutOfRangeException - If slice is negative or
               too largeDataAccessAdapter.getMemberStartSlice(int, int, int), 
DataDirector.COLUMN_EDGE, 
DataDirector.PAGE_EDGE, 
DataDirector.ROW_EDGE
public java.lang.Object getMemberMetadata(int edge,
                                          int layer,
                                          int slice,
                                          java.lang.String type)
                                   throws EdgeOutOfRangeException,
                                          LayerOutOfRangeException,
                                          SliceOutOfRangeException
getMemberMetadata in interface CDFDataAccessgetMemberMetadata in class DataAccessAdapteredge - A constant that represents the edge in which to look for
              the member metadata.
              The constants end with _EDGE in
              DataDirector.layer - The zero-based index of the physical layer in which to
              find the slice.
              Valid values are zero to total layers at the specified
              slice.slice - An absolute index (zero-based) that indicates the location
              along the edge of a slice that belongs to the member
              for which metadata is requested.
              Each member in the innermost layer has a unique slice.
              In outer layers, any slice that the
              outer member spans can be used.type - A constant that specifies the kind of metadata requested.
              Valid type values are defined in
              MetadataMap.
              The caller should have intialized the appropriate
              MetadataMap object with any types of metadata
              that the caller intends to use.
LayerOutOfRangeException - If layer is negative or
              too large.
SliceOutOfRangeException - If slice is negative or
              too large.
EdgeOutOfRangeExceptionMetadataMap, 
DataDirector.COLUMN_EDGE, 
DataDirector.PAGE_EDGE, 
DataDirector.ROW_EDGE
public int getMemberStartSlice(int edge,
                               int layer,
                               int slice)
                        throws EdgeOutOfRangeException,
                               LayerOutOfRangeException,
                               SliceOutOfRangeException
getMemberStartSlice in interface CDFDataAccessgetMemberStartSlice in class DataAccessAdapteredge - A constant that represents the edge in which to look for
              the layer and slice.
              The constants end with _EDGE in
              DataDirector.layer - The zero-based index of the physical layer of the member
              whose first slice will be returned.
              Valid values are zero to total layers at the specified
              slice.slice - An absolute index (zero-based) that indicates the location
              along the specified edge of the member whose starting slice
              will be returned.
              Each member in the innermost layer has a unique slice.
              In outer layers, any slice that the outer member spans
              can be used.
EdgeOutOfRangeException - If edge is too large.
LayerOutOfRangeException - If layer is negative or
                too large.
SliceOutOfRangeException - If slice is negative or
                too large.DataAccessAdapter.getMemberExtent(int, int, int), 
DataDirector.COLUMN_EDGE, 
DataDirector.PAGE_EDGE, 
DataDirector.ROW_EDGE
public MetadataMap getMetadataMap(int edge,
                                  int layer)
                           throws EdgeOutOfRangeException,
                                  LayerOutOfRangeException
getMetadataMap in interface DataDirectorgetMetadataMap in class DataAccessAdapteredge - A constant that indicates the edge that contains the
              logical layer.
              Valid constants end with _EDGE
              in this interface.
              A value of -1 is a request
              for the default MetadataMap.layer - A zero-based index for the logical layer for which to
              retrieve the metadata map.
              The outermost layer on the specified edge is zero.
              A layer value of -1 indicates all of the
              layers on the specified edge.
layer.
EdgeOutOfRangeException - if edge is out of range.
LayerOutOfRangeException - If no layer exists at this location.DataDirector.COLUMN_EDGE, 
DataDirector.PAGE_EDGE, 
DataDirector.ROW_EDGE
public java.lang.Object getSliceLabel(int edge,
                                      int slice,
                                      java.lang.String type)
                               throws EdgeOutOfRangeException,
                                      SliceOutOfRangeException
getSliceLabel in interface DataAccessgetSliceLabel in class DataAccessAdapteredge - A constant that represents the edge of interest.
              The constants end with _EDGE in
              DataDirector.slice - An absolute index (zero-based) along the specified edge
              that indicates the slice for which concatenated metadata
              is desired.type - A constant that specifies the kind of metadata that the
              caller wants to have returned.
              Valid type values are defined in the class
              MetadataMap class.
EdgeOutOfRangeException - If edge is out of range.
SliceOutOfRangeException - If slice is negative or
         too large.DataDirector.COLUMN_EDGE, 
DataDirector.PAGE_EDGE, 
DataDirector.ROW_EDGE
public int getSliceMemberCount(int edge,
                               int slice)
                        throws EdgeOutOfRangeException,
                               SliceOutOfRangeException
getSliceMemberCount in interface DataAccessgetSliceMemberCount in class DataAccessAdapteredge - A constant that represents the edge of interest.
              The constants end with _EDGE in
              DataDirector.slice - An absolute index (zero-based) that indicates the location
              of a slice along the specified edge.
              Each member in the innermost layer has a unique slice.
              In outer layers, any slice that the
              outer member spans can be used.
EdgeOutOfRangeException - If edge is out of range.
SliceOutOfRangeException - If slice is negative or too
              large.DataDirector.COLUMN_EDGE, 
DataDirector.PAGE_EDGE, 
DataDirector.ROW_EDGE
public java.lang.Object getValue(int row,
                                 int col,
                                 java.lang.String type)
                          throws RowOutOfRangeException,
                                 ColumnOutOfRangeException
getValue in interface DataAccessgetValue in class DataAccessAdapterrow - The row to get.col - The column to get.type - Type of data to return, such as formatted or unformatted.
             Valid type values are defined in the DataMap.
RowOutOfRangeException - If row is negative or too
                                large.
ColumnOutOfRangeException - If column is negative or
                                too large.DataMapprotected void fireDataAvailableEvent(DataAvailableEvent e)
public DataMap getSupportedDataMap()
DataAccessAdapterDataMap that contains all of the types that
 this DataAccessAdapter can support.
 Some types of data might not be available in some types
 of queries.
getSupportedDataMap in interface DataDirectorgetSupportedDataMap in class DataAccessAdapternull.DataMappublic MetadataMap getSupportedMetadataMap()
DataAccessAdapterMetadataMap that contains all of the types that
 this DataAccessAdapter can support.
 Some types of metadata might not be available in some types of queries.
getSupportedMetadataMap in interface DataDirectorgetSupportedMetadataMap in class DataAccessAdapternull.MetadataMappublic LayerMetadataMap getSupportedLayerMetadataMap()
DataAccessAdapterLayerMetadataMap that contains all of the types
 that this DataAccessAdapter can support.
 Some types of layer metadata might not be available in some types
 of queries.
getSupportedLayerMetadataMap in interface DataDirectorgetSupportedLayerMetadataMap in class DataAccessAdapternull.LayerMetadataMap
  | 
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||