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


oracle.dss.datautil
Class QueryAccessDimensionModel

java.lang.Object
  |
  +--oracle.dss.datautil.OLAPDimensionModel
        |
        +--oracle.dss.datautil.QueryAccessDimensionModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, DimListDataModel, javax.swing.ListModel, QueryAccessListener, java.io.Serializable

public class QueryAccessDimensionModel
extends OLAPDimensionModel
implements QueryAccessListener

QueryAccessDimensionModel provides an interface between the DataSource/DataAccess implementation via the DimensionList Data Model (DimListDataModel).

See Also:
SelectionManager, DataSource, DimensionList, DimListDataModel, Serialized Form

Fields inherited from interface oracle.dss.util.dimensionList.DimListDataModel
COLLAPSE, COLLAPSEALL_FLAG, EXPAND, EXPANDALL_FLAG

 

Constructor Summary
QueryAccessDimensionModel(QueryAccess qa, LayoutAccess la, ErrorHandler eh, java.lang.String dimension, java.lang.String hierarchy, MetadataManager mm)
          Constructor.

 

Method Summary
 boolean collapseAll()
          Performs a collapse of all levels up to the highest level (0).
 boolean drill(int index, int delta)
          Performs a 'drill' operation on a specific element in the data source.
 boolean expandAll()
          Performs a expand on all levels down to the lowest level.
 void refresh()
          Forces the model to refresh itself based on current selections.
 void updateSelection(java.lang.String strDimension, java.lang.String strHierarchy, java.util.Vector vLevels)
          Updates the selection associated with the model.

 

Methods inherited from class oracle.dss.datautil.OLAPDimensionModel
addListDataListener, find, getElementAt, getSelectedItem, getSize, removeListDataListener, setErrorHandler, setSelectedItem

 

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

 

Methods inherited from interface oracle.dss.datautil.QueryAccessListener
dataAccessChanged, dimensionsChanged, selectionChanged

 

Methods inherited from interface oracle.dss.util.dimensionList.DimListDataModel
elementAt, isDragable, isDropTarget, isHierarchical, moveElement, setElementAt, size

 

Constructor Detail

QueryAccessDimensionModel

public QueryAccessDimensionModel(QueryAccess qa,
LayoutAccess la,
ErrorHandler eh,
                                 java.lang.String dimension,
                                 java.lang.String hierarchy,
MetadataManager mm)
Constructor.
Parameters:
qa - The QueryAccess for this model.
la - The LayoutAccess for this model.
eh - The ErrorHandler for this model.
dimension - The unique ID for the dimension.
hierarchy - The unique ID for the hierarchy.
mm - The MetadataManager for this model.
Method Detail

updateSelection

public void updateSelection(java.lang.String strDimension,
                            java.lang.String strHierarchy,
                            java.util.Vector vLevels)
Updates the selection associated with the model. The user should call the refresh method to update the model based on the new selection.
Parameters:
strDimension - a String value that represents the dimension.
strHierarchy - a String value that represents the hierarchy associated with the dimension.
vLevels - a Vector value that represents a list of level strings.

refresh

public void refresh()
Forces the model to refresh itself based on current selections.
Overrides:
refresh in class OLAPDimensionModel

drill

public boolean drill(int index,
                     int delta)
Performs a 'drill' operation on a specific element in the data source.
Parameters:
index - the data source index position.
delta - relative number of levels to traverse within the hierarchy (positive numbers drill down, negative drill up) This value is currently ignored.
Returns:
boolean true if successful, otherwise failure.

collapseAll

public boolean collapseAll()
Performs a collapse of all levels up to the highest level (0). All children are hidden up to the root.
Returns:
boolean A true if successful, otherwise failure.

expandAll

public boolean expandAll()
Performs a expand on all levels down to the lowest level. All children are expanded.
Returns:
boolean A true if successful, otherwise failure.

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


Copyright © 2003, Oracle. All Rights Reserved.