mozIStorageValueArray wraps an array of SQL values,
 such as a single database row.
[scriptable, uuid(07b5b93e-113c-4150-863c-d247b003a55d)]
interface mozIStorageValueArray : nsISupports

Constants

 These type values are returned by getTypeOfIndex
 to indicate what type of value is present at
 a given column.
const long VALUE_TYPE_NULL = 0

          
const long VALUE_TYPE_INTEGER = 1

          
const long VALUE_TYPE_FLOAT = 2

          
const long VALUE_TYPE_TEXT = 3

          
const long VALUE_TYPE_BLOB = 4

Attributes

 numEntries

 number of entries in the array (each corresponding to a column
 in the database row)
readonly attribute unsigned long numEntries

Methods


          
void getBlob(in unsigned long aIndex, out unsigned long aDataSize, [array, size_is(aDataSize)] out octet aData)

          
double getDouble(in unsigned long aIndex)
 Obtain a value for the given entry (column) index.
 Due to SQLite's type conversion rules, any of these are valid
 for any column regardless of the column's data type.  However,
 if the specific type matters, getTypeOfIndex should be used
 first to identify the column type, and then the appropriate
 get method should be called.

 If you ask for a string value for a NULL column, you will get an empty
 string with IsVoid set to distinguish it from an explicitly set empty
 string.
long getInt32(in unsigned long aIndex)

          
long long getInt64(in unsigned long aIndex)

          
boolean getIsNull(in unsigned long aIndex)

          
[noscript] void getSharedBlob(in unsigned long aIndex, out unsigned long aLength, [retval, shared] out octetPtr aResult)

          
[noscript] void getSharedString(in unsigned long aIndex, out unsigned long aLength, [retval, shared] out wstring aResult)
 Returns a shared string pointer
[noscript] void getSharedUTF8String(in unsigned long aIndex, out unsigned long aLength, [retval, shared] out string aResult)

          
AString getString(in unsigned long aIndex)
 Returns the type of the value at the given column index;
 one of VALUE_TYPE_NULL, VALUE_TYPE_INTEGER, VALUE_TYPE_FLOAT,
 VALUE_TYPE_TEXT, VALUE_TYPE_BLOB.
long getTypeOfIndex(in unsigned long aIndex)

          
AUTF8String getUTF8String(in unsigned long aIndex)