Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

AutodescStreamer Class Reference

#include <autodescstreamer.hpp>

Inheritance diagram for AutodescStreamer:

Inheritance graph
[legend]
Collaboration diagram for AutodescStreamer:

Collaboration graph
[legend]
List of all members.

Detailed Description

DB_AUTODESC streamer class. This streamer takes a DB object's definition as input and appends data to this definition : non-structural fields, data types, vendor specific information,...

Definition at line 60 of file autodescstreamer.hpp.

Public Methods

 AutodescStreamer (const XMLStreamerFactory *p_pParent, StreamerParams *p_pParameters, XMLFlowContext *p_pContext, XMLStreamConsumer *p_pOutput, ContentHandler *p_pHandler, bool p_fCopyStreamToOutput)
 Constructor.

virtual ~AutodescStreamer ()
 Destructor.

bool commitStream (bool p_fFinal=false)
 xML Stream commit function.
This function is called to commit a chunk or the whole of the input XML stream.
A partial commit means that the data provided since last commit is OK for processing.
A final commit means that the whole input stream has been provided and that the streamer should consider the input XML document as complete.


void completeDefinitionNode (DBOBJDefinitionNode *p_pDefinitionNode, otl_connect *p_pConnection) const
char * getReducedType (int l_intOTLType) const

Protected Attributes

bool m_fExpandFields


Constructor & Destructor Documentation

BEGIN_XDFLENGINE_NS AutodescStreamer::AutodescStreamer const XMLStreamerFactory   p_pParent,
StreamerParams   p_pParameters,
XMLFlowContext   p_pContext,
XMLStreamConsumer   p_pOutput,
ContentHandler *    p_pHandler,
bool    p_fCopyStreamToOutput
 

Constructor.

Parameters:
p_pParent Parent streamerfactory object.
p_pParameters Streamers parameters, as a collection of name/value string pairs.
p_pContext Context object.
p_pOutput The object in which the produced XML is written.
p_pHandler The SAX content handler used to parse input XML.
p_fCopyStreamToOutput If true, the input is copied directly to the output.

Definition at line 54 of file autodescstreamer.cpp.

References DEBUG_CREATE.

AutodescStreamer::~AutodescStreamer   [virtual]
 

Destructor.

Definition at line 63 of file autodescstreamer.cpp.

References DEBUG_DEL.


Member Function Documentation

bool AutodescStreamer::commitStream bool    p_fFinal = false [virtual]
 

xML Stream commit function.
This function is called to commit a chunk or the whole of the input XML stream.
A partial commit means that the data provided since last commit is OK for processing.
A final commit means that the whole input stream has been provided and that the streamer should consider the input XML document as complete.

Reimplemented from SaxStreamer.

Definition at line 71 of file autodescstreamer.cpp.

References AUTODESCSTREAMER_TAGNAME, CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, SaxStreamer::commitStream(), completeDefinitionNode(), DEBUG_IN, DEBUG_OUT, XMLStreamer::getParamValue(), XMLFlowContext::getThreadId(), DBOBJDefinitionNode::getXML(), m_fExpandFields, XMLStreamer::m_pContext, SaxStreamer::m_pHandler, XMLStreamer::m_pParent, ON_XML_FLOW_ERROR_DO, ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, and WATCH_XML_FLOW_ERROR.

void AutodescStreamer::completeDefinitionNode DBOBJDefinitionNode   p_pDefinitionNode,
otl_connect *    p_pConnection
const
 

Definition at line 132 of file autodescstreamer.cpp.

References VAarray< T_CLASS >::add(), DBOBJDefinitionNode::addField(), AUTODESCSTREAMER_DBSPECBUF, CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, concatCharBuffer(), copyCharBuffer(), DEBUG_ECHO, DEBUG_IN, DEBUG_OUT, VAarray< T_CLASS >::flush(), VAarray< T_CLASS >::get(), DBOBJDefinitionNode::getChildNode(), DBOBJDefinitionNode::getChildNodesCount(), DBOBJDefinitionField::getDBField(), DBOBJDefinitionNode::getDBTable(), DBOBJDefinitionNode::getField(), DBOBJDefinitionNode::getFieldsCount(), getReducedType(), DBStreamerFactory::getSQLSyntax(), DBOBJDefinitionNode::isLocked(), lowerize(), m_fExpandFields, MAKE_XMLFLOW_EXCEPTION, ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, releaseCharBuffer(), DBOBJDefinitionField::setAttribute(), DBOBJDefinitionField::setDateFormat(), DBOBJDefinitionField::setDBAlias(), DBOBJDefinitionField::setDBField(), DBOBJDefinitionField::setDBSpecProps(), DBOBJDefinitionField::setMap(), DBOBJDefinitionField::setName(), SQL_SYNTAX_MSSQL, SQL_SYNTAX_ORA, upperize(), and WATCH_XML_FLOW_ERROR.

Referenced by commitStream().

char * AutodescStreamer::getReducedType int    l_intOTLType const
 

Definition at line 300 of file autodescstreamer.cpp.

References copyCharBuffer(), DBOBJDEFFIELD_MAP_DATE, DBOBJDEFFIELD_MAP_NUM, DBOBJDEFFIELD_MAP_STRING, and DEBUG_FUNC.

Referenced by completeDefinitionNode().


Member Data Documentation

bool AutodescStreamer::m_fExpandFields [protected]
 

Definition at line 64 of file autodescstreamer.hpp.

Referenced by commitStream(), and completeDefinitionNode().


The documentation for this class was generated from the following files:
Generated on Sat Oct 4 13:23:27 2003 for XDFLengine by doxygen1.3-rc2