Bug 518440 - Deprecate mozIStorageStatementWrapper & mozIStorageStatement.step() in IDL. r=sdwilsh

--HG--
extra : rebase_source : 0ede87a6eb9a34475d9efafa433809e571a104d3
This commit is contained in:
Paul O’Shannessy 2009-09-25 15:32:21 -07:00
parent 0fad456e89
commit 5b3c2717f0
2 changed files with 10 additions and 4 deletions

View File

@ -150,7 +150,7 @@ interface mozIStorageStatement : mozIStorageValueArray {
/**
* Execute the query, ignoring any results. This is accomplished by
* calling step() once, and then calling reset().
* calling executeStep() once, and then calling reset().
*
* Error and last insert info, etc. are available from
* the mozStorageConnection.
@ -174,9 +174,11 @@ interface mozIStorageStatement : mozIStorageValueArray {
* when no more data is returned. This method is only available to JavaScript
* consumers.
*
* @deprecated As of Mozilla 1.9.2 in favor of executeStep().
*
* @returns a boolean indicating whether there are more rows or not.
*
* boolean step();
* [deprecated] boolean step();
*/
/**

View File

@ -49,7 +49,11 @@ interface mozIStorageStatementParams : nsISupports {
// magic interface for parameter setting that implements nsIXPCScriptable.
};
[scriptable, uuid(eee6f7c9-5586-4eaf-b35c-dca987c4ffd1)]
/**
* @deprecated As of Mozilla 1.9.2. Methods are already provided on
* mozIStorageStatement.
*/
[scriptable, deprecated, uuid(eee6f7c9-5586-4eaf-b35c-dca987c4ffd1)]
interface mozIStorageStatementWrapper : nsISupports {
/**
* Initialize this wrapper with aStatement.
@ -65,7 +69,7 @@ interface mozIStorageStatementWrapper : nsISupports {
* Step, reset, and execute the wrapped statement.
*/
void reset();
boolean step();
[deprecated] boolean step();
void execute();
/**