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

DOQueryField Class Reference

Holds the field descriptions of a query. More...

#include <QueryField.h>

List of all members.

Public Methods

DOQueryGetQuery () const
 DOQueryField (DOQuery *pQuery, unsigned int number, MYSQL_FIELD *pField)
 Constructor method. More...

virtual ~DOQueryField ()
 Destructor method. More...

const char* GetName ()
 Return the name of the field. More...

CString GetValue ()
 Return the value of the field. More...

bool isNull ()
 true if the field value is NIL. More...

bool isNum ()
 true if the field contains a numeric value. More...

bool isPriKey ()
 true if the field is (part of) the primary key. More...

unsigned int GetNumber () const
 Returns the value of member 'm_number'. More...


Public Attributes

DOQuery_refQuery
DOQueryField* _prevQuery
DOQueryField* _nextQuery

Private Methods

void ConstructorInclude (DOQuery *pQuery)
 Method which must be called first in a constructor. More...

void DestructorInclude ()
 Method which must be called first in a destructor. More...


Private Attributes

MYSQL_FIELD* m_pField
unsigned int m_number


Detailed Description

Holds the field descriptions of a query.

Definition at line 69 of file QueryField.h.


Constructor & Destructor Documentation

DOQueryField::DOQueryField ( DOQuery * pQuery,
unsigned int number,
MYSQL_FIELD * pField )
 

Constructor method.

Definition at line 71 of file QueryField.cpp.

DOQueryField::~DOQueryField ( ) [virtual]
 

Destructor method.

Definition at line 85 of file QueryField.cpp.


Member Function Documentation

void DOQueryField::ConstructorInclude ( DOQuery * pQuery ) [private]
 

Method which must be called first in a constructor.

Definition at line 116 of file QueryField.cpp.

void DOQueryField::DestructorInclude ( ) [private]
 

Method which must be called first in a destructor.

Definition at line 144 of file QueryField.cpp.

Referenced by ~DOQueryField().

const char * DOQueryField::GetName ( ) [inline]
 

Return the name of the field.

Definition at line 121 of file QueryField.h.

unsigned int DOQueryField::GetNumber ( ) const [inline]
 

Returns the value of member 'm_number'.

Definition at line 162 of file QueryField.h.

DOQuery * DOQueryField::GetQuery ( ) const [inline]
 

Definition at line 79 of file QueryField.h.

Referenced by GetValue(), and isNull().

CString DOQueryField::GetValue ( )
 

Return the value of the field.

Note that NULL fields are returned as empty strings, use DOQueryField::isNull() to make this distinction.

Definition at line 99 of file QueryField.cpp.

Referenced by IRPlus::InsertIRFieldRecord(), IRPlus::newMeth(), and IRPlus::newParam().

bool DOQueryField::isNull ( ) [inline]
 

true if the field value is NIL.

Definition at line 131 of file QueryField.h.

bool DOQueryField::isNum ( ) [inline]
 

true if the field contains a numeric value.

Definition at line 142 of file QueryField.h.

bool DOQueryField::isPriKey ( ) [inline]
 

true if the field is (part of) the primary key.

Definition at line 152 of file QueryField.h.


Member Data Documentation

DOQueryField * DOQueryField::_nextQuery
 

Definition at line 76 of file QueryField.h.

DOQueryField * DOQueryField::_prevQuery
 

Definition at line 75 of file QueryField.h.

DOQuery * DOQueryField::_refQuery
 

Definition at line 74 of file QueryField.h.

unsigned int DOQueryField::m_number [private]
 

Definition at line 87 of file QueryField.h.

MYSQL_FIELD * DOQueryField::m_pField [private]
 

Definition at line 86 of file QueryField.h.


The documentation for this class was generated from the following files:
This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.