Public Member Functions | Protected Attributes

mozStorageStatementScoper Class Reference

This class wraps a statement so that it is guaraneed to be reset when this object goes out of scope. More...

#include <mozStorageHelper.h>

Collaboration diagram for mozStorageStatementScoper:

List of all members.

Public Member Functions

 mozStorageStatementScoper (mozIStorageStatement *aStatement)
 ~mozStorageStatementScoper ()
void Abandon ()
 Call this to make the statement not reset.

Protected Attributes

nsCOMPtr< mozIStorageStatementmStatement

Detailed Description

This class wraps a statement so that it is guaraneed to be reset when this object goes out of scope.

Note that this always just resets the statement. If the statement doesn't need resetting, the reset operation is inexpensive.


Constructor & Destructor Documentation

mozStorageStatementScoper::mozStorageStatementScoper ( mozIStorageStatement aStatement  )  [inline]
mozStorageStatementScoper::~mozStorageStatementScoper (  )  [inline]

Member Function Documentation

void mozStorageStatementScoper::Abandon (  )  [inline]

Call this to make the statement not reset.

You might do this if you know that the statement has been reset.


Member Data Documentation


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