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

DBOBJGetStreamer Class Reference

#include <dbobjgetstreamer.hpp>

Inheritance diagram for DBOBJGetStreamer:

Inheritance graph
[legend]
Collaboration diagram for DBOBJGetStreamer:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents and processes a user request for DBOBJ GET request.

Todo:
the date reduced type is not yet implemented for MSSQL syntax.

Definition at line 73 of file dbobjgetstreamer.hpp.

Public Methods

 DBOBJGetStreamer (const XMLStreamerFactory *p_pParent, StreamerParams *p_pParameters, XMLFlowContext *p_pContext, XMLStreamConsumer *p_pOutput, ContentHandler *p_pHandler, const DBOBJDefinitionNode *p_pDBOBJDefinitionRoot, DBOBJDefinitionNode *p_pDBOBJOwnedDefinitionRoot)
virtual ~DBOBJGetStreamer ()
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 executeSQL ()
 Executes SQL Statements ans stores resulting OTL data streams in named data map.

void makeXML ()
 Renders XML data from named data map into output buffer.


Constructor & Destructor Documentation

BEGIN_XDFLENGINE_NS DBOBJGetStreamer::DBOBJGetStreamer const XMLStreamerFactory   p_pParent,
StreamerParams   p_pParameters,
XMLFlowContext   p_pContext,
XMLStreamConsumer   p_pOutput,
ContentHandler *    p_pHandler,
const DBOBJDefinitionNode   p_pDBOBJDefinitionRoot,
DBOBJDefinitionNode   p_pDBOBJOwnedDefinitionRoot
 

Definition at line 54 of file dbobjgetstreamer.cpp.

References DEBUG_CREATE.

DBOBJGetStreamer::~DBOBJGetStreamer   [virtual]
 

Definition at line 65 of file dbobjgetstreamer.cpp.

References DEBUG_DEL, VAarray< otl_stream_peek * >::empty(), VAarray< char * >::empty(), XMLFlowContext::getThreadId(), XMLStreamer::m_pContext, XMLStreamer::m_pParent, VAarray< otl_stream_peek * >::pop(), VAarray< char * >::pop(), and releaseCharBuffer().


Member Function Documentation

bool DBOBJGetStreamer::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 88 of file dbobjgetstreamer.cpp.

References CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, SaxStreamer::commitStream(), DEBUG_IN, DEBUG_OUT, executeSQL(), XMLStreamer::getParamValue(), XMLFlowContext::getThreadId(), importCharBuffer(), XMLStreamer::m_pContext, SaxStreamer::m_pHandler, XMLStreamer::m_pParent, makeXML(), ON_XML_FLOW_ERROR_DO, ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, and WATCH_XML_FLOW_ERROR.

void DBOBJGetStreamer::executeSQL  
 

Executes SQL Statements ans stores resulting OTL data streams in named data map.

Exceptions:
XMLFlowException ERRCODE_CAUSE_DATAACCESS

Definition at line 850 of file dbobjgetstreamer.cpp.

References VAarray< otl_stream_peek * >::add(), CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, DBOBJGETSTREAMER_TAGNAME, DEBUG_ECHO, DEBUG_IN, DEBUG_OUT, VAarray< char * >::dequeue(), VAarray< char * >::empty(), MAKE_XMLFLOW_EXCEPTION, ON_XML_FLOW_ERROR_THROW, otl_stream_peek::pos, otl_stream_peek::pOTLStream, PREP_CATCH_XML_FLOW_ERROR, releaseCharBuffer(), VAarray< char * >::size(), and WATCH_XML_FLOW_ERROR.

Referenced by commitStream().

void DBOBJGetStreamer::makeXML  
 

Renders XML data from named data map into output buffer.

Definition at line 1044 of file dbobjgetstreamer.cpp.

References DBOBJGETSTREAMER_TAGNAME, DEBUG_FUNC, VAarray< otl_stream_peek * >::empty(), and VAarray< otl_stream_peek * >::pop().

Referenced by commitStream().


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