From 85430c442e355b6a08a6448f493fcd95d286cc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Fri, 25 Sep 2009 15:32:21 -0700 Subject: [PATCH] Bug 518440 - Deprecate mozIStorageStatementWrapper & mozIStorageStatement.step() in IDL. r=sdwilsh --HG-- extra : rebase_source : 0ede87a6eb9a34475d9efafa433809e571a104d3 --- storage/public/mozIStorageStatement.idl | 6 ++++-- storage/public/mozIStorageStatementWrapper.idl | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/storage/public/mozIStorageStatement.idl b/storage/public/mozIStorageStatement.idl index c0790915840c..0c409190a89d 100644 --- a/storage/public/mozIStorageStatement.idl +++ b/storage/public/mozIStorageStatement.idl @@ -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(); */ /** diff --git a/storage/public/mozIStorageStatementWrapper.idl b/storage/public/mozIStorageStatementWrapper.idl index b268aafb2dec..216e300d887c 100644 --- a/storage/public/mozIStorageStatementWrapper.idl +++ b/storage/public/mozIStorageStatementWrapper.idl @@ -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(); /**