Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


oracle.adfmf.java.beans
Class ProviderChangeEvent

java.lang.Object
  extended by oracle.adfmf.java.beans.ProviderChangeEvent

All Implemented Interfaces:
java.lang.Comparable

public class ProviderChangeEvent
extends java.lang.Object
implements java.lang.Comparable

A "ProviderChange" event allow collection developers to emit events when a provider is created, updated, or deleted. 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, ..)


Field Summary
static java.lang.String OPERATION_CREATE
          Create the provider
static java.lang.String OPERATION_DELETE
          Delete the provider
static java.lang.String OPERATION_PROPAGATED_UPDATE
          Update the provider as a result of event propagation
static java.lang.String OPERATION_UPDATE
          Update the provider

 

Constructor Summary
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, byte currentRowKey, java.lang.Object newValue)
          Constructs a new ProviderChangeEvent.
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, char currentRowKey, java.lang.Object newValue)
          Constructs a new ProviderChangeEvent.
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, int currentRowKey, java.lang.Object newValue)
          Constructs a new ProviderChangeEvent.
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, long currentRowKey, java.lang.Object newValue)
          Constructs a new ProviderChangeEvent.
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, java.lang.Object currentRowKey, java.lang.Object newValue)
          Constructs a new ProviderChangeEvent.
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, java.lang.Object currentRowKey, java.lang.Object newValue, long timestamp)
          Constructs a new ProviderChangeEvent.
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, short currentRowKey, java.lang.Object newValue)
          Constructs a new ProviderChangeEvent.
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, java.lang.String columnAttributeName, java.lang.String columnAttributeProperty, java.lang.Object newValue)
          Constructs a new ProviderChangeEvent.
ProviderChangeEvent(java.lang.String operation, java.lang.String providerKey, java.lang.String columnAttributeName, java.lang.String columnAttributeProperty, java.lang.Object newValue, long timestamp)
          Constructs a new ProviderChangeEvent.

 

Method Summary
 int compareTo(java.lang.Object o)
          Compare the current provider change event with the one passed in
 java.lang.String getColumnAttribute()
          Get the event's column attribute
 java.lang.Object getCurrentRowKey()
          Get the event's current row key
 java.lang.Object getNewValue()
          Get the event's new value
 java.lang.String getOperation()
          Get the provider change operation
 java.lang.String getProviderKey()
          Get the provider key
 long getTimestamp()
          Get the event's timestamp
 java.lang.String toString()
          Get a simple string representation of the event.

 

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

 

Field Detail

OPERATION_CREATE

public static final java.lang.String OPERATION_CREATE
Create the provider
See Also:
Constant Field Values

OPERATION_DELETE

public static final java.lang.String OPERATION_DELETE
Delete the provider
See Also:
Constant Field Values

OPERATION_UPDATE

public static final java.lang.String OPERATION_UPDATE
Update the provider
See Also:
Constant Field Values

OPERATION_PROPAGATED_UPDATE

public static final java.lang.String OPERATION_PROPAGATED_UPDATE
Update the provider as a result of event propagation
See Also:
Constant Field Values

Constructor Detail

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           char currentRowKey,
                           java.lang.Object newValue)
Constructs a new ProviderChangeEvent.
Parameters:
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
currentRowKey - The unique key to access the changed provider
newValue - The new value for the provider
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           byte currentRowKey,
                           java.lang.Object newValue)
Constructs a new ProviderChangeEvent.
Parameters:
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
currentRowKey - The unique key to access the changed provider
newValue - The new value for the provider
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           int currentRowKey,
                           java.lang.Object newValue)
Constructs a new ProviderChangeEvent.
Parameters:
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
currentRowKey - The unique key to access the changed provider
newValue - The new value for the provider
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           long currentRowKey,
                           java.lang.Object newValue)
Constructs a new ProviderChangeEvent.
Parameters:
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
currentRowKey - The unique key to access the changed provider
newValue - The new value for the provider
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           short currentRowKey,
                           java.lang.Object newValue)
Constructs a new ProviderChangeEvent.
Parameters:
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
currentRowKey - The unique key to access the changed provider
newValue - The new value for the provider
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           java.lang.Object currentRowKey,
                           java.lang.Object newValue)
Constructs a new ProviderChangeEvent.
Parameters:
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
currentRowKey - The unique key to access the changed provider
newValue - The new value for the provider
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           java.lang.Object currentRowKey,
                           java.lang.Object newValue,
                           long timestamp)
Constructs a new ProviderChangeEvent.
Parameters:
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
currentRowKey - The unique key to access the changed provider
newValue - The new value for the provider
timestamp - The timestamp associated with the change
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           java.lang.String columnAttributeName,
                           java.lang.String columnAttributeProperty,
                           java.lang.Object newValue)
Constructs a new ProviderChangeEvent.
Parameters:
operation -
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
columnAttributeName - The programmatic attribute name of the attribute that changed
columnAttributeProperty - The programmatic attribute property name of the attribute that changed
newValue - The new value for the provider
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

ProviderChangeEvent

public ProviderChangeEvent(java.lang.String operation,
                           java.lang.String providerKey,
                           java.lang.String columnAttributeName,
                           java.lang.String columnAttributeProperty,
                           java.lang.Object newValue,
                           long timestamp)
Constructs a new ProviderChangeEvent.
Parameters:
operation - associated ProviderChangeEvent operation
providerKey - The programmatic name of the provider that was changed.
columnAttributeName - The programmatic attribute name of the attribute that changed
columnAttributeProperty - The programmatic attribute property name of the attribute that changed
newValue - The new value for the provider
timestamp - The timestamp associated with the change
See Also:
ProviderChangeEvent.OPERATION_CREATE, ProviderChangeEvent.OPERATION_DELETE, ProviderChangeEvent.OPERATION_UPDATE

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Compare the current provider change event with the one passed in
Specified by:
compareTo in interface java.lang.Comparable

getOperation

public java.lang.String getOperation()
Get the provider change operation

getProviderKey

public java.lang.String getProviderKey()
Get the provider key

getColumnAttribute

public java.lang.String getColumnAttribute()
Get the event's column attribute

getCurrentRowKey

public java.lang.Object getCurrentRowKey()
Get the event's current row key

getNewValue

public java.lang.Object getNewValue()
Get the event's new value

getTimestamp

public long getTimestamp()
Get the event's timestamp

toString

public java.lang.String toString()
Get a simple string representation of the event.
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


Copyright © 2012 Oracle. All Rights Reserved.