#include <Record.h>
Collaboration diagram for Record:

Public Types | |
| typedef std::vector<rColumn*> | vectormColumn |
| vector holding defined mColumn objects for the template. More... | |
Public Methods | |
| Record (dbMeta* pdbMeta) | |
| Contruct the record buffer for this instance. More... | |
| virtual | ~Record () |
| rColumn* | getColumn (int col) |
| Return a record column object by column number. More... | |
| rColumn* | getColumn (const nsAReadableString& name) |
| Return a record column object by column name. More... | |
| rColumn* | getIdColumn () |
| Return the record column object for the id column. More... | |
| rColumn* | getMaster () |
| Return the master record object for a slave column. More... | |
| void | setMaster (rColumn* pMaster) |
| Set the master column for a slave record. More... | |
| dbMeta* | getMeta () |
| Get the static data for this record. More... | |
| int | size () |
| Count of columns in this record. More... | |
| void | clearError () |
| Clear error message cache for all columns. More... | |
| void | copyCurrent () |
| Put the current value of the record into the new and old values. More... | |
| void | update () |
| Put the new record value into the current value. More... | |
| void | setDefault () |
| Set the current record value from the static defaults. More... | |
Public Attributes | |
| vectormColumn | m_columns |
Private Types | |
| typedef std::map<const nsAReadableString*, rColumn*, compareARS> | mapStringColumn |
| hash of columns based on column name. More... | |
Private Attributes | |
| mapStringColumn | m_hColumns |
| dbMeta* | m_pdbMeta |
| Reference to the static definition of this record. More... | |
| rColumn* | m_pMaster |
| used by a slave record to back reference to it's master. More... | |
| rColumn* | m_pIdCol |
| reference to the primary key column for the record. More... | |
|
|
hash of columns based on column name.
|
|
|
vector holding defined mColumn objects for the template.
|
|
|
Contruct the record buffer for this instance. Link it to the static column descriptions. Build and lin a record instance for any slave columns. Remember which column is the id column. Definition at line 33 of file Record.cpp. |
|
|
Definition at line 52 of file Record.cpp. |
|
|
Clear error message cache for all columns.
Definition at line 128 of file Record.cpp. Referenced by Transaction::aDelete(), Transaction::aInsert(), Transaction::aNew(), and Transaction::aUpdate(). |
|
|
Put the current value of the record into the new and old values.
Definition at line 139 of file Record.cpp. Referenced by Transaction::validateFields(), and Report::validateFields(). |
|
|
Return a record column object by column name.
Definition at line 74 of file Record.cpp. |
|
|
Return a record column object by column number.
Definition at line 64 of file Record.cpp. Referenced by Transaction::buildRecord(), Report::buildRecord(), Transaction::validateFields(), and Report::validateFields(). |
|
|
Return the record column object for the id column.
Definition at line 86 of file Record.cpp. Referenced by Transaction::buildDocument(), Transaction::buildXML(), Report::buildXML(), Transaction::doInsert(), and Transaction::doUpdate(). |
|
|
Return the master record object for a slave column. Null if record is a master. Definition at line 94 of file Record.cpp. Referenced by Transaction::doSelect(), and Report::doSelect(). |
|
|
Get the static data for this record.
Definition at line 112 of file Record.cpp. Referenced by Transaction::aSeek(), Transaction::buildXML(), Report::buildXML(), Transaction::doDelete(), Transaction::doInsert(), Transaction::doSelect(), Report::doSelect(), and Transaction::doUpdate(). |
|
|
Set the current record value from the static defaults.
Definition at line 161 of file Record.cpp. Referenced by Transaction::aInsert(). |
|
|
Set the master column for a slave record. Set automatically when slave is constructed
Definition at line 104 of file Record.cpp. Referenced by Record::rColumn::putSlave(). |
|
|
Count of columns in this record.
Definition at line 120 of file Record.cpp. Referenced by Record(). |
|
|
Put the new record value into the current value.
Definition at line 150 of file Record.cpp. Referenced by Transaction::aInsert(), Transaction::aNew(), Transaction::doDelete(), and Transaction::doUpdate(). |
|
|
|
|
|
|
|
|
reference to the primary key column for the record.
|
|
|
used by a slave record to back reference to it's master.
|
|
|
Reference to the static definition of this record.
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000