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

uesqlc::TSqlstateDescriptor Class Reference

Handler for SQLSTATE status parameter. More...

#include <defs.hh>

Inheritance diagram for uesqlc::TSqlstateDescriptor:

uesqlc::TAbstractConnectionManager< TConnectionData, TResult > uesqlc::TNotFoundException uesqlc::TSqlerrorException List of all members.

Public Methods

 TSqlstateDescriptor (void)
 Builds a new instance and initializes the map.

bool queryIsEmpty (void) const
bool queryHasSingleRow (void) const
int getUniqueValue (void) const
int getUniqueValue (const char *pkcSQLSTATE) const
const char * getClassValue (void) const
const char * getClassValue (const char *pkcSQLSTATE) const
mpcl::text::TString getDescription (const char *pkcSQLSTATE) const
const char * getSubclassValue (void) const
const char * getSubclassValue (const char *pkcSQLSTATE) const

Static Protected Methods

void _addCondition (const char *pkcSQLSTATE, int iVALUE)
void _initialize (void)
 Initializes the SQLSTATE to integer map.


Detailed Description

Handler for SQLSTATE status parameter.

Definition at line 473 of file c++/include/uesqlc/defs.hh.


Member Function Documentation

void uesqlc::TSqlstateDescriptor::_addCondition const char *    pkcSQLSTATE,
int    iVALUE
[static, protected]
 

Adds a new pair (pkcSQLSTATE, iVALUE) to the map.

Parameters:
pkcSQLSTATE  SQL state description.
iVALUE  SQL state unique integer value.

Definition at line 272 of file defs.cc.

Referenced by _initialize().

const char * uesqlc::TSqlstateDescriptor::getClassValue const char *    pkcSQLSTATE const
 

Gets SQLSTATE class for pkcSQLSTATE.

Returns:
Class description.

Definition at line 373 of file defs.cc.

References getUniqueValue().

const char* uesqlc::TSqlstateDescriptor::getClassValue void    const [inline]
 

Gets SQLSTATE class.

Returns:
Class description.

Definition at line 576 of file c++/include/uesqlc/defs.hh.

References uesqlc::SQLSTATE.

Referenced by getDescription().

mpcl::text::TString uesqlc::TSqlstateDescriptor::getDescription const char *    pkcSQLSTATE const
 

Gets the complete description for the SQLSTATE as in the source parameter pkcSQLSTATE.

Returns:
Complete description of the SQLSTATE in pkcSQLSTATE.

Definition at line 589 of file defs.cc.

References getClassValue(), and getSubclassValue().

Referenced by uesqlc::TNotFoundException::TNotFoundException(), and uesqlc::TSqlerrorException::TSqlerrorException().

const char * uesqlc::TSqlstateDescriptor::getSubclassValue const char *    pkcSQLSTATE const
 

Gets SQLSTATE subclass for pkcSQLSTATE.

Returns:
Subclass description.

Definition at line 608 of file defs.cc.

References getUniqueValue().

const char* uesqlc::TSqlstateDescriptor::getSubclassValue void    const [inline]
 

Gets SQLSTATE subclass.

Returns:
Subclass description.

Definition at line 598 of file c++/include/uesqlc/defs.hh.

References uesqlc::SQLSTATE.

Referenced by getDescription().

int uesqlc::TSqlstateDescriptor::getUniqueValue const char *    pkcSQLSTATE const [inline]
 

Finds the integer value for the SQLSTATE in pkcSQLSTATE.

Returns:
The integer value for the SQLSTATE in pkcSQLSTATE.

Definition at line 567 of file c++/include/uesqlc/defs.hh.

int uesqlc::TSqlstateDescriptor::getUniqueValue void    const [inline]
 

Finds the integer value for the current SQLSTATE.

Returns:
The integer value for the current SQLSTATE.

Definition at line 547 of file c++/include/uesqlc/defs.hh.

References uesqlc::SQLSTATE.

Referenced by getClassValue(), getSubclassValue(), queryHasSingleRow(), and queryIsEmpty().

bool uesqlc::TSqlstateDescriptor::queryHasSingleRow void    const [inline]
 

Returns true if the query has only a single row.

Returns:
True if query has a single row.

Definition at line 534 of file c++/include/uesqlc/defs.hh.

References getUniqueValue().

bool uesqlc::TSqlstateDescriptor::queryIsEmpty void    const [inline]
 

Returns true if the query is empty.

Returns:
True if query is empty.

Definition at line 525 of file c++/include/uesqlc/defs.hh.

References getUniqueValue().


The documentation for this class was generated from the following files:
Generated on Mon Oct 13 02:40:13 2003 for UESQLC by doxygen1.2.18