    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.

##

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

##

getTable

     public abstract Table getTable()

getCurrentRowValues

     public abstract RowProvider getCurrentRowValues()

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.

addTableChangeListener

     public abstract void addTableChangeListener(TableChangeListener oListener)

  Add oListener a listener of TableChange events

removeTableChangeListener

     public abstract void removeTableChangeListener(TableChangeListener oListener)

  remove oListener as a listener of TableChange events

fireTableChange

     public abstract void fireTableChange(int iChangeType,
                                          int iRowAffected,
                                          int iColumnAffected,
                                          Object oNewValue,
                                          TableProvider oTableProvider,
                                          NotifyList oNotify)

  helper to fire table chanbe events

getNonCurrentRowValues

     public abstract Object[] getNonCurrentRowValues(int iRowNumber)

  Return (without changing the "current row"), the values of this tables row # iRowNumer

updateCurrentRow

     public abstract void updateCurrentRow()

  Update (to underlying database) this table's current row

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.

isCurrentRowChanged

     public abstract boolean isCurrentRowChanged()

  Return true if current row has been changed

    All Packages  Class Hierarchy  This Package  Previous  Next  Index