#include <audit_base.hpp>


Public Member Functions | |
| audit_base () | |
| virtual | ~audit_base () |
| bool | db_insert (void) |
| bool | db_update (changeMap &changes) |
| bool | db_delete (void) |
| audit_base & | setUser (llong id) |
| audit_base & | setDbName (string name) |
| audit_base & | auditField (string name) |
| audit_base & | auditAll (void) |
Protected Types | |
| enum | { audit_nil = 0, audit_insert = 1, audit_update = 2, audit_delete = 3 } |
Protected Member Functions | |
| bool | getOldValues (changeMap &changes) |
| bool | changeAudits (changeMap &changes, AuditTable_Obj &audt) |
| bool | deleteAudits (changeMap &changes, AuditTable_Obj &audt) |
| bool | performAudit (changeMap &changes) |
Protected Attributes | |
| auditSet | audit_fields |
| llong | user_id |
| string | db_name |
| enum audit_base:: { ... } | audit_type |
Definition at line 40 of file audit_base.hpp.
anonymous enum [protected] |
Definition at line 48 of file audit_base.hpp.
| audit_base::audit_base | ( | ) | [inline] |
Definition at line 154 of file audit_base.hpp.
| virtual audit_base::~audit_base | ( | ) | [inline, virtual] |
Definition at line 155 of file audit_base.hpp.
| bool audit_base::getOldValues | ( | changeMap & | changes | ) | [inline, protected] |
Definition at line 55 of file audit_base.hpp.
References ocString::append(), audit_delete, audit_fields, audit_type, audit_update, openRS::close(), read_write_base::data_name(), openRS::getField(), read_write_base::key(), openRS::open(), and read_write_base::rs.
Referenced by performAudit().
| bool audit_base::changeAudits | ( | changeMap & | changes, | |
| AuditTable_Obj & | audt | |||
| ) | [inline, protected] |
Definition at line 96 of file audit_base.hpp.
References audit_fields, FieldChange_Obj::auditTable, read_write_base::db_insert(), read_write_base::key(), FieldChange_Obj::Name, and FieldChange_Obj::Value.
Referenced by performAudit().
| bool audit_base::deleteAudits | ( | changeMap & | changes, | |
| AuditTable_Obj & | audt | |||
| ) | [inline, protected] |
Definition at line 113 of file audit_base.hpp.
References Deletion_Obj::auditTable, read_write_base::key(), Deletion_Obj::Name, and Deletion_Obj::Value.
Referenced by performAudit().
| bool audit_base::performAudit | ( | changeMap & | changes | ) | [inline, protected] |
Definition at line 125 of file audit_base.hpp.
References AuditTable_Obj::Actor, AuditTable_Obj::aDatabase, AuditTable_Obj::aRow, AuditTable_Obj::aTable, audit_delete, audit_type, audit_update, AuditTable_Obj::auditType, changeAudits(), read_write_base::data_name(), read_write_base::db_insert(), db_name, deleteAudits(), getOldValues(), read_write_base::key(), and user_id.
Referenced by db_delete(), db_insert(), and db_update().
| bool audit_base::db_insert | ( | void | ) | [inline, virtual] |
Reimplemented from read_write_base.
Definition at line 157 of file audit_base.hpp.
References audit_insert, audit_type, read_write_base::db_insert(), and performAudit().
| bool audit_base::db_update | ( | changeMap & | changes | ) | [inline, virtual] |
Reimplemented from read_write_base.
Definition at line 164 of file audit_base.hpp.
References audit_type, audit_update, read_write_base::db_update(), and performAudit().
| bool audit_base::db_delete | ( | void | ) | [inline, virtual] |
Reimplemented from read_write_base.
Definition at line 170 of file audit_base.hpp.
References audit_delete, audit_type, read_write_base::db_delete(), and performAudit().
| audit_base& audit_base::setUser | ( | llong | id | ) | [inline] |
| audit_base& audit_base::setDbName | ( | string | name | ) | [inline] |
| audit_base& audit_base::auditField | ( | string | name | ) | [inline] |
| audit_base& audit_base::auditAll | ( | void | ) | [inline] |
Definition at line 197 of file audit_base.hpp.
References audit_fields, openRS::getField(), openRS::getFieldCount(), basicField::getName(), and read_write_base::rs.
auditSet audit_base::audit_fields [protected] |
Definition at line 44 of file audit_base.hpp.
Referenced by auditAll(), auditField(), changeAudits(), and getOldValues().
llong audit_base::user_id [protected] |
string audit_base::db_name [protected] |
enum { ... } audit_base::audit_type [protected] |
Referenced by db_delete(), db_insert(), db_update(), getOldValues(), and performAudit().
1.5.5