#include <Snapshot.h>
Inheritance diagram for DOSnapshot:
Public Methods | |
DOSnapshot (DOConnection *pConnection, const char *tableName) | |
Constructor method. More... | |
virtual | ~DOSnapshot () |
Destructor method. More... | |
void | AddNew () |
Initiate adding a new record (row) to a table. More... | |
void | CommitAdd (bool refresh=true, bool delayedAllowed=true) |
Sends the record to the database server as an INSERT INTO SQL statement.
| |
void | CommitEdit (bool refresh=true) |
Sends the record to the database server as an UPDATE SET WHERE SQL statement. More... | |
void | Edit () |
Initiate editting a record (row) in a table. More... | |
void | Let (const char *fldName, const char *value) |
Set a field value by name. More... | |
void | Let (const unsigned int fldNum, const char *value) |
Set a field value by field number. More... | |
void | Let (const char *fldName, int value) |
Set a field value by name. More... | |
void | Let (const unsigned int fldNum, int value) |
Set a field value by field number. More... | |
Public Attributes | |
int | m_LastInsertId |
Private Methods | |
void | ConstructorInclude () |
Method which must be called first in a constructor. More... | |
void | DestructorInclude () |
Method which must be called first in a destructor. More... | |
Private Attributes | |
CString** | m_pNewData |
Definition at line 79 of file Snapshot.h.
|
Constructor method.
Definition at line 103 of file Snapshot.cpp. |
|
Destructor method.
Definition at line 120 of file Snapshot.cpp. |
|
Initiate adding a new record (row) to a table. Resets all the fields to NIL. Use Let() to set the values, then issue CommitAdd() to actually insert the record into the table. Definition at line 142 of file Snapshot.cpp. Referenced by IRPlus::InsertIRFieldRecord(). |
|
Sends the record to the database server as an INSERT INTO SQL statement.
Definition at line 165 of file Snapshot.cpp. Referenced by IRPlus::InsertIRFieldRecord(). |
|
Sends the record to the database server as an UPDATE SET WHERE SQL statement. If the table has a primary key, all its fields will be used to build a WHERE clause. Otherwise, the update will only be done if the table has only 1 row.
Definition at line 219 of file Snapshot.cpp. |
|
Method which must be called first in a constructor.
Definition at line 358 of file Snapshot.cpp. |
|
Method which must be called first in a destructor.
Reimplemented from DOQuery. Definition at line 366 of file Snapshot.cpp. Referenced by ~DOSnapshot(). |
|
Initiate editting a record (row) in a table. Copies all the values from the current row. Use Let() to change the values, then issue CommitEdit() to actually update the record in the table. Definition at line 279 of file Snapshot.cpp. |
|
Set a field value by field number.
Definition at line 345 of file Snapshot.cpp. |
|
Set a field value by name.
Definition at line 334 of file Snapshot.cpp. |
|
Set a field value by field number.
Definition at line 317 of file Snapshot.cpp. |
|
Set a field value by name.
Definition at line 308 of file Snapshot.cpp. Referenced by IRPlus::InsertIRFieldRecord(), and Let(). |
|
Definition at line 93 of file Snapshot.h. |
|
Definition at line 88 of file Snapshot.h. |