Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DBPage Class Reference

#include <DBPage.h>

Inheritance diagram for DBPage

Inheritance graph

[legend]
Collaboration diagram for DBPage:

Collaboration graph

[legend]
List of all members.

Public Methods

virtual NS_DECL_ISUPPORTS
nsresult 
ParseInputSource (saxIInputSource *source)
virtual nsresult ParseURI (const char *uri)
virtual nsresult SetEntityResolver (saxIEntityResolver *resolver)
virtual nsresult SetDTDHandler (saxIDTDHandler *handler)
virtual nsresult SetDocumentHandler (saxIDocumentHandler *handler)
virtual nsresult SetErrorHandler (saxIErrorHandler *handler)
virtual nsresult GetRequest (px7IRequest * *aRequest)
virtual nsresult SetRequest (px7IRequest * aRequest)
virtual nsresult GetResponse (px7IResponse * *aResponse)
virtual nsresult SetResponse (px7IResponse * aResponse)
virtual nsresult StreamProcessingInstruction (const PRUnichar *target, const PRUnichar *data)
virtual nsresult StreamStartElement (const PRUnichar *name, saxIAttributeList *atts)
 DBPage ()
virtual ~DBPage ()
ConnectiongetConnection ()
saxAttributeListgetAttr ()
saxIDocumentHandler* getDocHandler ()
DOM_Document getInput ()
PRUnichar* getParameterCopy (const nsAReadableString& name, const nsAReadableString& def)
void setParameter (const nsAReadableString& name, const nsAReadableString& value)

Public Attributes

nsCOMPtr<px7IRequest> m_request
nsCOMPtr<px7IResponse> m_response

Protected Methods

void run (Template* pTemplate)
 Run nested inside of parent page.

void releaseConnection ()
 manually release the connection, causes commit and close close is cached by pooling code. More...

void rollbackConnection ()
 trigger a rollback of the connection. More...


Private Attributes

nsCOMPtr<saxAttributeListm_attr
nsCOMPtr<saxIDocumentHandler> m_documentHandler
Connectionm_pConn
 Currently active database connection. More...


Constructor & Destructor Documentation

DBPage::DBPage ( )
 

DBPage::~DBPage ( ) [virtual]
 

Definition at line 40 of file DBPage.cpp.


Member Function Documentation

NS_IMETHODIMP DBPage::GetRequest ( px7IRequest ** aRequest ) [virtual]
 

Definition at line 209 of file DBPage.cpp.

NS_IMETHODIMP DBPage::GetResponse ( px7IResponse ** aResponse ) [virtual]
 

Definition at line 223 of file DBPage.cpp.

NS_IMETHODIMP DBPage::ParseInputSource ( saxIInputSource * pSource ) [virtual]
 

Definition at line 96 of file DBPage.cpp.

NS_IMETHODIMP DBPage::ParseURI ( const char * templateName ) [virtual]
 

Definition at line 132 of file DBPage.cpp.

NS_IMETHODIMP DBPage::SetDTDHandler ( saxIDTDHandler * handler ) [virtual]
 

Definition at line 110 of file DBPage.cpp.

NS_IMETHODIMP DBPage::SetDocumentHandler ( saxIDocumentHandler * handler ) [virtual]
 

Definition at line 117 of file DBPage.cpp.

NS_IMETHODIMP DBPage::SetEntityResolver ( saxIEntityResolver * resolver ) [virtual]
 

Definition at line 103 of file DBPage.cpp.

NS_IMETHODIMP DBPage::SetErrorHandler ( saxIErrorHandler * handler ) [virtual]
 

Definition at line 125 of file DBPage.cpp.

NS_IMETHODIMP DBPage::SetRequest ( px7IRequest * aRequest ) [virtual]
 

Definition at line 215 of file DBPage.cpp.

NS_IMETHODIMP DBPage::SetResponse ( px7IResponse * aResponse ) [virtual]
 

Definition at line 229 of file DBPage.cpp.

NS_IMETHODIMP DBPage::StreamProcessingInstruction ( const PRUnichar * target,
const PRUnichar * data ) [virtual]
 

Definition at line 237 of file DBPage.cpp.

NS_IMETHODIMP DBPage::StreamStartElement ( const PRUnichar * name,
saxIAttributeList * atts ) [virtual]
 

Definition at line 244 of file DBPage.cpp.

saxAttributeList * DBPage::getAttr ( )
 

Definition at line 70 of file DBPage.cpp.

Referenced by Transaction::buildRecord(), Report::buildRecord(), Transaction::buildXML(), and Report::buildXML().

Connection * DBPage::getConnection ( )
 

Definition at line 45 of file DBPage.cpp.

Referenced by Transaction::aSeek(), Transaction::doDelete(), Transaction::doInsert(), Transaction::doSelect(), Report::doSelect(), and Transaction::doUpdate().

saxIDocumentHandler * DBPage::getDocHandler ( )
 

Definition at line 76 of file DBPage.cpp.

Referenced by Transaction::buildRecord(), Report::buildRecord(), Transaction::buildXML(), and Report::buildXML().

DOM_Document DBPage::getInput ( )
 

Definition at line 82 of file DBPage.cpp.

Referenced by Transaction::buildDocument().

PRUnichar * DBPage::getParameterCopy ( const nsAReadableString & name,
const nsAReadableString & def )
 

Definition at line 56 of file DBPage.cpp.

Referenced by Transaction::aSeek(), Transaction::doDelete(), Transaction::doSelect(), Report::doSelect(), and getConnection().

void DBPage::releaseConnection ( ) [protected]
 

manually release the connection, causes commit and close close is cached by pooling code.

Exceptions:
SQLException  

Definition at line 184 of file DBPage.cpp.

Referenced by ParseURI().

void DBPage::rollbackConnection ( ) [protected]
 

trigger a rollback of the connection.

connection is also closed

Definition at line 199 of file DBPage.cpp.

Referenced by ParseURI().

void DBPage::run ( Template * pTemplate ) [protected]
 

Run nested inside of parent page.

void DBPage::setParameter ( const nsAReadableString & name,
const nsAReadableString & value )
 

Definition at line 64 of file DBPage.cpp.

Referenced by Transaction::aSeek(), and Transaction::buildDocument().


Member Data Documentation

nsCOMPtr< saxAttributeList > DBPage::m_attr [private]
 

Definition at line 69 of file DBPage.h.

nsCOMPtr< saxIDocumentHandler > DBPage::m_documentHandler [private]
 

Definition at line 70 of file DBPage.h.

Connection * DBPage::m_pConn [private]
 

Currently active database connection.

Definition at line 75 of file DBPage.h.

nsCOMPtr< px7IRequest > DBPage::m_request
 

Definition at line 45 of file DBPage.h.

nsCOMPtr< px7IResponse > DBPage::m_response
 

Definition at line 46 of file DBPage.h.


The documentation for this class was generated from the following files:
Generated at Tue Sep 12 16:29:51 2000 by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000