Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

oracle.jbo
Class InsertDeleteEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byoracle.jbo.JboEvent
          extended byoracle.jbo.RowEvent
              extended byoracle.jbo.InsertDeleteEvent
All Implemented Interfaces:
java.io.Serializable
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.

Since:
JDeveloper 3.0
See Also:
RowSetIterator, Serialized Form

Field Summary
 
Fields inherited from class java.util.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 java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 ADF Model and Business Components API Reference 10.1.2 B14022-01

 

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