michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: sw=2 ts=2 sts=2 expandtab michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "mozIStorageValueArray.idl" michael@0: interface nsIVariant; michael@0: michael@0: [scriptable, uuid(62d1b6bd-cbfe-4f9b-aee1-0ead4af4e6dc)] michael@0: interface mozIStorageRow : mozIStorageValueArray { michael@0: michael@0: /** michael@0: * Obtains the result of a given column specified by aIndex. michael@0: * michael@0: * @param aIndex michael@0: * Zero-based index of the result to get from the tuple. michael@0: * @returns the result of the specified column. michael@0: */ michael@0: nsIVariant getResultByIndex(in unsigned long aIndex); michael@0: michael@0: /** michael@0: * Obtains the result of a given column specified by aName. michael@0: * michael@0: * @param aName michael@0: * Name of the result to get from the tuple. michael@0: * @returns the result of the specified column. michael@0: * @note The name of a result column is the value of the "AS" clause for that michael@0: * column. If there is no AS clause then the name of the column is michael@0: * unspecified and may change from one release to the next. michael@0: */ michael@0: nsIVariant getResultByName(in AUTF8String aName); michael@0: };