Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * vim: sw=2 ts=2 sts=2 expandtab |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "mozIStorageValueArray.idl" |
michael@0 | 8 | interface nsIVariant; |
michael@0 | 9 | |
michael@0 | 10 | [scriptable, uuid(62d1b6bd-cbfe-4f9b-aee1-0ead4af4e6dc)] |
michael@0 | 11 | interface mozIStorageRow : mozIStorageValueArray { |
michael@0 | 12 | |
michael@0 | 13 | /** |
michael@0 | 14 | * Obtains the result of a given column specified by aIndex. |
michael@0 | 15 | * |
michael@0 | 16 | * @param aIndex |
michael@0 | 17 | * Zero-based index of the result to get from the tuple. |
michael@0 | 18 | * @returns the result of the specified column. |
michael@0 | 19 | */ |
michael@0 | 20 | nsIVariant getResultByIndex(in unsigned long aIndex); |
michael@0 | 21 | |
michael@0 | 22 | /** |
michael@0 | 23 | * Obtains the result of a given column specified by aName. |
michael@0 | 24 | * |
michael@0 | 25 | * @param aName |
michael@0 | 26 | * Name of the result to get from the tuple. |
michael@0 | 27 | * @returns the result of the specified column. |
michael@0 | 28 | * @note The name of a result column is the value of the "AS" clause for that |
michael@0 | 29 | * column. If there is no AS clause then the name of the column is |
michael@0 | 30 | * unspecified and may change from one release to the next. |
michael@0 | 31 | */ |
michael@0 | 32 | nsIVariant getResultByName(in AUTF8String aName); |
michael@0 | 33 | }; |