storage/public/mozIStorageRow.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/storage/public/mozIStorageRow.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + * vim: sw=2 ts=2 sts=2 expandtab 
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "mozIStorageValueArray.idl"
    1.11 +interface nsIVariant;
    1.12 +
    1.13 +[scriptable, uuid(62d1b6bd-cbfe-4f9b-aee1-0ead4af4e6dc)]
    1.14 +interface mozIStorageRow : mozIStorageValueArray {
    1.15 +
    1.16 +  /**
    1.17 +   * Obtains the result of a given column specified by aIndex.
    1.18 +   *
    1.19 +   * @param aIndex
    1.20 +   *        Zero-based index of the result to get from the tuple.
    1.21 +   * @returns the result of the specified column.
    1.22 +   */
    1.23 +  nsIVariant getResultByIndex(in unsigned long aIndex);
    1.24 +
    1.25 +  /**
    1.26 +   * Obtains the result of a given column specified by aName.
    1.27 +   *
    1.28 +   * @param aName
    1.29 +   *        Name of the result to get from the tuple.
    1.30 +   * @returns the result of the specified column.
    1.31 +   * @note The name of a result column is the value of the "AS" clause for that
    1.32 +   *       column.  If there is no AS clause then the name of the column is
    1.33 +   *       unspecified and may change from one release to the next.
    1.34 +   */
    1.35 +  nsIVariant getResultByName(in AUTF8String aName);
    1.36 +};

mercurial