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


oracle.dss.dataView
Interface Model

All Known Subinterfaces:
CrosstabModel, CrosstabModel, GraphModel, GridViewModel, GridViewModel, TableModel

public interface Model

Methods and fields required for a model. Most developers will use the BI Beans implementations of this interface and of the interfaces that extend this interface.


Field Summary
static int VIEW_PAGE_FIRST
          Go to the first page.
static int VIEW_PAGE_LAST
          Go to the last page.
static int VIEW_PAGE_NEXT
          Go to the next page.
static int VIEW_PAGE_PREVIOUS
          Go to the previous page.

 

Method Summary
 void addDataListener(DataListener l)
          Registers a data listener with this model.
 void addModelListener( l)
          Registers a model listener with this model.
 DataAccess getDataAccess()
          Get the data access for this view.
 DataDirector getDataDirector()
          Retrieves the data director for this view.
 DataSource getDataSource()
          Retrieves the data source for this view.
 boolean isDrillingEnabled()
          Indicates whether drilling is allowed in this view.
 void removeDataListener(DataListener l)
          Removes the data listener from this model.
 void removeModelListener( l)
          Removes a model listener from the list of listeners for this model.
 void setDataAccess(DataAccess dp)
          Specifies the data access for this view.
 void setDataDirector(DataDirector dd)
          Specifies the data director for this view.
 void setDataSource(DataSource ds)
          Specifies the data source for this view.
 void setDrillingEnabled(boolean b)
          Specifies whether drilling is allowed in this view.

 

Field Detail

VIEW_PAGE_FIRST

public static final int VIEW_PAGE_FIRST
Go to the first page.

VIEW_PAGE_LAST

public static final int VIEW_PAGE_LAST
Go to the last page.

VIEW_PAGE_PREVIOUS

public static final int VIEW_PAGE_PREVIOUS
Go to the previous page.

VIEW_PAGE_NEXT

public static final int VIEW_PAGE_NEXT
Go to the next page.
Method Detail

addModelListener

public void addModelListener( l)
Registers a model listener with this model. A model listener listens for changes in the availability of data and for changes in the underlying data. The view calls this method to register itself as a listener. Application developers do not need to call this method.
Parameters:
l - The listener to add.

removeModelListener

public void removeModelListener( l)
Removes a model listener from the list of listeners for this model. The view calls this method to remove itself from the list of listeners. Application developers do not need to call this method.
Parameters:
l - The listener to remove.

addDataListener

public void addDataListener(DataListener l)
Registers a data listener with this model. A data listener listens for changes that a user requests in the data, such as drilling and pivoting.
Parameters:
l - The listener to add.

removeDataListener

public void removeDataListener(DataListener l)
Removes the data listener from this model.
Parameters:
l - The listener to remove.

setDataSource

public void setDataSource(DataSource ds)
Specifies the data source for this view.
Parameters:
ds - The data source for this view.

getDataSource

public DataSource getDataSource()
Retrieves the data source for this view.
Returns:
The data source for this view. This method can return null if no data source has been specified for this view.

setDataDirector

public void setDataDirector(DataDirector dd)
Specifies the data director for this view. The data director is the part of the data source that manipulates the data.
Parameters:
dd - A DataDirector implementation that has been initialized.

getDataDirector

public DataDirector getDataDirector()
Retrieves the data director for this view. The data director is the part of the data source that manipulates the data.
Returns:
The data director for this view.

setDataAccess

public void setDataAccess(DataAccess dp)
Specifies the data access for this view. The data access is the part of the data source that feeds data to the view. It is, essentially, a cursor of data.
Parameters:
dp - An implementation of the DataAccess interface.

getDataAccess

public DataAccess getDataAccess()
Get the data access for this view. The data access is the part of the data source that feeds data to the view. It is, essentially, a cursor of data.
Returns:
The DataAccess for this view. This method can return null if no data access has been specified for this view.

setDrillingEnabled

public void setDrillingEnabled(boolean b)
Specifies whether drilling is allowed in this view.
Parameters:
b - true to enable drilling, false to disable drilling.

isDrillingEnabled

public boolean isDrillingEnabled()
Indicates whether drilling is allowed in this view.
Returns:
true if drilling is enabled, false if not.

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


Copyright © 2003, Oracle. All Rights Reserved.