    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface netscape.peas.TableInfo

public interface TableInfo

Basic methods of a Cursor component. A cursor component is a component which supports the CursorDataProvider and/or the CursorDataReceiver interfaces, both of which have a method for obtaining this interface. Still to do... info about database?

##

addRow()
  Add a row to the end of the table
deleteRow(int, boolean)
  Delete the specified row number.
executeQuery()
  Evalutate the query, and fetch the appropriate amount of rows, based on the "bufferSize" property.
fetchMoreRows()
  Get more rows, if "rowsPending" property is true, otherwise does nothing.
getCurrentRowNumber()
  getCurrentRowNumber allows clients of this Table to get the value of its its "currentRowNumber" property.
getFetchBufferSize()
  Setter method for this cursor's "bufferSize" property.
getQuery()
  Getter method for this cursor's "query" property.
getRowsPending()
  Getter for the booelan "rowsPending" property.
nextRow()
  Change the position of this cursor to the next row.
previousRow()
  Change the position of this cursor to the next row.
setCurrentRowNumber(int, boolean)
  setCurrentRowNumber allows clients of this Table adjust its "currentRowNumber" property.
setFetchBufferSize(int)
  Getter method for this cursor's "bufferSize" property.
setQuery(String)
  Setter method for this cursor's "query" property.
setTableValue(int, int, Object, NotifyList)
  Method to set this table's value at row# iRow and column# iColumn.

##

getQuery

     public abstract String getQuery()

  Getter method for this cursor's "query" property.

setQuery

     public abstract void setQuery(String sNewQuery)

  Setter method for this cursor's "query" property.

getFetchBufferSize

     public abstract int getFetchBufferSize()

  Setter method for this cursor's "bufferSize" property. this specifies the number of rows fetched when the query is executed, and on successive fetchMoreRows() calls. A buffer size of 0 means that all rows are fetched before control is returned from executeQuery.

setFetchBufferSize

     public abstract void setFetchBufferSize(int iNewBufferSize)

  Getter method for this cursor's "bufferSize" property. this specifies the number of rows fetched when the query is executed, and on successive fetchMoreRows() calls.

executeQuery

     public abstract void executeQuery()

  Evalutate the query, and fetch the appropriate amount of rows, based on the "bufferSize" property. If not all rows have been fetched, the rowsPending property will have a "true" value. The numRowsFetched property will equal the number of rows satisfying the query only if the numRowsFetched property is "false".

getRowsPending

     public abstract boolean getRowsPending()

  Getter for the booelan "rowsPending" property.

fetchMoreRows

     public abstract void fetchMoreRows()

  Get more rows, if "rowsPending" property is true, otherwise does nothing.

getCurrentRowNumber

     public abstract int getCurrentRowNumber()

  getCurrentRowNumber allows clients of this Table to get the value of its its "currentRowNumber" property. It ought to be exposed in the beaninfo as the "read" method for this property.

setCurrentRowNumber

     public abstract boolean setCurrentRowNumber(int iNewRowNumber,
                                                 boolean bNotify)

  setCurrentRowNumber allows clients of this Table adjust its "currentRowNumber" property. It ought to be exposed in the beaninfo as the "write" method for this property.

nextRow

     public abstract boolean nextRow()

  Change the position of this cursor to the next row. Return false if there is none.

previousRow

     public abstract boolean previousRow()

  Change the position of this cursor to the next row. Return false if there is none.

deleteRow

     public abstract void deleteRow(int iRowNumber,
                                    boolean bNotify)

  Delete the specified row number.

addRow

     public abstract void addRow()

  Add a row to the end of the table

setTableValue

     public abstract void setTableValue(int iRow,
                                        int iColumn,
                                        Object oNewValue,
                                        NotifyList oNotify)

  Method to set this table's value at row# iRow and column# iColumn.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index