#include <dbobjdefinition.hpp>
Inheritance diagram for DBOBJDefinitionField:
Definition at line 77 of file dbobjdefinition.hpp.
Public Methods | |
DBOBJDefinitionField () | |
Constructor. Inits private data members. | |
~DBOBJDefinitionField () | |
Destructor. Releases private data members. | |
const char * | getName () const |
Returns field name. | |
const char * | getDBField () const |
Returns the name of the column on which the field is mapped. | |
const char * | getDBAlias () const |
Returns the alias used in SQL statements for this field. | |
const char * | getMap () const |
Returns field's reduced type (numeric / alphanumeric). | |
const char * | getIValue () const |
Returns the value that is given to the field in case of an INSERT action. | |
const char * | getUValue () const |
Returns the value that is given to the field in case of an UPDATE action. | |
const char * | getDValue () const |
Returns the value that is given to the field in case of an DELETE action. | |
const char * | getValue () const |
Returns the value that is given to the field in case of an INSERT, UPDATE or DELETE action. | |
const char * | getDateFormat () const |
Returns the date format. | |
const char * | getDBSpecProps () const |
Returns field's DB specific type properties list. This list is composed of type codes specific to RDBMS vendor. The format of this list is : ( OTL Type, DB Type, Size, Scale, Precision, Null OK ). | |
bool | isAttribute () const |
Returns true if the field is rendered as an attribute in the XML stream. | |
bool | isHidden () const |
Returns true if the field is hidden in the XML stream. | |
bool | isPkey () const |
Returns true if the field is a primary key of its parent node. | |
DBOBJDefinitionNode * | getParent () const |
Returns field's parent definition node. | |
void | setName (const char *p_szName) |
Sets field's name. | |
void | setDBField (const char *p_szDBField) |
Sets field's mapping column name. | |
void | setDBAlias (const char *p_szDBAlias) |
Sets field's SQL alias. | |
void | setMap (const char *p_szMap) |
Sets field's reduces type. | |
void | setIValue (const char *p_szIValue) |
Sets field's value for INSERT actions. | |
void | setUValue (const char *p_szUValue) |
Sets field's value for UPDATE actions. | |
void | setDValue (const char *p_szDValue) |
Sets field's value for DELETE actions. | |
void | setValue (const char *p_szValue) |
Sets field's value for all actions. | |
void | setDateFormat (const char *p_szDateFormat) |
Sets field's value for all actions. | |
void | setDBSpecProps (const char *p_szDBSpecProps) |
Sets field's RDMS vendor specific properties. The format of this list is : ( OTL Type, DB Type, Size, Scale, Precision, Null OK ). | |
void | setAttribute (bool p_boolAttribute) |
Sets whether the field is rendered as an attribute in the XML stream. | |
void | setHidden (bool p_boolHidden) |
Sets whether the field is rendered as an attribute in the XML stream. | |
void | setPkey (bool p_boolPkey) |
Sets whether the field is a primary key of parent node. | |
void | setParent (DBOBJDefinitionNode *p_pParentDefinition) |
Sets field's parent definition node. | |
void | getXML (XMLStreamConsumer *p_pXMLBufOut) |
Outputs Definition objects XML stream. |
|
Constructor. Inits private data members.
Definition at line 55 of file dbobjdefinition.cpp. References DEBUG_CREATE, and importCharBuffer(). |
|
Destructor. Releases private data members.
Definition at line 83 of file dbobjdefinition.cpp. References DEBUG_DEL, and releaseCharBuffer(). |
|
Returns the date format.
Definition at line 186 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::getFieldBindVar(), DBOBJSetStreamer::getFieldValue(), and getXML(). |
|
Returns the alias used in SQL statements for this field.
Definition at line 132 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). |
|
Returns the name of the column on which the field is mapped.
Definition at line 123 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::buildINSERTStatement(), DBOBJSetStreamer::buildUPDATEStatement(), DBOBJSetStreamer::buildWHEREclause(), AutodescStreamer::completeDefinitionNode(), getXML(), and DDLStreamer::makeNodeDDL(). |
|
Returns field's DB specific type properties list. This list is composed of type codes specific to RDBMS vendor. The format of this list is : ( OTL Type, DB Type, Size, Scale, Precision, Null OK ).
Definition at line 195 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::getFieldBindVar(), getXML(), and DDLStreamer::makeNodeDDL(). |
|
Returns the value that is given to the field in case of an DELETE action.
Definition at line 168 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBObjectField::getValue(), and getXML(). |
|
Returns the value that is given to the field in case of an INSERT action.
Definition at line 150 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBObjectField::getValue(), and getXML(). |
|
Returns field's reduced type (numeric / alphanumeric).
Definition at line 141 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJSetStreamer::getFieldBindVar(), DBOBJSetStreamer::getFieldValue(), getXML(), DDLStreamer::makeNodeDDL(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Returns field name.
Definition at line 114 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBOBJDefinitionNode::addField(), DBOBJSetStreamer::buildINSERTStatement(), DBOBJSetStreamer::buildUPDATEStatement(), DBOBJSetStreamer::buildWHEREclause(), DBOBJDefinitionNode::getXML(), getXML(), DBObjectField::setDefinition(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Returns field's parent definition node.
Definition at line 231 of file dbobjdefinition.cpp. References DEBUG_FUNC. |
|
Returns the value that is given to the field in case of an UPDATE action.
Definition at line 159 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBObjectField::getValue(), and getXML(). |
|
Returns the value that is given to the field in case of an INSERT, UPDATE or DELETE action.
Definition at line 177 of file dbobjdefinition.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by DBObjectField::getValue(), and getXML(). |
|
Outputs Definition objects XML stream.
Definition at line 370 of file dbobjdefinition.cpp. References DBOBJDEFFIELD_DATE_FORMAT, DBOBJDEFFIELD_DBSPEC, DBOBJDEFFIELD_DVALUE, DBOBJDEFFIELD_FIELD, DBOBJDEFFIELD_HIDDEN, DBOBJDEFFIELD_IVALUE, DBOBJDEFFIELD_MAP, DBOBJDEFFIELD_NAME, DBOBJDEFFIELD_TAGNAME, DBOBJDEFFIELD_UVALUE, DBOBJDEFFIELD_VALUE, DEBUG_FUNC, getDateFormat(), getDBField(), getDBSpecProps(), getDValue(), getIValue(), getMap(), getName(), getUValue(), getValue(), isHidden(), REQ_FALSE, and REQ_TRUE. Referenced by DBOBJDefinitionNode::getXML(). |
|
Returns true if the field is rendered as an attribute in the XML stream.
Definition at line 204 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by DBOBJSetStreamer::getFieldBindVar(), and DBObjectField::setDefinition(). |
|
Returns true if the field is hidden in the XML stream.
Definition at line 213 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by getXML(). |
|
Returns true if the field is a primary key of its parent node.
Definition at line 222 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by DBOBJSetStreamer::buildUPDATEStatement(). |
|
Sets whether the field is rendered as an attribute in the XML stream.
Definition at line 332 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by AutodescStreamer::completeDefinitionNode(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's value for all actions.
Definition at line 314 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by AutodescStreamer::completeDefinitionNode(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's SQL alias.
Definition at line 260 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by AutodescStreamer::completeDefinitionNode(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's mapping column name.
Definition at line 251 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by AutodescStreamer::completeDefinitionNode(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's RDMS vendor specific properties. The format of this list is : ( OTL Type, DB Type, Size, Scale, Precision, Null OK ).
Definition at line 323 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by AutodescStreamer::completeDefinitionNode(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's value for DELETE actions.
Definition at line 296 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets whether the field is rendered as an attribute in the XML stream.
Definition at line 341 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's value for INSERT actions.
Definition at line 278 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's reduces type.
Definition at line 269 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by AutodescStreamer::completeDefinitionNode(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's name.
Definition at line 242 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by AutodescStreamer::completeDefinitionNode(), and SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's parent definition node.
Definition at line 359 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by DBOBJDefinitionNode::addField(). |
|
Sets whether the field is a primary key of parent node.
Definition at line 350 of file dbobjdefinition.cpp. References DEBUG_FUNC. Referenced by DBOBJDefinitionNode::addPkey(), and DBOBJDefinitionNode::remPkey(). |
|
Sets field's value for UPDATE actions.
Definition at line 287 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |
|
Sets field's value for all actions.
Definition at line 305 of file dbobjdefinition.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by SAXDBOBJDefinitionBuilder::startElement(). |