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

uesqlc::IType Class Reference

Base SQL data type. It is used as base class for embedded variables. More...

#include <type.hh>

Inheritance diagram for uesqlc::IType:

uesqlc::TDate uesqlc::TInteger uesqlc::TReal uesqlc::TSearchCondition uesqlc::TString uesqlc::TTime uesqlc::TIdentifier List of all members.

Public Types

typedef unsigned int size_type
 Size type.


Public Methods

 IType (void)
 Builds a new instance.

virtual ~IType (void)
 Destroys the instance.

void updateFromBuffer (void)
virtual void set (const char *pkcVALUE)=0
virtual void set (const string &rkyVALUE)=0
virtual mpcl::text::TString get (void) const=0
void * getBuffer (const size_type kzSIZE) const
bool isNull (void) const

Protected Methods

void setNull (bool gIS_NULL)

Detailed Description

Base SQL data type. It is used as base class for embedded variables.

Definition at line 39 of file type.hh.


Member Function Documentation

virtual mpcl::text::TString uesqlc::IType::get void    const [pure virtual]
 

Returns a string with the value of the instance. If the instance holds a null value, then the string 'NULL' will be printed.

Returns:
The result of converting this instance to string.

Implemented in uesqlc::TDate, uesqlc::TIdentifier, uesqlc::TInteger, uesqlc::TReal, uesqlc::TSearchCondition, uesqlc::TString, and uesqlc::TTime.

Referenced by uesqlc::TAbstractConnectionManager< TConnectionData, TResult >::pushOnInputQueue().

void* uesqlc::IType::getBuffer const size_type    kzSIZE const [inline]
 

Returns a buffer where you can assign a value of, at most, kzSIZE octets.

Parameters:
kzSIZE  Octet count.
Returns:
A pointer to the buffer.

Definition at line 141 of file type.hh.

References size_type.

bool uesqlc::IType::isNull void    const [inline]
 

Returns true if the last data retrieved has been a NULL value.

Returns:
True if the last data retrieved has been a NULL value.

Definition at line 155 of file type.hh.

Referenced by uesqlc::TTime::get(), uesqlc::TString::get(), uesqlc::TSearchCondition::get(), uesqlc::TReal::get(), uesqlc::TInteger::get(), uesqlc::TIdentifier::get(), uesqlc::TDate::get(), uesqlc::TTime::set(), uesqlc::TReal::set(), uesqlc::TInteger::set(), and uesqlc::TDate::set().

virtual void uesqlc::IType::set const string &    rkyVALUE [pure virtual]
 

Assigns value rkyVALUE.

Parameters:
rkyVALUE  Source value.

Implemented in uesqlc::TDate.

virtual void uesqlc::IType::set const char *    pkcVALUE [pure virtual]
 

Assigns value pkcVALUE.

Parameters:
pkcVALUE  Source value.

Implemented in uesqlc::TDate, uesqlc::TInteger, uesqlc::TReal, uesqlc::TSearchCondition, uesqlc::TString, and uesqlc::TTime.

Referenced by updateFromBuffer().

void uesqlc::IType::setNull bool    gIS_NULL [inline, protected]
 

Sets null state of the instance.

Parameters:
gIS_NULL  Null state.

Definition at line 69 of file type.hh.

Referenced by uesqlc::TTime::set(), uesqlc::TString::set(), uesqlc::TSearchCondition::set(), uesqlc::TReal::set(), uesqlc::TInteger::set(), uesqlc::TDate::set(), uesqlc::TDate::TDate(), uesqlc::TInteger::TInteger(), uesqlc::TReal::TReal(), uesqlc::TString::TString(), and uesqlc::TTime::TTime().

void uesqlc::IType::updateFromBuffer void    [inline]
 

Returns a buffer where you can assign a value of, at most, kzSIZE octets.

Parameters:
kzSIZE  Octet count.
Returns:
A pointer to the buffer.

Definition at line 101 of file type.hh.

References set().


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