public abstract class BaseActiveDataModel extends Object implements ActiveDataModel
fireActiveDataUpdate and
fireActiveDataException methods.ActiveDataModel.ActiveDataPolicy| Constructor and Description |
|---|
BaseActiveDataModel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireActiveDataException(ActiveDataExceptionEvent dataExceptionEvent)
Called by subclasses tp fire the ActiveDataExceptionEvent to all ActiveDataListeners registered
on this ActiveDataModel
|
protected void |
fireActiveDataUpdate(ActiveDataUpdateEvent dataUpdateEvent)
Called by subclass to fire the ActiveDataUpdateEvent to all the ActiveDataListeners registered
on this ActiveDataModel
|
ActiveDataModel.ActiveDataPolicy |
getActiveDataPolicy()
Return the active data policy of the model
|
abstract int |
getCurrentChangeCount()
Returns the current monotonically increasing change count for this ActiveDataModel
|
protected abstract void |
startActiveData(Collection<Object> rowKeys,
int startChangeCount)
Start active data for the specified rowKeys and from teh startChangeCount
|
void |
startActiveData(Collection<Object> rowKeys,
int startChangeCount,
ActiveDataListener listener)
Called by the DataUpdateManager to notify the ActiveDataModel to start delivering
change notifications for the collections of the containers identified by
the rowKeys
|
protected abstract void |
stopActiveData(Collection<Object> rowKeys)
Stop the active data for the specified rowKeys
|
void |
stopActiveData(Collection<Object> rowKeys,
ActiveDataListener listener)
Called by the DataUpdateManager to notify the ActiveDataModel to stop delivering
change notifications for the collections of the container identified by the
given rowKeys
|
public ActiveDataModel.ActiveDataPolicy getActiveDataPolicy()
getActiveDataPolicy in interface ActiveDataModelActiveDataModel.ActiveDataPolicypublic final void startActiveData(Collection<Object> rowKeys, int startChangeCount, ActiveDataListener listener)
startActiveData in interface ActiveDataModelrowKeys - the container row keys of the collection, from which the
ActiveDataListener receives active events. Pass null or empty collection for for root collection.startChangeCount - Change count to start sending active data from.listener - ActiveDataListener for the ActiceDataModel to use when notifying
the DataUpdateManager of changesIllegalStateException - if ActiveDataPolicy is STATICIllegalArgumentException - if listener is null or
the startChangeCount is greater than the current change count.stopActiveData(java.util.Collection<java.lang.Object>, oracle.adf.view.rich.event.ActiveDataListener)protected abstract void startActiveData(Collection<Object> rowKeys, int startChangeCount)
rowKeys - the container row keys of the collections, from which the
ActiveDataListener receives active events. Pass null or empty collection for for root collection.startChangeCount - Change count to start sending active data from.public final void stopActiveData(Collection<Object> rowKeys, ActiveDataListener listener)
stopActiveData in interface ActiveDataModelrowKeys - the container row keys of the collections, from which the
ActiveDataListener receives active events. Pass null or empty collection for for root collection.listener - the ActiveDataListener to be removed
ActiveDataListener receives active events. Pass null for root collection.IllegalArgumentException - If called on an ActiveDataModel that was never
started by calling startActiveDatastartActiveData(java.util.Collection<java.lang.Object>, int, oracle.adf.view.rich.event.ActiveDataListener)protected abstract void stopActiveData(Collection<Object> rowKeys)
rowKeys - the container row keys of the collections, from which the
ActiveDataListener receives active events. Pass null or empty collection for for root collection.public abstract int getCurrentChangeCount()
getCurrentChangeCount in interface ActiveDataModelprotected final void fireActiveDataUpdate(ActiveDataUpdateEvent dataUpdateEvent)
dataUpdateEvent - the event to be firedprotected final void fireActiveDataException(ActiveDataExceptionEvent dataExceptionEvent)
dataExceptionEvent - the exception event to be fired