#include <dbobjdefinition.hpp>
Inheritance diagram for DBOBJDefinitionNode:
Definition at line 377 of file dbobjdefinition.hpp.
Public Methods | |
DBOBJDefinitionNode () | |
Constructor. Inits private data members. | |
~DBOBJDefinitionNode () | |
Destructor. Releases private data members. | |
const char * | getName () const |
| |
const char * | getDBTable () const |
Returns the name of the table on which the node is mapped. | |
const char * | getRestrict () const |
Returns the hardcoded restriction clause of the node. | |
const char * | getCheckPre () const |
Returns the pre-save SQL order of the node. | |
const char * | getCheckPost () const |
Returns the post-save SQL order of the node. | |
bool | isLocked () const |
Returns wheteher the node is read-only or not. | |
bool | isDistinct () const |
Returns wheteher the node is read-only or not. | |
DBOBJDefinitionNode * | getParent () const |
Returns the parent node of the node. | |
void | setName (const char *p_szName) |
Sets the name of the node. | |
void | setDBtable (const char *p_szDBTable) |
Sets the table name on which the node is mapped. | |
void | setRestrict (const char *p_szRestrict) |
Sets the node hardcoded restriction clause. | |
void | setCheckPre (const char *p_szCheckPre) |
Sets node's pre-save SQL order. | |
void | setCheckPost (const char *p_szCheckPost) |
Sets node's post-save SQL order. | |
void | setLocked (bool p_boolLocked) |
Sets node's read only. | |
void | setDistinct (bool p_boolDistinct) |
Sets node's read only. | |
void | setParent (DBOBJDefinitionNode *p_pParentDefinition) |
Sets node's parent node definition . | |
const char * | getOnDelete () const |
const char * | getOnInsert () const |
const char * | getOnUpdate () const |
void | setOnDelete (const char *p_pszOnDelete) |
void | setOnInsert (const char *p_pszOnInsert) |
void | setOnUpdate (const char *p_pszOnUpdate) |
void | addChild (DBOBJDefinitionNode *p_ChildDefinition) |
Appends a child node definition to the node. | |
void | removeChild (unsigned int p_uiIndex, bool p_boolDestroy=true) |
Removes a child node definition from the node. | |
void | removeChild (const char *p_szName, bool p_boolDestroy=true) |
Removes a child node definition from the node. | |
unsigned int | getChildNodesCount () const |
Returns the number of child definition nodes. | |
DBOBJDefinitionNode * | getChildNode (unsigned int p_uiIndex) const |
Returns a child node definition. | |
DBOBJDefinitionNode * | getChildNode (const char *p_szName) const |
Returns a child node definition. | |
void | addField (DBOBJDefinitionField *p_pFieldDefinition) |
Appends a field definition to the node. | |
void | removeField (unsigned int p_uiIndex, bool p_boolDestroy=true) |
Removes a field definition from the node. | |
void | removeField (const char *p_szName, bool p_boolDestroy=true) |
Removes a field definition from the node. | |
unsigned int | getFieldsCount () const |
Returns the number of field definitions of the node. | |
DBOBJDefinitionField * | getField (unsigned int p_uiIndex) const |
Returns a field definition. | |
DBOBJDefinitionField * | getField (const char *p_szName) const |
Returns a field definition. | |
void | addPkey (const char *p_szName) |
Appends a primary key to the node. | |
void | remPkey (unsigned int p_index) |
Removes a primary key to the node. | |
unsigned int | getPkeysCount () const |
Returns the number of primary keys. | |
DBOBJDefinitionField * | getPkey (unsigned int p_uiIndex) const |
Returns a primary key field defintion. | |
DBOBJDefinitionField * | getPkey (const char *p_pszName) const |
Returns a primary key field defintion. | |
void | addKeyLink (const char *p_szLocalName, const char *p_szParentName) |
Appends a key link beetween this node and its parent. | |
void | remKeyLink (unsigned int p_uiIndex) |
Removes a key link. | |
unsigned int | getKeyLinksCount () const |
Returns the number of key links of the node. | |
DBOBJDefinitionFieldsPair * | getKeyLink (unsigned int p_uiIndex) const |
Returns the pair of field definitions of a key link. | |
DBOBJDefinitionFieldsPair * | getKeyLink (const char *p_pszName) const |
Returns the pair of field definitions of a key link. | |
void | getXML (XMLStreamConsumer *p_pXMLBufOut) |
Outputs XML stream of the definition tree. |
|
Constructor. Inits private data members.
Definition at line 406 of file dbobjdefinition.cpp. References DEBUG_CREATE, and importCharBuffer(). |
|
Destructor. Releases private data members.
Definition at line 427 of file dbobjdefinition.cpp. References DEBUG_DEL, and releaseCharBuffer(). |
|
Appends a child node definition to the node.
Definition at line 660 of file dbobjdefinition.cpp. References VAarray< DBOBJDefinitionNode * >::add(), DEBUG_FUNC, getName(), and setParent(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Appends a field definition to the node.
Definition at line 738 of file dbobjdefinition.cpp. References VAarray< DBOBJDefinitionField * >::add(), DEBUG_FUNC, DBOBJDefinitionField::getName(), and DBOBJDefinitionField::setParent(). Referenced by AutodescStreamer::completeDefinitionNode(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Appends a key link beetween this node and its parent.
Definition at line 883 of file dbobjdefinition.cpp. References VAarray< DBOBJDefinitionFieldsPair * >::add(), DEBUG_FUNC, _DBOBJDefinitionFieldsPair::first, getField(), getName(), getParent(), _DBOBJDefinitionFieldsPair::second, and THROW_XMLFLOW_EXCEPTION. Referenced by SAXDBOBJDefinitionBuilder::endElement(). |
|
Appends a primary key to the node.
Definition at line 819 of file dbobjdefinition.cpp. References VAarray< DBOBJDefinitionField * >::add(), DEBUG_FUNC, getField(), getName(), DBOBJDefinitionField::setPkey(), and THROW_XMLFLOW_EXCEPTION. Referenced by SAXDBOBJDefinitionBuilder::endElement(). |
|
Returns the post-save SQL order of the node.
Definition at line 488 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::buildCHECKStatement(), and getXML(). |
|
Returns the pre-save SQL order of the node.
Definition at line 479 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::buildCHECKStatement(), and getXML(). |
|
Returns a child node definition.
Definition at line 727 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionNode * >::get(). |
|
Returns a child node definition.
Definition at line 718 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionNode * >::get(). Referenced by AutodescStreamer::completeDefinitionNode(), getXML(), DDLStreamer::makeNodeDDL(), DBOBJGetStatementSAXBuilder::startElement(), and DBObjectSAXBuilder::startElement(). |
|
Returns the number of child definition nodes.
Definition at line 709 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionNode * >::size(). Referenced by AutodescStreamer::completeDefinitionNode(), getXML(), and DDLStreamer::makeNodeDDL(). |
|
Returns the name of the table on which the node is mapped.
Definition at line 461 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::buildDELETEStatement(), DBOBJSetStreamer::buildINSERTStatement(), DBOBJSetStreamer::buildUPDATEStatement(), AutodescStreamer::completeDefinitionNode(), getXML(), and DDLStreamer::makeNodeDDL(). |
|
Returns a field definition.
Definition at line 807 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionField * >::get(). |
|
Returns a field definition.
Definition at line 798 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionField * >::get(). Referenced by addKeyLink(), addPkey(), DBOBJSetStreamer::buildINSERTStatement(), DBOBJSetStreamer::buildUPDATEStatement(), AutodescStreamer::completeDefinitionNode(), getXML(), DDLStreamer::makeNodeDDL(), DBOBJGetStatementSAXBuilder::startElement(), and DBObjectSAXBuilder::startElement(). |
|
Returns the number of field definitions of the node.
Definition at line 789 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionField * >::size(). Referenced by DBOBJSetStreamer::buildINSERTStatement(), DBOBJSetStreamer::buildUPDATEStatement(), AutodescStreamer::completeDefinitionNode(), getXML(), and DDLStreamer::makeNodeDDL(). |
|
Returns the pair of field definitions of a key link.
Definition at line 941 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionFieldsPair * >::get(). |
|
Returns the pair of field definitions of a key link.
Definition at line 932 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionFieldsPair * >::get(). Referenced by getXML(). |
|
Returns the number of key links of the node.
Definition at line 923 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionFieldsPair * >::size(). Referenced by getXML(). |
|
Definition at line 452 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by addChild(), addKeyLink(), addPkey(), DBOBJGetStatementNode::DBOBJGetStatementNode(), SAXDBOBJDefinitionBuilder::endElement(), getXML(), DDLStreamer::makeNodeDDL(), DBObjectNode::setDefinition(), DBOBJGetStatementSAXBuilder::startElement(), and DBObjectSAXBuilder::startElement(). |
|
Definition at line 602 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::buildDELETEStatement(), and getXML(). |
|
Definition at line 611 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::buildINSERTStatement(), and getXML(). |
|
Definition at line 620 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::buildUPDATEStatement(), and getXML(). |
|
Returns the parent node of the node.
Definition at line 516 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by addKeyLink(). |
|
Returns a primary key field defintion.
Definition at line 871 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionField * >::get(). |
|
Returns a primary key field defintion.
Definition at line 862 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionField * >::get(). Referenced by DBOBJSetStreamer::buildWHEREclause(), and getXML(). |
|
Returns the number of primary keys.
Definition at line 853 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionField * >::size(). Referenced by DBOBJSetStreamer::buildWHEREclause(), and getXML(). |
|
Returns the hardcoded restriction clause of the node.
Definition at line 470 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by getXML(). |
|
|
Returns wheteher the node is read-only or not.
Definition at line 507 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by getXML(). |
|
Returns wheteher the node is read-only or not.
Definition at line 497 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by AutodescStreamer::completeDefinitionNode(), getXML(), and DBOBJSetStreamer::processNode(). |
|
Removes a key link.
Definition at line 913 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionFieldsPair * >::remove(). |
|
Removes a child node definition from the node.
Definition at line 690 of file dbobjdefinition.cpp. References DEBUG_FUNC, VAarray< DBOBJDefinitionNode * >::remove(), and setParent(). |
|
Removes a child node definition from the node.
Definition at line 671 of file dbobjdefinition.cpp. References DEBUG_FUNC, VAarray< DBOBJDefinitionNode * >::remove(), and setParent(). |
|
Removes a field definition from the node.
Definition at line 762 of file dbobjdefinition.cpp. References DEBUG_FUNC. |
|
Removes a field definition from the node.
Definition at line 749 of file dbobjdefinition.cpp. References DEBUG_FUNC, and VAarray< DBOBJDefinitionField * >::remove(). |
|
Removes a primary key to the node.
Definition at line 840 of file dbobjdefinition.cpp. References DEBUG_FUNC, VAarray< DBOBJDefinitionField * >::remove(), and DBOBJDefinitionField::setPkey(). |
|
Sets node's post-save SQL order.
Definition at line 563 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets node's pre-save SQL order.
Definition at line 554 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets the table name on which the node is mapped.
Definition at line 536 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets node's read only.
Definition at line 581 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets node's read only.
Definition at line 572 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets the name of the node.
Definition at line 527 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Definition at line 629 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Definition at line 638 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Definition at line 648 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets node's parent node definition .
Definition at line 590 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by addChild(), and removeChild(). |
|
Sets the node hardcoded restriction clause.
Definition at line 545 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |