sbIDatabaseResult.idl
Go to the documentation of this file.
1 /*
2  //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25  */
32 #include "nsISupports.idl"
33 
42 [scriptable, uuid(9a5fcaf6-4441-11db-9651-00e08161165f)]
44 {
51  unsigned long getColumnCount();
52 
60  AString getColumnName(in unsigned long aColumnIndex);
61 
69  unsigned long getColumnIndex(in AString aColumnName);
70 
77  unsigned long getRowCount();
78 
87  AString getRowCell(in unsigned long aRowIndex, in unsigned long aColumnIndex);
88 
97  AString getRowCellByColumn(in unsigned long aRowIndex, in AString aColumnName);
98 
109  [noscript] wstring getColumnNamePtr(in unsigned long aColumnIndex);
110 
122  [noscript] wstring getRowCellPtr(in unsigned long aRowIndex, in unsigned long aColumnIndex);
123 
135  [noscript] wstring getRowCellByColumnPtr(in unsigned long aRowIndex, in AString aColumnName);
136 
146  [noscript] void clearResultSet();
147 };
unsigned long getRowCount()
The number of rows in the result.
AString getColumnName(in unsigned long aColumnIndex)
The name of a particular column.
unsigned long getColumnCount()
The number of columns in the result.
wstring getRowCellPtr(in unsigned long aRowIndex, in unsigned long aColumnIndex)
[noscript] Get the internal pointer to the cell value.
var uuid
wstring getRowCellByColumnPtr(in unsigned long aRowIndex, in AString aColumnName)
[noscript] Get the internal pointer to the cell value (by named column).
wstring getColumnNamePtr(in unsigned long aColumnIndex)
[noscript] Get the internal pointer to the column name.
An object containing the results of a database SELECT query.
unsigned long getColumnIndex(in AString aColumnName)
The index of a particular column.
AString getRowCellByColumn(in unsigned long aRowIndex, in AString aColumnName)
Retrieve the value of a cell at a particular row for a named column.
AString getRowCell(in unsigned long aRowIndex, in unsigned long aColumnIndex)
Retrieve the value of a cell at a particular row and column.
void clearResultSet()
[noscript] Free the internally allocated resources of this results object.