|
Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework 2.0.0.0.0 E36392-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectoracle.adfmf.java.beans.ProviderChangeSupport
public class ProviderChangeSupport
This is a utility class that can be used by beans that support bound properties. You can use an instance of this class as a member field of your bean and delegate various work to it. Please note the convenience methods, but more importantly the absences of primitive types like; boolean, float, and double since those are not conducive to being good keys. Boolean due to the only T/F possible states, float and double because of their inherent precision idiosyncrasies (0.0001 vs 0.00011 vs 1.00E-3 vs 1.10E-3, ..)
Constructor Summary | |
---|---|
ProviderChangeSupport(Object source)
Constructs a ProviderChangeSupport object. |
Method Summary | |
---|---|
ProviderChangeListener[] |
accessDataChangeListeners()
Intentionally not using 'get' semantics here, to prevent conflicts with the JSON serialization of this method. |
void |
addProviderChangeListener(ProviderChangeListener listener)
Add a ProviderChangeListener to the listener list. |
void |
fireProviderChange(ProviderChangeEvent evt)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String providerKey,
byte currentRowKey,
Object newValue)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String providerKey,
char currentRowKey,
Object newValue)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String providerKey,
int currentRowKey,
Object newValue)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String providerKey,
long currentRowKey,
Object newValue)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String providerKey,
Object currentRowKey,
Object newValue)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String providerKey,
short currentRowKey,
Object newValue)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String operation,
String providerKey,
Object currentRowKey,
Object newValue)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String operation,
String providerKey,
Object currentRowKey,
Object newValue,
long timestamp)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String operation,
String providerKey,
String columnAttributeName,
String columnAttributeProperty,
Object newValue)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderChange(String operation,
String providerKey,
String columnAttributeName,
String columnAttributeProperty,
Object newValue,
long timestamp)
Fire an existing ProviderChangeEvent to any registered listeners. |
void |
fireProviderCreate(String providerKey,
byte newRowKey,
Object newValue)
Convenience method to notify registered provider listeners that a child element is being added from the provider. |
void |
fireProviderCreate(String providerKey,
char newRowKey,
Object newValue)
Convenience method to notify registered provider listeners that a child element is being added from the provider. |
void |
fireProviderCreate(String providerKey,
int newRowKey,
Object newValue)
Convenience method to notify registered provider listeners that a child element is being added from the provider. |
void |
fireProviderCreate(String providerKey,
long newRowKey,
Object newValue)
Convenience method to notify registered provider listeners that a child element is being added from the provider. |
void |
fireProviderCreate(String providerKey,
Object newRowKey,
Object newValue)
Convenience method to notify registered provider listeners that a child element is being added from the provider. |
void |
fireProviderCreate(String providerKey,
short newRowKey,
Object newValue)
Convenience method to notify registered provider listeners that a child element is being added from the provider. |
void |
fireProviderDelete(String providerKey,
byte oldRowKey)
Convenience method to notify registered provider listeners that a child element is being removed from the provider. |
void |
fireProviderDelete(String providerKey,
char oldRowKey)
Convenience method to notify registered provider listeners that a child element is being removed from the provider. |
void |
fireProviderDelete(String providerKey,
int oldRowKey)
Convenience method to notify registered provider listeners that a child element is being removed from the provider. |
void |
fireProviderDelete(String providerKey,
long oldRowKey)
Convenience method to notify registered provider listeners that a child element is being removed from the provider. |
void |
fireProviderDelete(String providerKey,
Object oldRowKey)
Convenience method to notify registered provider listeners that a child element is being removed from the provider. |
void |
fireProviderDelete(String providerKey,
short oldRowKey)
Convenience method to notify registered provider listeners that a child element is being removed from the provider. |
void |
fireProviderRefresh(String providerKey)
Convenience method to notify registered provider listeners that a the providers have changed enough that it would be best to simply purge the children from their caches and re-fetch on the query. |
ProviderChangeListener[] |
getProviderChangeListeners()
Get the registered provider change listeners |
boolean |
hasListeners()
Return true if there are any registered data change listeners |
void |
removeProviderChangeListener(ProviderChangeListener listener)
Remove a ProviderChangeListener from the listener list. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProviderChangeSupport(Object source)
ProviderChangeSupport
object.
source
- The collection to be given as the source for any events.Method Detail |
---|
public ProviderChangeListener[] accessDataChangeListeners()
public void addProviderChangeListener(ProviderChangeListener listener)
listener
- The ProviderChangeListener to be addedpublic void fireProviderChange(ProviderChangeEvent evt)
evt
- The ProviderChangeEvent object.public void fireProviderChange(String providerKey, byte currentRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.currentRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderChange(String providerKey, char currentRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.currentRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderChange(String providerKey, int currentRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.currentRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderChange(String providerKey, long currentRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.currentRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderChange(String providerKey, Object currentRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.currentRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderChange(String providerKey, short currentRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.currentRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderChange(String operation, String providerKey, Object currentRowKey, Object newValue)
operation
- associated ProviderChangeEvent operationproviderKey
- The programmatic name of the provider that was changed.currentRowKey
- The unique key to access the changed providernewValue
- The new value for the providerProviderChangeEvent.OPERATION_CREATE
,
ProviderChangeEvent.OPERATION_DELETE
,
ProviderChangeEvent.OPERATION_UPDATE
public void fireProviderChange(String operation, String providerKey, Object currentRowKey, Object newValue, long timestamp)
operation
- associated ProviderChangeEvent operationproviderKey
- The programmatic name of the provider that was changed.currentRowKey
- The unique key to access the changed providernewValue
- The new value for the providertimestamp
- The timestamp associated with the changeProviderChangeEvent.OPERATION_CREATE
,
ProviderChangeEvent.OPERATION_DELETE
,
ProviderChangeEvent.OPERATION_UPDATE
public void fireProviderChange(String operation, String providerKey, String columnAttributeName, String columnAttributeProperty, Object newValue)
operation
- associated ProviderChangeEvent operationproviderKey
- The programmatic name of the provider that was changed.columnAttributeName
- The programmatic attribute name of the attribute that changedcolumnAttributeProperty
- The programmatic attribute property name of the attribute that changednewValue
- The new value for the providerProviderChangeEvent.OPERATION_CREATE
,
ProviderChangeEvent.OPERATION_DELETE
,
ProviderChangeEvent.OPERATION_UPDATE
public void fireProviderChange(String operation, String providerKey, String columnAttributeName, String columnAttributeProperty, Object newValue, long timestamp)
operation
- associated ProviderChangeEvent operationproviderKey
- The programmatic name of the provider that was changed.columnAttributeName
- The programmatic attribute name of the attribute that changedcolumnAttributeProperty
- The programmatic attribute property name of the attribute that changednewValue
- The new value for the providertimestamp
- The timestamp associated with the changeProviderChangeEvent.OPERATION_CREATE
,
ProviderChangeEvent.OPERATION_DELETE
,
ProviderChangeEvent.OPERATION_UPDATE
public void fireProviderCreate(String providerKey, byte newRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.newRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderCreate(String providerKey, char newRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.newRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderCreate(String providerKey, int newRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.newRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderCreate(String providerKey, long newRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.newRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderCreate(String providerKey, Object newRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.newRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderCreate(String providerKey, short newRowKey, Object newValue)
providerKey
- The programmatic name of the provider that was changed.newRowKey
- The unique key to access the changed providernewValue
- The new value for the providerpublic void fireProviderDelete(String providerKey, byte oldRowKey)
providerKey
- The programmatic name of the provider that was changed.oldRowKey
- The old value for the providerpublic void fireProviderDelete(String providerKey, char oldRowKey)
providerKey
- The programmatic name of the provider that was changed.oldRowKey
- The old value for the providerpublic void fireProviderDelete(String providerKey, int oldRowKey)
providerKey
- The programmatic name of the provider that was changed.oldRowKey
- The old value for the providerpublic void fireProviderDelete(String providerKey, long oldRowKey)
providerKey
- The programmatic name of the provider that was changed.oldRowKey
- The old value for the providerpublic void fireProviderDelete(String providerKey, Object oldRowKey)
providerKey
- The programmatic name of the provider that was changed.oldRowKey
- The old value for the providerpublic void fireProviderDelete(String providerKey, short oldRowKey)
providerKey
- The programmatic name of the provider that was changed.oldRowKey
- The old value for the providerpublic void fireProviderRefresh(String providerKey)
providerKey
- The programmatic name of the provider that was changed.public ProviderChangeListener[] getProviderChangeListeners()
public boolean hasListeners()
public void removeProviderChangeListener(ProviderChangeListener listener)
listener
- The ProviderChangeListener to be removed
|
Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework 2.0.0.0.0 E36392-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |