wxSQLite3Hook Class Reference

Interface for a user defined hook function. More...

#include <wxsqlite3.h>

List of all members.

Public Types

enum  wxUpdateType { SQLITE_DELETE = 9, SQLITE_INSERT = 18, SQLITE_UPDATE = 23 }
 Codes identifying the command for which the hook is called. More...

Public Member Functions

virtual ~wxSQLite3Hook ()
 Virtual destructor.
virtual bool CommitCallback ()
 Execute the commit hook callback function.
virtual void RollbackCallback ()
 Execute the rollback hook callback function.
virtual void UpdateCallback (wxUpdateType WXUNUSED(type), const wxString &WXUNUSED(database), const wxString &WXUNUSED(table), wxLongLong WXUNUSED(rowid))
 Execute the hook callback function.


Detailed Description

Interface for a user defined hook function.

Member Enumeration Documentation

Codes identifying the command for which the hook is called.

Enumerator:
SQLITE_DELETE 
SQLITE_INSERT 
SQLITE_UPDATE 


Constructor & Destructor Documentation

virtual wxSQLite3Hook::~wxSQLite3Hook (  )  [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual bool wxSQLite3Hook::CommitCallback (  )  [inline, virtual]

Execute the commit hook callback function.

Please refer to the SQLite documentation for further information.

Returns:
true to request rollback of the transaction, false to continue with commit

virtual void wxSQLite3Hook::RollbackCallback (  )  [inline, virtual]

Execute the rollback hook callback function.

Please refer to the SQLite documentation for further information.

virtual void wxSQLite3Hook::UpdateCallback ( wxUpdateType   WXUNUSEDtype,
const wxString &  WXUNUSEDdatabase,
const wxString &  WXUNUSEDtable,
wxLongLong   WXUNUSEDrowid 
) [inline, virtual]

Execute the hook callback function.

Please refer to the SQLite documentation for further information about the meaning of the parameters.

Parameters:
type wxHookType. The value signifies what kind of operation is to be authorized.
database Name of the database
table Name of the table
rowid The rowid of the affected row


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

Generated on Thu Jan 15 19:47:00 2009 for wxSQLite3 by  doxygen 1.5.6