Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

oracle.jbo
Class UpdateEvent

java.lang.Object
  extended by java.util.EventObject
      extended by oracle.jbo.JboEvent
          extended by oracle.jbo.RowEvent
              extended by oracle.jbo.UpdateEvent
All Implemented Interfaces:
java.io.Serializable

public class UpdateEvent
extends RowEvent

An event class used by RowSetIterator to inform its listeners when a row is modified.

Since:
JDeveloper 3.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UpdateEvent(RowSetIterator source, Row row, int rowIndex, int[] attrIndices)
          Creates an event when a row is modified.
 
Method Summary
protected  java.util.List<java.lang.String> calcRefreshAccessorNames()
           
 java.util.List<java.lang.String> getAccessorsToRefresh()
           
 int[] getChangedAttrIndices()
          Gets the indices of the changed attributes.
 java.lang.String[] getChangedAttrNames()
          Gets the names of the changed attributes.
 boolean isHintsChanged()
           
 boolean isRowKeyUpdated()
           
 void setHintsChanged(boolean hintsChanged)
           
 java.lang.String toString()
          Internal: For debugging only.
 
Methods inherited from class oracle.jbo.RowEvent
getRow, getRowIndex, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateEvent

public UpdateEvent(RowSetIterator source,
                   Row row,
                   int rowIndex,
                   int[] attrIndices)
Creates an event when a row is modified.

Parameters:
source - an accessor to a set of rows.
row - the modified row.
rowIndex - the row's index in the row set range.
attrIndices - an array containing the indices of the attributes that have been modified.
Method Detail

getChangedAttrIndices

public int[] getChangedAttrIndices()
Gets the indices of the changed attributes.

Returns:
an array containing the indices of the attributes that have been modified.

getChangedAttrNames

public java.lang.String[] getChangedAttrNames()
Gets the names of the changed attributes.

Returns:
an array containing the names of the attributes that have been modified.

toString

public java.lang.String toString()
Internal: For debugging only.

Overrides:
toString in class java.util.EventObject
Returns:
a diagnostic string.

setHintsChanged

public void setHintsChanged(boolean hintsChanged)

isHintsChanged

public boolean isHintsChanged()

calcRefreshAccessorNames

protected java.util.List<java.lang.String> calcRefreshAccessorNames()

getAccessorsToRefresh

public java.util.List<java.lang.String> getAccessorsToRefresh()
Returns:
a list of accessor names that need to be refreshed due to attribute changes notified by this event. May return null if no accessor metadata is available to the event.

isRowKeyUpdated

public boolean isRowKeyUpdated()

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

Copyright © 1997, 2010, Oracle. All rights reserved.