DCL 4.0
Loading...
Searching...
No Matches
SQL::Query Class Referenceabstract

#include <SQLCore.h>

Inheritance diagram for SQL::Query:
Object IBQuery IFXQuery MyQuery OciQuery PgQuery

Public Types

enum  State { stStandBy = 0x0001 , stPrepared = 0x0002 , stExecuted = 0x0004 , stFetched = 0x0008 }

Protected Member Functions

 Query (Connection *_connHandle)
virtual ~Query ()
virtual void __destroy ()=0
virtual bool __prepare (const char *_sql, size_t _sqllen, size_t _paramCount)=0
virtual bool __execute ()=0
virtual bool __fetch ()=0
virtual bool __nextResult ()
virtual bool __getField (size_t _index, Field **_fieldHandleOut)=0
virtual bool __getParam (size_t _index, Param **_paramHandleOut)=0
Protected Member Functions inherited from Object
virtual ~Object ()
 Object ()

Protected Attributes

Connection__connHandle
bool __eof
int64_t __affectedRows
size_t __fieldCount
size_t __paramCount
wchar_t __placeholder
unsigned int __states

Friends

class Connection

Additional Inherited Members

Public Member Functions inherited from Object
virtual String toString () const
virtual void destroy ()
String className () const
bool isInstanceOf (const std::type_info &typeinfo) const
virtual const std::type_info & typeInfo () const

Detailed Description

Definition at line 240 of file SQLCore.h.

Member Enumeration Documentation

◆ State

Enumerator
stStandBy 
stPrepared 
stExecuted 
stFetched 

Definition at line 300 of file SQLCore.h.

301 {
302 stStandBy = 0x0001,
303 stPrepared = 0x0002,
304 stExecuted = 0x0004,
305 stFetched = 0x0008
306 };

Constructor & Destructor Documentation

◆ Query()

SQL::Query::Query ( Connection * _connHandle)
protected

◆ ~Query()

SQL::Query::~Query ( )
protectedvirtual

Definition at line 532 of file SQLCore.cpp.

533{
534 __connHandle->release();
535}
Connection * __connHandle
Definition SQLCore.h:285

Member Function Documentation

◆ __destroy()

virtual void SQL::Query::__destroy ( )
protectedpure virtual

Implemented in IBQuery, IFXQuery, MyQuery, OciQuery, and PgQuery.

◆ __execute()

virtual bool SQL::Query::__execute ( )
protectedpure virtual

Implemented in IBQuery, IFXQuery, MyQuery, OciQuery, and PgQuery.

◆ __fetch()

virtual bool SQL::Query::__fetch ( )
protectedpure virtual

Implemented in IBQuery, IFXQuery, MyQuery, OciQuery, and PgQuery.

◆ __getField()

virtual bool SQL::Query::__getField ( size_t _index,
Field ** _fieldHandleOut )
protectedpure virtual

Implemented in IBQuery, IFXQuery, MyQuery, OciQuery, and PgQuery.

◆ __getParam()

virtual bool SQL::Query::__getParam ( size_t _index,
Param ** _paramHandleOut )
protectedpure virtual

Implemented in IBQuery, IFXQuery, MyQuery, OciQuery, and PgQuery.

◆ __nextResult()

bool SQL::Query::__nextResult ( )
protectedvirtual

Reimplemented in MyQuery.

Definition at line 579 of file SQLCore.cpp.

580{
582 return false;
583}
#define __SET_ERROR(_errorCode)
Definition SQLCore.cpp:150
@ eNotSupportMethod
Definition SQLCore.h:25

◆ __prepare()

virtual bool SQL::Query::__prepare ( const char * _sql,
size_t _sqllen,
size_t _paramCount )
protectedpure virtual

Implemented in IBQuery, IFXQuery, MyQuery, OciQuery, and PgQuery.

◆ Connection

friend class Connection
friend

Definition at line 293 of file SQLCore.h.

Member Data Documentation

◆ __affectedRows

int64_t SQL::Query::__affectedRows
protected

Definition at line 287 of file SQLCore.h.

◆ __connHandle

Connection* SQL::Query::__connHandle
protected

Definition at line 285 of file SQLCore.h.

◆ __eof

bool SQL::Query::__eof
protected

Definition at line 286 of file SQLCore.h.

◆ __fieldCount

size_t SQL::Query::__fieldCount
protected

Definition at line 289 of file SQLCore.h.

◆ __paramCount

size_t SQL::Query::__paramCount
protected

Definition at line 290 of file SQLCore.h.

◆ __placeholder

wchar_t SQL::Query::__placeholder
protected

Definition at line 291 of file SQLCore.h.

◆ __states

unsigned int SQL::Query::__states
protected

Definition at line 297 of file SQLCore.h.


The documentation for this class was generated from the following files: