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

E17503-02

oracle.jbo
Class InsertDeleteEvent

java.lang.Object
  extended by oracle.adfnmc.util.eventing.EventObject
      extended by oracle.jbo.JboEvent
          extended by oracle.jbo.RowEvent
              extended by oracle.jbo.InsertDeleteEvent
Direct Known Subclasses:
DeleteEvent, InsertEvent

public class InsertDeleteEvent
extends RowEvent

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

See Also:
RowSetIterator

Field Summary
 
Fields inherited from class oracle.adfnmc.util.eventing.EventObject
source
 
Constructor Summary
InsertDeleteEvent(NavigatableRowIterator source, Row row, int rowIndex, int rowCountBefore, int rowCount)
          Creates an event for a row being inserted or deleted.
 
Method Summary
 int getRowCountInRange()
          Reports the range's resulting row count.
 int getRowCountInRangeBefore()
          Reports the range's orignial row count.
 java.lang.String toString(java.lang.String className)
          Internal: For debugging only.
 
Methods inherited from class oracle.jbo.RowEvent
getRow, getRowIndex
 
Methods inherited from class oracle.adfnmc.util.eventing.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertDeleteEvent

public InsertDeleteEvent(NavigatableRowIterator source,
                         Row row,
                         int rowIndex,
                         int rowCountBefore,
                         int rowCount)
Creates an event for a row being inserted or deleted.

Parameters:
source - the iterator that generated this event.
row - the row object that was inserted or deleted.
rowIndex - the range index of the row that was inserted or deleted.
rowCountBefore - the initial number of rows.
rowCount - the resulting number of rows.
Method Detail

getRowCountInRangeBefore

public final int getRowCountInRangeBefore()
Reports the range's orignial row count.

Returns:
the range's row count before the insertion or deletion.

getRowCountInRange

public final int getRowCountInRange()
Reports the range's resulting row count.

Returns:
the range's row count after the insertion or deletion.

toString

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

Overrides:
toString in class RowEvent
Returns:
a diagnostic string.

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

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.