Revision 558335 of mozIStorageRow

  • Revision slug: Mozilla/Tech/XPCOM/Reference/Interface/MozIStorageRow
  • Revision title: mozIStorageRow
  • Revision id: 558335
  • Created:
  • Creator: Sheppy
  • Is current revision? Yes
  • Comment Mozilla/XPCOM/Reference/Interface/MozIStorageRow Mozilla/Tech/XPCOM/Reference/Interface/MozIStorageRow

Revision Content

{{draft}}{{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

<div>{{draft}}{{gecko_minversion_header("1.9.1")}}</div>


<p>The <code>mozIStorageRow</code> interface represents a row in the result set from a storage database query.</p>

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


<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 href="/en-US/docs/MozIStorageRow#getResultByIndex()">getResultByIndex</a>(in unsigned long aIndex);</code></td>
    </tr>
    <tr>
      <td><code>nsIVariant <a href="/en-US/docs/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</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</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 href="/en-US/docs/Storage">Storage</a></li>
  <li>{{interface("mozIStorageResultSet")}}</li>
  <li>{{interface("mozIStorageConnection")}}</li>
  <li>{{interface("mozIStorageStatement")}}</li>
</ul>
Revert to this revision