mozilla

Revision 128600 of mozIStorageBindingParams

  • Revision slug: mozIStorageBindingParams
  • Revision title: mozIStorageBindingParams
  • Revision id: 128600
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment wip; 37 words added, 15 words removed

Revision Content

{{ gecko_minversion_header("1.9.2") }}

The mozIStorageBindingParams interface is used to bind values to parameters prior to calling {{ ifmethod("mozIStorageStatement", "executeAsync") }}.

{{ InterfaceStatus("mozIStorageBindingParams", "storage/public/mozIStorageBindingParams.idl", "unfrozen", "Mozilla 1.9.2", "yes") }}

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

You should only create mozIStorageBindingParams objects by calling the {{ ifandmethod("mozIStorageBindingParamsArray", "newBindingParams") }}.

Method overview

void bindByIndex(in unsigned long aIndex, in {{ interface("nsIVariant") }} aValue);
void bindBlobByIndex(in unsigned long aIndex, [array, const, size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);
void bindDoubleByIndex(in unsigned long aIndex, in double aValue); {{ noscript_inline() }}
void bindInt32ByIndex(in unsigned long aIndex, in long aValue); {{ noscript_inline() }}
void bindInt64ByIndex(in unsigned long aIndex, in long long aValue); {{ noscript_inline() }}
void bindNullByIndex(in unsigned long aIndex); {{ noscript_inline() }}
void bindStringByIndex(in unsigned long aIndex, in AString aValue); {{ noscript_inline() }}
void bindUTF8StringByIndex(in unsigned long aIndex, in AUTF8String aValue); {{ noscript_inline() }}
void bindByName(in AUTF8String aName, in {{ interface("nsIVariant") }} aValue);
void bindBlobByName(in AUTF8String aName, [array, const, size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);
void bindDoubleByName(in AUTF8String aName, in double aValue); {{ noscript_inline() }}
void bindInt32ByName(in AUTF8String aName, in long aValue); {{ noscript_inline() }}
void bindInt64ByName(in AUTF8String aName, in long long aValue); {{ noscript_inline() }}
void bindNullByName(in AUTF8String aName); {{ noscript_inline() }}
void bindStringByName(in AUTF8String aName, in AString aValue); {{ noscript_inline() }}
void bindUTF8StringByName(in AUTF8String aName, in AUTF8String aValue); {{ noscript_inline() }}

Methods

bindByName()

Binds a value to a parameter with the specified name.

void bindByName(
  in AUTF8String aName,
  in nsIVariant aValue
);
Parameters
aName
The name of the parameter to which to bind a value.
aValue
The value to bind to the specified parameter.

Revision Source

<p>{{ gecko_minversion_header("1.9.2") }}</p>
<p>The <code>mozIStorageBindingParams</code> interface is used to bind values to parameters prior to calling {{ ifmethod("mozIStorageStatement", "executeAsync") }}.</p>
<p>{{ InterfaceStatus("mozIStorageBindingParams", "storage/public/mozIStorageBindingParams.idl", "unfrozen", "Mozilla 1.9.2", "yes") }}</p>
<p>Inherits from: {{ Interface("nsISupports") }}</p>
<p>You should only create <code>mozIStorageBindingParams</code> objects by calling the {{ ifandmethod("mozIStorageBindingParamsArray", "newBindingParams") }}.</p>
<h2 name="Method_overview">Method overview</h2>
<table class="standard-table"> <tbody> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindByIndex()" title="En/mozIStorageBindingParams/bindByIndex()">bindByIndex</a>(in unsigned long aIndex, in {{ interface("nsIVariant") }} aValue);</code></td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindBlobByIndex()" title="En/mozIStorageBindingParams/bindBlobByIndex()">bindBlobByIndex</a>(in unsigned long aIndex, [array, const, size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);</code></td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindDoubleByIndex()" title="En/mozIStorageBindingParams/bindDoubleByIndex()">bindDoubleByIndex</a>(in unsigned long aIndex, in double aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindInt32ByIndex()" title="En/mozIStorageBindingParams/bindInt32ByIndex()">bindInt32ByIndex</a>(in unsigned long aIndex, in long aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindInt64ByIndex()" title="En/mozIStorageBindingParams/bindInt64ByIndex()">bindInt64ByIndex</a>(in unsigned long aIndex, in long long aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindNullByIndex()" title="En/mozIStorageBindingParams/bindNullByIndex()">bindNullByIndex</a>(in unsigned long aIndex);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindStringByIndex()" title="En/mozIStorageBindingParams/bindStringByIndex()">bindStringByIndex</a>(in unsigned long aIndex, in AString aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindUTF8StringByIndex()" title="En/mozIStorageBindingParams/bindUTF8StringByIndex()">bindUTF8StringByIndex</a>(in unsigned long aIndex, in AUTF8String aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindByName()" title="En/mozIStorageBindingParams/bindByName()">bindByName</a>(in AUTF8String aName, in {{ interface("nsIVariant") }} aValue);</code></td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindBlobByName()" title="En/mozIStorageBindingParams/bindBlobByName()">bindBlobByName</a>(in AUTF8String aName, [array, const, size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);</code></td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindDoubleByName()" title="En/mozIStorageBindingParams/bindDoubleByName()">bindDoubleByName</a>(in AUTF8String aName, in double aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindInt32ByName()" title="En/mozIStorageBindingParams/bindInt32ByName()">bindInt32ByName</a>(in AUTF8String aName, in long aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindInt64ByName()" title="En/mozIStorageBindingParams/bindInt64ByName()">bindInt64ByName</a>(in AUTF8String aName, in long long aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindNullByName()" title="En/mozIStorageBindingParams/bindNullByName()">bindNullByName</a>(in AUTF8String aName);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindStringByName()" title="En/mozIStorageBindingParams/bindStringByName()">bindStringByName</a>(in AUTF8String aName, in AString aValue);</code> {{ noscript_inline() }}</td> </tr> <tr> <td><code>void <a href="/En/mozIStorageBindingParams/bindUTF8StringByName()" title="En/mozIStorageBindingParams/bindUTF8StringByName()">bindUTF8StringByName</a>(in AUTF8String aName, in AUTF8String aValue);</code> {{ noscript_inline() }}</td> </tr> </tbody>
</table>
<h2 name="Methods">Methods</h2>
<h3 name="eatCookie.28.29">bindByName()</h3>
<p>Binds a value to a parameter with the specified name.</p>
<pre class="eval">void bindByName(
  in AUTF8String aName,
  in nsIVariant aValue
);
</pre>
<h6 name="Parameters">Parameters</h6>
<dl> <dt><code>aName</code></dt> <dd>The name of the parameter to which to bind a value.</dd> <dt><code>aValue</code></dt> <dd>The value to bind to the specified parameter.</dd>
</dl>
Revert to this revision