Servoy 3.5.x Public API

com.servoy.j2db.dataprocessing
Interface IDataSet

All Superinterfaces:
Serializable

public interface IDataSet
extends Serializable


Method Summary
 void addRow(int index, Object[] new_record_value)
           
 void addRow(Object[] array)
          Add a row in memory (not in db).
 void clearHadMoreRows()
          clears the moreRows boolean
 int getColumnCount()
          Get the number of columns in this dataset.
 String[] getColumnNames()
          Return the names of the columns, can be null is not requested from server.
 Object[] getRow(int row)
          Get a specified row.
 int getRowCount()
          Get the number of rows in this dataset.
 boolean hadMoreRows()
          Returns true if the query had more results but this set was limited by performQuery (rowsToRetrieve).
 void removeRow(int index)
          Remove a row from memory (not in db).
 void setRow(int index, Object[] array)
          Add a row in memory (not in db).
 void sort(int column, boolean ascending)
           
 

Method Detail

addRow

void addRow(int index,
            Object[] new_record_value)
Parameters:
index -
new_record_value -

addRow

void addRow(Object[] array)
Add a row in memory (not in db).

Parameters:
array -

clearHadMoreRows

void clearHadMoreRows()
clears the moreRows boolean


getColumnCount

int getColumnCount()
Get the number of columns in this dataset.

Returns:
int the count

getColumnNames

String[] getColumnNames()
Return the names of the columns, can be null is not requested from server.

Returns:
int the names

getRow

Object[] getRow(int row)
Get a specified row.

Parameters:
row - the row to get
Returns:
the row data

getRowCount

int getRowCount()
Get the number of rows in this dataset.

Returns:
int the count

hadMoreRows

boolean hadMoreRows()
Returns true if the query had more results but this set was limited by performQuery (rowsToRetrieve).

Returns:
boolean

removeRow

void removeRow(int index)
Remove a row from memory (not in db).

Parameters:
index -

setRow

void setRow(int index,
            Object[] array)
Add a row in memory (not in db).

Parameters:
index -
array -

sort

void sort(int column,
          boolean ascending)
Parameters:
column -
ascending -

Copyright © 2009 Servoy B.V.