header

SQLAccess Class Reference

#include <SQLAccess.h>

Inheritance diagram for SQLAccess:

MDSoapClient SQLRowset List of all members.

Public Member Functions

 SQLAccess (const std::string &host="", int port=8833, const std::string &path="", const std::string &configFile="", bool keep_alive=false, bool dbg=false)
 ~SQLAccess ()
int GetSQLPropertyDocument (GetSQLPropertyDocumentRequest *req, GetSQLPropertyDocumentResponse **res)
int MakeGetSQLPropertyDocumentRequest (std::string &dran, GetSQLPropertyDocumentRequest **req)
int SimplePropertyDocument (std::string &dran)
void PrintDatasetMap (PropertyDocument *res)
void PrintDefaultConfiguration (wsdai__ConfigurationDocumentType *cdt)
void PrintConfigurationMap (PropertyDocument *res)
void PrintLanguageMap (PropertyDocument *res)
void PrintGeneralInfo (PropertyDocument *res)
void PrintPropertyDocument (PropertyDocument *res)
int SQLExecute (SQLExecuteRequest *req, SQLExecuteResponse **res)
int FetchWRS (SQLExecuteResponse *seRes, WebRowSet **wrs)
int GetUpdateCount (SQLExecuteResponse *seRes, int &updateCount)
int MakeSQLExecuteRequest (std::string &dran, std::string &uri, std::string &command, SQLExecuteRequest **req)
int SimpleExecute (std::string &dran, std::string &ommand, const std::string uri="")
void PrintWRS (WebRowSet *wrs, int type)

Detailed Description

Definition at line 40 of file SQLAccess.h.


Constructor & Destructor Documentation

SQLAccess::SQLAccess ( const std::string &  host = "",
int  port = 8833,
const std::string &  path = "",
const std::string &  configFile = "",
bool  keep_alive = false,
bool  dbg = false 
)

Definition at line 23 of file SQLAccess.cpp.

SQLAccess::~SQLAccess (  ) 


Member Function Documentation

int SQLAccess::FetchWRS ( SQLExecuteResponse seRes,
WebRowSet **  wrs 
)

Definition at line 88 of file SQLAccess.cpp.

References MDSoapClient::errorMsg, and SOAP_DATA_FAULT.

Referenced by SimpleExecute().

int SQLAccess::GetSQLPropertyDocument ( GetSQLPropertyDocumentRequest req,
GetSQLPropertyDocumentResponse **  res 
)

Definition at line 30 of file SQLAccess.cpp.

References MDSoapClient::access_end_point, MDSoapClient::errorMsg, MDSoapClient::setUser(), and MDSoapClient::soap.

Referenced by SimplePropertyDocument().

int SQLAccess::GetUpdateCount ( SQLExecuteResponse seRes,
int &  updateCount 
)

Reimplemented in SQLRowset.

Definition at line 102 of file SQLAccess.cpp.

References MDSoapClient::errorMsg.

Referenced by SimpleExecute().

int SQLAccess::MakeGetSQLPropertyDocumentRequest ( std::string &  dran,
GetSQLPropertyDocumentRequest **  req 
)

Definition at line 114 of file SQLAccess.cpp.

References MDSoapClient::soap.

Referenced by SimplePropertyDocument().

int SQLAccess::MakeSQLExecuteRequest ( std::string &  dran,
std::string &  uri,
std::string &  command,
SQLExecuteRequest **  req 
)

Definition at line 130 of file SQLAccess.cpp.

References MDSoapClient::soap, and WRS_FORMAT_URI.

Referenced by SimpleExecute().

void SQLAccess::PrintConfigurationMap ( PropertyDocument res  ) 

Definition at line 263 of file SQLAccess.cpp.

References PrintDefaultConfiguration().

Referenced by PrintPropertyDocument().

void SQLAccess::PrintDatasetMap ( PropertyDocument res  ) 

Definition at line 232 of file SQLAccess.cpp.

Referenced by PrintPropertyDocument().

void SQLAccess::PrintDefaultConfiguration ( wsdai__ConfigurationDocumentType *  cdt  ) 

Definition at line 246 of file SQLAccess.cpp.

References MDSoapClient::soap.

Referenced by PrintConfigurationMap().

void SQLAccess::PrintGeneralInfo ( PropertyDocument res  ) 

Definition at line 301 of file SQLAccess.cpp.

References MDSoapClient::soap.

Referenced by PrintPropertyDocument().

void SQLAccess::PrintLanguageMap ( PropertyDocument res  ) 

Definition at line 285 of file SQLAccess.cpp.

Referenced by PrintPropertyDocument().

void SQLAccess::PrintPropertyDocument ( PropertyDocument res  ) 

Definition at line 331 of file SQLAccess.cpp.

References PrintConfigurationMap(), PrintDatasetMap(), PrintGeneralInfo(), and PrintLanguageMap().

Referenced by SimplePropertyDocument(), and SQLRowset::SimpleRowsetPropertyDocument().

void SQLAccess::PrintWRS ( WebRowSet wrs,
int  type 
)

Definition at line 340 of file SQLAccess.cpp.

Referenced by SimpleExecute(), and SQLRowset::SimpleExecuteRowset().

int SQLAccess::SimpleExecute ( std::string &  dran,
std::string &  ommand,
const std::string  uri = "" 
)

Definition at line 158 of file SQLAccess.cpp.

References _DELETE, _INSERT, MDSoapClient::errorMsg, FetchWRS(), GetUpdateCount(), MakeSQLExecuteRequest(), PrintWRS(), and SQLExecute().

int SQLAccess::SimplePropertyDocument ( std::string &  dran  ) 

Definition at line 206 of file SQLAccess.cpp.

References MDSoapClient::errorMsg, GetSQLPropertyDocument(), MakeGetSQLPropertyDocumentRequest(), and PrintPropertyDocument().

int SQLAccess::SQLExecute ( SQLExecuteRequest req,
SQLExecuteResponse **  res 
)

Definition at line 47 of file SQLAccess.cpp.

References MDSoapClient::access_end_point, MDSoapClient::errorMsg, MDSoapClient::setUser(), and MDSoapClient::soap.

Referenced by SimpleExecute().


The documentation for this class was generated from the following files:
Generated on Mon Apr 16 13:59:22 2012 for AMGA by  doxygen 1.4.7