DCL 4.1
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 242 of file SQLCore.h.

Member Enumeration Documentation

◆ State

Enumerator
stStandBy 
stPrepared 
stExecuted 
stFetched 

Definition at line 302 of file SQLCore.h.

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

Constructor & Destructor Documentation

◆ Query()

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

◆ ~Query()

SQL::Query::~Query ( )
protectedvirtual

Definition at line 513 of file SQLCore.cpp.

514{
515 __connHandle->release();
516}
Connection * __connHandle
Definition SQLCore.h:287

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 563 of file SQLCore.cpp.

564{
566 return false;
567}
#define __SET_ERROR(_errorCode)
Definition SQLCore.cpp:153
@ 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 295 of file SQLCore.h.

Member Data Documentation

◆ __affectedRows

int64_t SQL::Query::__affectedRows
protected

Definition at line 289 of file SQLCore.h.

◆ __connHandle

Connection* SQL::Query::__connHandle
protected

Definition at line 287 of file SQLCore.h.

◆ __eof

bool SQL::Query::__eof
protected

Definition at line 288 of file SQLCore.h.

◆ __fieldCount

size_t SQL::Query::__fieldCount
protected

Definition at line 291 of file SQLCore.h.

◆ __paramCount

size_t SQL::Query::__paramCount
protected

Definition at line 292 of file SQLCore.h.

◆ __placeholder

wchar_t SQL::Query::__placeholder
protected

Definition at line 293 of file SQLCore.h.

◆ __states

unsigned int SQL::Query::__states
protected

Definition at line 299 of file SQLCore.h.


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