The mozIStorageValueArray interface obtains provides methods to obtain data from a given result.
For an introduction on how to use this interface, see the Storage overview document.
Inherits from: nsISupports
| long getTypeOfIndex(in unsigned long aIndex); | 
| long getInt32(in unsigned long aIndex); | 
| long long getInt64(in unsigned long aIndex); | 
| double getDouble(in unsigned long aIndex); | 
| AUTF8String getUTF8String(in unsigned long aIndex); | 
| AString getString(in unsigned long aIndex); | 
| void getBlob(in unsigned long aIndex, out unsigned long aDataSize, [array,size_is(aDataSize)] out octet aData); | 
| boolean getIsNull(in unsigned long aIndex); | 
| Attribute | Type | Description | 
| numEntries | unsigned long | The number of entries in the array. | 
| Constant | Value | Description | 
| VALUE_TYPE_NULL | 0 | Null data type. | 
| VALUE_TYPE_INTEGER | 1 | INTEGERdata type. | 
| VALUE_TYPE_FLOAT | 2 | FLOATdata type. | 
| VALUE_TYPE_TEXT | 3 | TEXTdata type. | 
| VALUE_TYPE_BLOB | 4 | BLOBdata type. | 
Returns the type of the value at the given column index.
long getTypeOfIndex( in unsigned long aIndex );
aIndexThe zero-based numerical index for the column to get the data from.
One of the constants mozIStorageValueArray.VALUE_TYPE_NULL, mozIStorageValueArray.VALUE_TYPE_INTEGER, mozIStorageValueArray.VALUE_TYPE_FLOAT, mozIStorageValueArray.VALUE_TYPE_TEXT, or mozIStorageValueArray.VALUE_TYPE_BLOB describing the type aIndex is.
Obtains a Int32 from the specified index.
long getInt32( in unsigned long aIndex );
aIndexThe int32 for the specified entry.
Obtains a int64 from the specified index.
long long getInt64( in unsigned long aIndex );
aIndexThe int64 for the specified entry.
Obtains a double from the specified index.
double getDouble( in unsigned long aIndex );
aIndexThe double for the specified entry.
Obtains a UTF8String from the specified index.
AUTF8String getUTF8String( in unsigned long aIndex );
aIndexThe utf8string for the specified entry.
Obtains a string from the specified index.
AString getString( in unsigned long aIndex );
aIndexThe string for the specified entry.
Obtains a blob from the specified index.
void getBlob( in unsigned long aIndex, out unsigned long aDataSize, [array,size_is(aDataSize)] out octet aData );
aIndexaDataSizeThe blob for the specified entry.
Checks if given column index is NULL.
boolean getIsNull( in unsigned long aIndex );
aIndexReturns true if the column specified by aIndex is NULL, or false otherwise.