#include <dbobject.hpp>
Inheritance diagram for DBObjectField:
Definition at line 82 of file dbobject.hpp.
Public Methods | |
DBObjectField (const char *p_pszName) | |
Field's parent node. Constructor. | |
DBObjectField (const DBOBJDefinitionField *p_pDBObjectFieldDef) | |
Constructor. | |
~DBObjectField () | |
Destructor. | |
const char * | getName () const |
Returns field name. | |
const char * | getValue () |
Returns field value. | |
bool | isAttribute () const |
Returns true if the field is rendered as an attribute in the XML stream. | |
const DBOBJDefinitionField * | getDefinition () const |
Returns field definition. | |
void | setName (const char *p_pszName) |
Sets field value. | |
void | setAttribute (bool p_fAttribute) |
Sets field value. | |
void | setValue (const char *p_pszFieldValue) |
Sets field value. | |
void | setParent (DBObjectNode *p_DBOBJParentNode) |
Sets field parent object. | |
void | setDefinition (const DBOBJDefinitionField *p_pDBObjectFieldDef) |
Sets field definition. | |
void | getXML (XMLStreamConsumer *p_pXMLBufOut) |
Outputs field's XML stream. | |
int | getType () const |
Returns type of object. |
|
Field's parent node. Constructor.
Definition at line 56 of file dbobject.cpp. References DEBUG_CREATE, and setName(). |
|
Constructor.
Definition at line 73 of file dbobject.cpp. References DEBUG_CREATE, and setDefinition(). |
|
Destructor.
Definition at line 90 of file dbobject.cpp. References DEBUG_DEL, and releaseCharBuffer(). |
|
Returns field definition.
Definition at line 186 of file dbobject.cpp. References DEBUG_FUNC. Referenced by DBOBJSetStreamer::buildINSERTStatement(), DBOBJSetStreamer::getFieldBindVar(), and DBOBJSetStreamer::getFieldValue(). |
|
Returns field name.
Definition at line 115 of file dbobject.cpp. References DEBUG_ECHO, DEBUG_FUNC, and exportCharBuffer(). Referenced by DBObjectNode::addField(), DBOBJSetStreamer::getFieldBindVar(), and DBOBJSetStreamer::getSQLInsert(). |
|
Returns type of object.
Implements DBObject. Definition at line 105 of file dbobject.cpp. References DBOBJECTTYPE_FIELD, and DEBUG_FUNC. |
|
Returns field value.
Definition at line 126 of file dbobject.cpp. References DBObjectNode::calculateRelValue(), copyCharBuffer(), DBOBJaction_Delete, DBOBJaction_Insert, DBOBJaction_Unspec, DBOBJaction_Update, DBOBJDEFFIELD_NOVALUE, DBOBJSetAction, DEBUG_FUNC, DBObjectNode::getAction(), DBOBJDefinitionField::getDValue(), DBOBJDefinitionField::getIValue(), DBOBJDefinitionField::getUValue(), DBOBJDefinitionField::getValue(), importCharBuffer(), and releaseCharBuffer(). Referenced by DBOBJSetStreamer::getFieldValue(), getXML(), and DBOBJSetStreamer::sendRecordToDB(). |
|
Outputs field's XML stream.
Definition at line 195 of file dbobject.cpp. References DEBUG_FUNC, and getValue(). Referenced by DBObjectNode::getXML(). |
|
Returns true if the field is rendered as an attribute in the XML stream.
Definition at line 177 of file dbobject.cpp. References DEBUG_FUNC. Referenced by DBObjectNode::getXML(). |
|
Sets field value.
Definition at line 228 of file dbobject.cpp. References DEBUG_FUNC. Referenced by setName(). |
|
Sets field definition.
Definition at line 260 of file dbobject.cpp. References DEBUG_FUNC, DBOBJDefinitionField::getName(), importCharBuffer(), and DBOBJDefinitionField::isAttribute(). Referenced by DBObjectField(). |
|
Sets field value.
Definition at line 216 of file dbobject.cpp. References DBOBJDEFFIELD_ATTR, DEBUG_FUNC, importCharBuffer(), and setAttribute(). Referenced by DBObjectField(). |
|
Sets field parent object.
Definition at line 250 of file dbobject.cpp. References DEBUG_FUNC. Referenced by DBObjectNode::addField(), and DBObjectNode::removeField(). |
|
Sets field value.
Definition at line 239 of file dbobject.cpp. References DEBUG_FUNC, and importCharBuffer(). Referenced by DBObjectSAXBuilder::startElement(). |