All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface netscape.peas.TableProvider

public interface TableProvider
extends RowProvider
Methods which allow a client to receive data from this cursor. to do: add/removeCursorChangeListner methods, etc.


Method Index

 o addTableChangeListener(TableChangeListener)
Add oListener a listener of TableChange events
 o doUpdateRow(Object[], Object[], Object[])
Helper to perform actual database update.
 o fireTableChange(int, int, int, Object, TableProvider, NotifyList)
helper to fire table chanbe events
 o getCurrentRowValues()
 o getNonCurrentRowValues(int)
Return (without changing the "current row"), the values of this tables row # iRowNumer
 o getNumRowsFetched()
Getter method for "NumRowsFetched" property.
 o getTable()
 o isCurrentRowChanged()
Return true if current row has been changed
 o removeTableChangeListener(TableChangeListener)
remove oListener as a listener of TableChange events
 o updateCurrentRow()
Update (to underlying database) this table's current row

Methods

 o getTable
 public abstract Table getTable()
 o getCurrentRowValues
 public abstract RowProvider getCurrentRowValues()
 o getNumRowsFetched
 public abstract int getNumRowsFetched()
Getter method for "NumRowsFetched" property. This is the total number of rows satisfying the query if and only if the "rowsPending" property is true.

 o addTableChangeListener
 public abstract void addTableChangeListener(TableChangeListener oListener)
Add oListener a listener of TableChange events

 o removeTableChangeListener
 public abstract void removeTableChangeListener(TableChangeListener oListener)
remove oListener as a listener of TableChange events

 o fireTableChange
 public abstract void fireTableChange(int iChangeType,
                                      int iRowAffected,
                                      int iColumnAffected,
                                      Object oNewValue,
                                      TableProvider oTableProvider,
                                      NotifyList oNotify)
helper to fire table chanbe events

 o getNonCurrentRowValues
 public abstract Object[] getNonCurrentRowValues(int iRowNumber)
Return (without changing the "current row"), the values of this tables row # iRowNumer

 o updateCurrentRow
 public abstract void updateCurrentRow()
Update (to underlying database) this table's current row

 o doUpdateRow
 public abstract void doUpdateRow(Object aColumnNames[],
                                  Object aNewValues[],
                                  Object aOldValues[])
Helper to perform actual database update. This, or updateCurrentRow can be overridden to actually sen data to the database.

 o isCurrentRowChanged
 public abstract boolean isCurrentRowChanged()
Return true if current row has been changed


All Packages  Class Hierarchy  This Package  Previous  Next  Index