Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Attributes
mozSqlRequest Class Reference

#include <mozSqlRequest.h>

Inheritance diagram for mozSqlRequest:
Inheritance graph
[legend]
Collaboration diagram for mozSqlRequest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 mozSqlRequest (mozISqlConnection *aConnection)
virtual ~mozSqlRequest ()
void cancel ()
 Cancels the operation.

Public Attributes

NS_DECL_ISUPPORTS friend class mozSqlConnection
readonly attribute AString errorMessage
 The most recent error message.
readonly attribute mozISqlResult result
 The result of the operation.
readonly attribute long affectedRows
 The number of rows that were affected during an update.
readonly attribute long lastID
 The ID of the most recently added record.
readonly attribute AString query
 The SQL query.
readonly attribute nsISupports ctxt
 The context passed to the connection's asyncExecuteQuery or asyncExecuteUpdate method.
readonly attribute
mozISqlRequestObserver 
observer
 The observer that listens for when the request is finished.
const long STATUS_NONE = 0
 Status codes.
const long STATUS_EXECUTED = 1
const long STATUS_COMPLETE = 2
const long STATUS_ERROR = 3
const long STATUS_CANCELLED = 4
readonly attribute long status
 The status of the request.

Protected Attributes

nsCOMPtr< nsIWeakReferencemConnection
nsString mErrorMessage
nsCOMPtr< mozISqlResultmResult
PRInt32 mAffectedRows
PRInt32 mLastID
PRBool mIsQuery
nsString mQuery
nsCOMPtr< nsISupports > mCtxt
nsCOMPtr< mozISqlRequestObservermObserver
PRInt32 mStatus

Detailed Description

Definition at line 47 of file mozSqlRequest.h.


Constructor & Destructor Documentation

Definition at line 39 of file mozSqlRequest.cpp.

Here is the call graph for this function:

Definition at line 47 of file mozSqlRequest.cpp.

{
}

Member Function Documentation

void mozISqlRequest::cancel ( ) [inherited]

Cancels the operation.


Member Data Documentation

The number of rows that were affected during an update.

Definition at line 65 of file mozISqlRequest.idl.

readonly attribute nsISupports mozISqlRequest::ctxt [inherited]

The context passed to the connection's asyncExecuteQuery or asyncExecuteUpdate method.

Definition at line 81 of file mozISqlRequest.idl.

readonly attribute AString mozISqlRequest::errorMessage [inherited]

The most recent error message.

Definition at line 55 of file mozISqlRequest.idl.

readonly attribute long mozISqlRequest::lastID [inherited]

The ID of the most recently added record.

Definition at line 70 of file mozISqlRequest.idl.

Definition at line 64 of file mozSqlRequest.h.

Definition at line 60 of file mozSqlRequest.h.

nsCOMPtr<nsISupports> mozSqlRequest::mCtxt [protected]

Definition at line 69 of file mozSqlRequest.h.

Definition at line 62 of file mozSqlRequest.h.

Definition at line 67 of file mozSqlRequest.h.

Definition at line 65 of file mozSqlRequest.h.

Definition at line 70 of file mozSqlRequest.h.

Definition at line 57 of file mozSqlRequest.h.

Definition at line 68 of file mozSqlRequest.h.

Definition at line 63 of file mozSqlRequest.h.

Definition at line 72 of file mozSqlRequest.h.

The observer that listens for when the request is finished.

Methods of the observer should be called by the request.

Definition at line 87 of file mozISqlRequest.idl.

readonly attribute AString mozISqlRequest::query [inherited]

The SQL query.

Definition at line 75 of file mozISqlRequest.idl.

The result of the operation.

Definition at line 60 of file mozISqlRequest.idl.

readonly attribute long mozISqlRequest::status [inherited]

The status of the request.

Definition at line 101 of file mozISqlRequest.idl.

Definition at line 96 of file mozISqlRequest.idl.

Definition at line 94 of file mozISqlRequest.idl.

Definition at line 95 of file mozISqlRequest.idl.

Definition at line 93 of file mozISqlRequest.idl.

Status codes.

Definition at line 92 of file mozISqlRequest.idl.


The documentation for this class was generated from the following files: