mozilla

Revision 136598 of mozIStorageRow

  • Revision slug: MozIStorageRow
  • Revision title: mozIStorageRow
  • Revision id: 136598
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment no wording changes; page display name changed to 'mozIStorageRow'

Revision Content

{{ fx_minversion_header("3") }}

The mozIStorageRow interface represents a row in the result set from a storage database query.

{{ InterfaceStatus("mozIStorageRow", "storage/public/mozIStorageRow.idl", "unfrozen", "Mozilla 1.9.1", "yes") }}

Inherits from: {{ Interface("mozIStorageValueArray") }}

Method overview

nsIVariant getResultByIndex(in unsigned long aIndex);
nsIVariant getResultByName(in AUTF8String aName);

Methods

getResultByIndex()

Returns the value from a specific column in the row, using a zero-based index to identify the column.

nsIVariant getResultByIndex(
   in unsigned long aIndex
);
Parameters
aIndex
The zero-based index of the column number whose value is to be returned.
Return value

An {{ interface("nsIVariant") }} object containing the value of the specified column.

getResultByName()

Returns the value from a specific column in the row, identifying the column by name.

nsIVariant getResultByName(
   in AUTF8String aName
);
Parameters
aName
The name of the column whose value is to be returned.
Return value

An {{ interface("nsIVariant") }} object containing the value of the specified column.

See also

  • Storage
  • {{ interface("mozIStorageResultSet") }}
  • {{ interface("mozIStorageConnection") }}
  • {{ interface("mozIStorageStatement") }}

Revision Source

<p>{{ fx_minversion_header("3") }}</p>
<p>The <code>mozIStorageRow</code> interface represents a row in the result set from a storage database query.</p>
<p>{{ InterfaceStatus("mozIStorageRow", "storage/public/mozIStorageRow.idl", "unfrozen", "Mozilla 1.9.1", "yes") }}</p>
<p>Inherits from: {{ Interface("mozIStorageValueArray") }}</p>
<h2 name="Method_overview">Method overview</h2>
<table class="standard-table"> <tbody> <tr> <td><code>nsIVariant <a class="internal" href="/En/MozIStorageRow#getResultByIndex()" title="en/mozIStorageRow#getResultByIndex()">getResultByIndex</a>(in unsigned long aIndex);</code></td> </tr> <tr> <td><code>nsIVariant <a class="internal" href="/En/MozIStorageRow#getResultByName()" title="en/mozIStorageRow#getResultByName()">getResultByName</a>(in AUTF8String aName);</code></td> </tr> </tbody>
</table>
<h2 name="Methods">Methods</h2>
<h3 name="eatCookie.28.29">getResultByIndex()</h3>
<p>Returns the value from a specific column in the row, using a zero-based index to identify the column.</p>
<pre>nsIVariant getResultByIndex(
   in unsigned long aIndex
);
</pre>
<h6 name="Parameters">Parameters</h6>
<dl><dt>aIndex</dt><dd>The zero-based index of the column number whose value is to be returned.</dd></dl>
<h6>Return value<code><br>
</code></h6>
<p>An {{ interface("nsIVariant") }} object containing the value of the specified column.</p>
<h3 name="eatCookie.28.29">getResultByName()</h3>
<p>Returns the value from a specific column in the row, identifying the column by name.</p>
<pre>nsIVariant getResultByName(
   in AUTF8String aName
);
</pre>
<h6 name="Parameters">Parameters</h6>
<dl><dt>aName</dt><dd>The name of the column whose value is to be returned.</dd></dl>
<h6>Return value<code><br>
</code></h6>
<p>An {{ interface("nsIVariant") }} object containing the value of the specified column.</p>
<h2 name="See_also">See also</h2>
<ul> <li><a class="internal" href="/en/Storage" title="En/Storage">Storage</a></li> <li>{{ interface("mozIStorageResultSet") }}</li> <li>{{ interface("mozIStorageConnection") }}</li> <li>{{ interface("mozIStorageStatement") }}</li>
</ul>
Revert to this revision