Struct xpcom::interfaces::mozIStorageRow
[−]
[src]
#[repr(C)]pub struct mozIStorageRow { /* fields omitted */ }
interface mozIStorageRow : mozIStorageValueArray
Methods
impl mozIStorageRow
[src]
pub fn coerce<T: mozIStorageRowCoerce>(&self) -> &T
[src]
Cast this mozIStorageRow
to one of its base interfaces.
impl mozIStorageRow
[src]
pub unsafe fn GetResultByIndex(
&self,
aIndex: uint32_t,
_retval: *mut *const nsIVariant
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: *mut *const nsIVariant
) -> nsresult
/**
* Obtains the result of a given column specified by aIndex.
*
* @param aIndex
* Zero-based index of the result to get from the tuple.
* @returns the result of the specified column.
*/
nsIVariant getResultByIndex (in unsigned long aIndex);
pub unsafe fn GetResultByName(
&self,
aName: &nsACString,
_retval: *mut *const nsIVariant
) -> nsresult
[src]
&self,
aName: &nsACString,
_retval: *mut *const nsIVariant
) -> nsresult
/**
* Obtains the result of a given column specified by aName.
*
* @param aName
* Name of the result to get from the tuple.
* @returns the result of the specified column.
* @note The name of a result column is the value of the "AS" clause for that
* column. If there is no AS clause then the name of the column is
* unspecified and may change from one release to the next.
*/
nsIVariant getResultByName (in AUTF8String aName);
Methods from Deref<Target = mozIStorageValueArray>
pub fn coerce<T: mozIStorageValueArrayCoerce>(&self) -> &T
[src]
Cast this mozIStorageValueArray
to one of its base interfaces.
pub const VALUE_TYPE_NULL: i64
pub const VALUE_TYPE_INTEGER: i64
pub const VALUE_TYPE_FLOAT: i64
pub const VALUE_TYPE_TEXT: i64
pub const VALUE_TYPE_BLOB: i64
pub unsafe fn GetNumEntries(&self, aNumEntries: *mut uint32_t) -> nsresult
[src]
/**
* numEntries
*
* number of entries in the array (each corresponding to a column
* in the database row)
*/
readonly attribute unsigned long numEntries;
pub unsafe fn GetTypeOfIndex(
&self,
aIndex: uint32_t,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: *mut int32_t
) -> nsresult
/**
* 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);
pub unsafe fn GetInt32(
&self,
aIndex: uint32_t,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: *mut int32_t
) -> nsresult
/**
* 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);
pub unsafe fn GetInt64(
&self,
aIndex: uint32_t,
_retval: *mut int64_t
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: *mut int64_t
) -> nsresult
long long getInt64 (in unsigned long aIndex);
pub unsafe fn GetDouble(
&self,
aIndex: uint32_t,
_retval: *mut c_double
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: *mut c_double
) -> nsresult
double getDouble (in unsigned long aIndex);
pub unsafe fn GetUTF8String(
&self,
aIndex: uint32_t,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: &mut nsACString
) -> nsresult
AUTF8String getUTF8String (in unsigned long aIndex);
pub unsafe fn GetString(
&self,
aIndex: uint32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: &mut nsAString
) -> nsresult
AString getString (in unsigned long aIndex);
pub unsafe fn GetBlob(
&self,
aIndex: uint32_t,
aDataSize: *mut uint32_t,
aData: *mut *mut uint8_t
) -> nsresult
[src]
&self,
aIndex: uint32_t,
aDataSize: *mut uint32_t,
aData: *mut *mut uint8_t
) -> nsresult
void getBlob (in unsigned long aIndex, out unsigned long aDataSize, [array, size_is (aDataSize)] out octet aData);
pub unsafe fn GetBlobAsString(
&self,
aIndex: uint32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: &mut nsAString
) -> nsresult
AString getBlobAsString (in unsigned long aIndex);
pub unsafe fn GetBlobAsUTF8String(
&self,
aIndex: uint32_t,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: &mut nsACString
) -> nsresult
AUTF8String getBlobAsUTF8String (in unsigned long aIndex);
pub unsafe fn GetIsNull(&self, aIndex: uint32_t, _retval: *mut bool) -> nsresult
[src]
boolean getIsNull (in unsigned long aIndex);
[src]
/**
* Returns a shared string pointer
*/
[noscript] void getSharedUTF8String (in unsigned long aIndex, out unsigned long aLength, [shared, retval] out string aResult);
[src]
[noscript] void getSharedString (in unsigned long aIndex, out unsigned long aLength, [shared, retval] out wstring aResult);
Trait Implementations
impl XpCom for mozIStorageRow
[src]
const IID: nsIID
IID: nsIID = nsID(1657910973, 52222, 20379, [174, 225, 14, 173, 74, 244, 230, 220])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for mozIStorageRow
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for mozIStorageRow
[src]
type Target = mozIStorageValueArray
The resulting type after dereferencing.
fn deref(&self) -> &mozIStorageValueArray
[src]
Dereferences the value.