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

Public Types | |
| typedef std::vector<mColumn*> | vectorColumn |
| vector holding defined mColumn objects for the template. More... | |
| typedef std::vector<mParam*> | vectorParam |
| vector holding defined mParam objects for the template. More... | |
| typedef std::vector<dbMeta*> | vectorMeta |
| used for holding nested MASTER definitions. More... | |
| enum | { NONE, COLUMN, SLAVE, ATTRIBUTE } |
| Column type NONE: unasigned Column type COLUMN: standard column mapped into an element Column type SLAVE: Controlling column for a slave record Column type ATTRIBUTE: Column being mapped into an attribute. More... | |
Public Methods | |
| virtual | ~dbMeta () |
| Description. More... | |
| void | buildMaster (Template* pTemplate, DOM_Element master) |
| Description. More... | |
| void | buildPassThrough (Template* pTemplate, DOM_Element pt) |
| Description. More... | |
| const nsAReadableString& | getName () |
| Column name as specificed with AS else dbname. More... | |
| int | size () |
| Description. More... | |
| const nsAReadableString& | getSeekKey (char op, const nsAReadableString& oldKey) |
| Given a unique key, seek to a base table record. More... | |
| const nsAReadableString& | getSelect () |
| Build a SQL SELECT statement based on the template file. More... | |
| const nsAReadableString& | getUpdate () |
| Build a SQL UPDATE statement based on the template file. More... | |
| const nsAReadableString& | getInsert () |
| Build a SQL INSERT statement based on the template file. More... | |
| const nsAReadableString& | getDelete () |
| Build a SQL DELETE statement based on the template file. More... | |
| mColumn* | getIdCol () |
| Return column description for the id column of the base table. More... | |
| mColumn* | getMaster () |
| Slave record return column in master record, master record returns null. More... | |
| bool | isSlave () |
| is this a slave record? More... | |
| void | setMaster (mColumn* pMaster) |
| When constructing a slave, remember the master. More... | |
| void | setIdCol (mColumn* pIdCol) |
| const nsAReadableString& | getType () |
| Type specified in template, triggers type checking code, passed to XSL phase. More... | |
Public Attributes | |
| friend | mColumn |
| vectorColumn | m_columns |
| vectorParam | m_params |
| vectorMeta | m_section |
Static Public Methods | |
| dbMeta* | buildMeta (Template* pTemplate, DOM_Element top) |
| Description. More... | |
Protected Methods | |
| dbMeta () | |
| Static meta data for a database page. More... | |
Private Types | |
| typedef std::map<const nsAReadableString*, mColumn*, compareARS> | mapStringColumn |
| hash of columns based on column name. More... | |
Private Methods | |
| mParam* | addParam (const nsAReadableString& name, int number) |
| Description. More... | |
| mColumn* | addColumn (Template* pTemplate, DOM_Element element, int kind, const nsAReadableString& correlate, bool base) |
| Description. More... | |
| mColumn* | getColumn (int col) |
| Description. More... | |
| mColumn* | getColumn (const nsAReadableString& name) |
| Description. More... | |
| mColumn* | getColumnDB (const nsAReadableString& name) |
| Description. More... | |
Private Attributes | |
| nsString | m_name |
| Element name for the record. More... | |
| nsString | m_type |
| Type for the entire record. More... | |
| nsString | m_insert |
| SQL const nsAReadableString& for INSERT constructed from the template. More... | |
| nsString | m_select |
| SQL const nsAReadableString& for SELECT constructed from the template. More... | |
| nsString | m_update |
| SQL const nsAReadableString& for UPDATE constructed from the template. More... | |
| nsString | m_delete |
| SQL const nsAReadableString& for DELETE constructed from the template. More... | |
| nsString | m_base_table |
| The base (updatable) table of the query. More... | |
| nsString | m_from |
| SQL FROM clause applied to all SQL statements. More... | |
| nsString | m_where |
| SQL WHERE clause applied to all SQL statements. More... | |
| nsString | m_order |
| SQL ORDER BY clause applied to all SQL statements. More... | |
| nsString | m_group |
| SQL GROUP BY clause applied to all SQL statements. More... | |
| mColumn* | m_pIdCol |
| reference to the primary key column for the record. More... | |
| mColumn* | m_pMaster |
| used by a slave record to back reference to it's master. More... | |
| mapStringColumn | m_hColumns |
|
|
hash of columns based on column name.
|
|
|
vector holding defined mColumn objects for the template.
|
|
|
used for holding nested MASTER definitions.
|
|
|
vector holding defined mParam objects for the template.
|
|
|
Column type NONE: unasigned Column type COLUMN: standard column mapped into an element Column type SLAVE: Controlling column for a slave record Column type ATTRIBUTE: Column being mapped into an attribute.
|
|
|
Static meta data for a database page. Compiles XML into an in memory data structure. Build SELECT, UPDATE, DELETE, INSERT statements for base table. Definition at line 21 of file dbMeta.cpp. Referenced by buildMaster(), and buildMeta(). |
|
|
Description.
Definition at line 26 of file dbMeta.cpp. |
|
|
Description.
Definition at line 235 of file dbMeta.cpp. Referenced by buildMaster(), and buildPassThrough(). |
|
|
Description.
Definition at line 219 of file dbMeta.cpp. Referenced by buildMaster(), and buildPassThrough(). |
|
|
Description.
Definition at line 61 of file dbMeta.cpp. Referenced by buildMeta(). |
|
|
Description.
Definition at line 41 of file dbMeta.cpp. Referenced by buildMaster(), Transaction::compile(), and Report::compile(). |
|
|
Description.
Definition at line 174 of file dbMeta.cpp. Referenced by buildMeta(). |
|
|
Description.
Definition at line 292 of file dbMeta.cpp. |
|
|
Description.
Definition at line 281 of file dbMeta.cpp. |
|
|
Description.
Definition at line 307 of file dbMeta.cpp. |
|
|
Build a SQL DELETE statement based on the template file.
Definition at line 462 of file dbMeta.cpp. Referenced by Transaction::doDelete(). |
|
|
Return column description for the id column of the base table.
Definition at line 478 of file dbMeta.cpp. |
|
|
Build a SQL INSERT statement based on the template file.
Definition at line 423 of file dbMeta.cpp. Referenced by Transaction::doInsert(). |
|
|
Slave record return column in master record, master record returns null.
Definition at line 486 of file dbMeta.cpp. |
|
|
Column name as specificed with AS else dbname.
Definition at line 520 of file dbMeta.cpp. Referenced by Transaction::buildDocument(), Transaction::buildXML(), and Report::buildXML(). |
|
|
Given a unique key, seek to a base table record.
Definition at line 331 of file dbMeta.cpp. Referenced by Transaction::aSeek(). |
|
|
Build a SQL SELECT statement based on the template file.
Definition at line 355 of file dbMeta.cpp. Referenced by Transaction::doSelect(), and Report::doSelect(). |
|
|
Type specified in template, triggers type checking code, passed to XSL phase.
Definition at line 528 of file dbMeta.cpp. Referenced by Transaction::buildXML(), and Report::buildXML(). |
|
|
Build a SQL UPDATE statement based on the template file.
Definition at line 393 of file dbMeta.cpp. Referenced by Transaction::doUpdate(). |
|
|
is this a slave record?
Definition at line 494 of file dbMeta.cpp. Referenced by Transaction::doSelect(), and Report::doSelect(). |
|
|
Definition at line 512 of file dbMeta.cpp. Referenced by dbMeta::mColumn::putType(). |
|
|
When constructing a slave, remember the master.
Definition at line 504 of file dbMeta.cpp. Referenced by dbMeta::mColumn::putSlave(). |
|
|
Description.
Definition at line 320 of file dbMeta.cpp. |
|
|
Definition at line 26 of file dbMeta.h. Referenced by addColumn(). |
|
|
The base (updatable) table of the query.
|
|
|
|
|
|
SQL const nsAReadableString& for DELETE constructed from the template.
|
|
|
SQL FROM clause applied to all SQL statements.
|
|
|
SQL GROUP BY clause applied to all SQL statements.
|
|
|
|
|
|
SQL const nsAReadableString& for INSERT constructed from the template.
|
|
|
Element name for the record.
|
|
|
SQL ORDER BY clause applied to all SQL statements.
|
|
|
reference to the primary key column for the record.
|
|
|
used by a slave record to back reference to it's master.
|
|
|
|
|
|
|
|
|
SQL const nsAReadableString& for SELECT constructed from the template.
|
|
|
Type for the entire record.
|
|
|
SQL const nsAReadableString& for UPDATE constructed from the template.
|
|
|
SQL WHERE clause applied to all SQL statements.
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000