Revision 412787 of mozIStorageRow

  • Revision slug: XPCOM_Interface_Reference/MozIStorageRow
  • Revision title: mozIStorageRow
  • Revision id: 412787
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 4 words added, 4 words removedMozIStorageRow XPCOM_Interface_Reference/MozIStorageRow

Revision Content

{{ gecko_minversion_header("1.9.1") }}

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>{{ gecko_minversion_header("1.9.1") }}</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 id="Method_overview" 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 id="Methods" name="Methods">Methods</h2>
<h3 id="eatCookie.28.29" 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 id="Parameters" 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 id="Return_value
">Return value<code><br>
</code></h6>
<p>An {{ interface("nsIVariant") }} object containing the value of the specified column.</p>
<h3 id="eatCookie.28.29" 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 id="Parameters" name="Parameters">Parameters</h6>
<dl><dt>aName</dt><dd>The name of the column whose value is to be returned.</dd></dl>
<h6 id="Return_value
">Return value<code><br>
</code></h6>
<p>An {{ interface("nsIVariant") }} object containing the value of the specified column.</p>
<h2 id="See_also" 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