import "sbIDatabaseResult.idl";
Public Member Functions | |
PRInt32 | getColumnCount () |
The number of columns in the result. | |
AString | getColumnName (in PRInt32 aColumnIndex) |
The name of a particular column. | |
PRInt32 | getRowCount () |
The number of rows in the result. | |
AString | getRowCell (in PRInt32 aRowIndex, in PRInt32 aColumnIndex) |
Retrieve the value of a cell at a particular row and column. | |
AString | getRowCellByColumn (in PRInt32 aRowIndex, in AString aColumnName) |
Retrieve the value of a cell at a particular row for a named column. | |
wstring | getColumnNamePtr (in PRInt32 aColumnIndex) |
[noscript] Get the internal pointer to the column name. | |
wstring | getRowCellPtr (in PRInt32 aRowIndex, in PRInt32 aColumnIndex) |
[noscript] Get the internal pointer to the cell value. | |
wstring | getRowCellByColumnPtr (in PRInt32 aRowIndex, in AString aColumnName) |
[noscript] Get the internal pointer to the cell value (by named column). | |
void | clearResultSet () |
[noscript] Free the internally allocated resources of this results object. |
User code retrieves one of these objects from sbIDatabaseQuery::getResultObject()
Definition at line 43 of file sbIDatabaseResult.idl.
void sbIDatabaseResult::clearResultSet | ( | ) |
[noscript] Free the internally allocated resources of this results object.
This method is not available from script. It deallocates the internal memory used to contain the results data. This allows code to free most of the used memory long before the garbage collector would.
PRInt32 sbIDatabaseResult::getColumnCount | ( | ) |
The number of columns in the result.
AString sbIDatabaseResult::getColumnName | ( | in PRInt32 | aColumnIndex | ) |
The name of a particular column.
aColumnIndex | The index of the column to access. |
wstring sbIDatabaseResult::getColumnNamePtr | ( | in PRInt32 | aColumnIndex | ) |
[noscript] Get the internal pointer to the column name.
This method is not available from script. It returns the internal pointer to the value, to reduce unnecessary memory copies.
aColumnIndex | The index of the column to access. |
AString sbIDatabaseResult::getRowCell | ( | in PRInt32 | aRowIndex, | |
in PRInt32 | aColumnIndex | |||
) |
Retrieve the value of a cell at a particular row and column.
aRowIndex | The row index of the cell to retrieve. | |
aColumnIndex | The column index of the cell to retrieve. |
AString sbIDatabaseResult::getRowCellByColumn | ( | in PRInt32 | aRowIndex, | |
in AString | aColumnName | |||
) |
Retrieve the value of a cell at a particular row for a named column.
aRowIndex | The row index of the cell to retrieve. | |
aColumnName | The column name of the cell to retrieve. |
wstring sbIDatabaseResult::getRowCellByColumnPtr | ( | in PRInt32 | aRowIndex, | |
in AString | aColumnName | |||
) |
[noscript] Get the internal pointer to the cell value (by named column).
This method is not available from script. It returns the internal pointer to the value, to reduce unnecessary memory copies.
aRowIndex | The row index of the cell to retrieve. | |
aColumnName | The column name of the cell to retrieve. |
wstring sbIDatabaseResult::getRowCellPtr | ( | in PRInt32 | aRowIndex, | |
in PRInt32 | aColumnIndex | |||
) |
[noscript] Get the internal pointer to the cell value.
This method is not available from script. It returns the internal pointer to the value, to reduce unnecessary memory copies.
aRowIndex | The row index of the cell to retrieve. | |
aColumnIndex | The column index of the cell to retrieve. |
PRInt32 sbIDatabaseResult::getRowCount | ( | ) |
The number of rows in the result.