Statement Class Reference

#include <Statement.h>

Inheritance diagram for Statement:

Inheritance graph
[legend]
Collaboration diagram for Statement:

Collaboration graph
[legend]

Public Member Functions

void setParsedData (ParsedData *pData)
void setDbMgr (DatabaseManager *dbmgr)
virtual DbRetVal execute (int &rowsAffected)=0
virtual DbRetVal setParam (int paramNo, void *value)=0
virtual DbRetVal setShortParam (int paramNo, short value)=0
virtual DbRetVal setIntParam (int paramNo, int value)=0
virtual DbRetVal setLongParam (int paramNo, long value)=0
virtual DbRetVal setLongLongParam (int paramNo, long long value)=0
virtual DbRetVal setByteIntParam (int paramNo, ByteInt value)=0
virtual DbRetVal setFloatParam (int paramNo, float value)=0
virtual DbRetVal setDoubleParam (int paramNo, double value)=0
virtual DbRetVal setStringParam (int paramNo, char *value)=0
virtual DbRetVal setDateParam (int paramNo, Date value)=0
virtual DbRetVal setTimeParam (int paramNo, Time value)=0
virtual DbRetVal setTimeStampParam (int paramNo, TimeStamp value)=0
virtual DbRetVal resolve ()=0
virtual ~Statement ()
void setParsedData (ParsedData *pData)
void setDbMgr (DatabaseManager *dbmgr)
virtual int noOfParamFields ()
virtual DbRetVal execute (int &rowsAffected)=0
virtual DbRetVal setParam (int paramNo, void *value)=0
virtual DbRetVal setShortParam (int paramNo, short value)=0
virtual DbRetVal setIntParam (int paramNo, int value)=0
virtual DbRetVal setLongParam (int paramNo, long value)=0
virtual DbRetVal setLongLongParam (int paramNo, long long value)=0
virtual DbRetVal setByteIntParam (int paramNo, ByteInt value)=0
virtual DbRetVal setFloatParam (int paramNo, float value)=0
virtual DbRetVal setDoubleParam (int paramNo, double value)=0
virtual DbRetVal setStringParam (int paramNo, char *value)=0
virtual DbRetVal setDateParam (int paramNo, Date value)=0
virtual DbRetVal setTimeParam (int paramNo, Time value)=0
virtual DbRetVal setTimeStampParam (int paramNo, TimeStamp value)=0
virtual DbRetVal resolve ()=0
virtual ~Statement ()

Protected Attributes

ParsedDataparsedData
DatabaseManagerdbMgr
ParsedDataparsedData
DatabaseManagerdbMgr

Detailed Description

Definition at line 24 of file Statement.h.


Constructor & Destructor Documentation

virtual Statement::~Statement (  )  [inline, virtual]

Definition at line 52 of file Statement.h.

00052 {}

virtual Statement::~Statement (  )  [inline, virtual]

Definition at line 53 of file Statement.h.

00053 {}


Member Function Documentation

virtual DbRetVal Statement::execute ( int &  rowsAffected  )  [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, CreateTblStatement, CreateIdxStatement, DropTblStatement, DropIdxStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, CreateTblStatement, CreateIdxStatement, DropTblStatement, and DropIdxStatement.

virtual DbRetVal Statement::execute ( int &  rowsAffected  )  [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, CreateTblStatement, CreateIdxStatement, DropTblStatement, DropIdxStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, CreateTblStatement, CreateIdxStatement, DropTblStatement, and DropIdxStatement.

Referenced by SqlStatement::execute().

Here is the caller graph for this function:

virtual int Statement::noOfParamFields (  )  [inline, virtual]

Reimplemented in DmlStatement, and DmlStatement.

Definition at line 35 of file Statement.h.

Referenced by SqlStatement::noOfParamFields().

00035 { return  0; }

Here is the caller graph for this function:

virtual DbRetVal Statement::resolve (  )  [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, CreateTblStatement, CreateIdxStatement, DropTblStatement, DropIdxStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, CreateTblStatement, CreateIdxStatement, DropTblStatement, and DropIdxStatement.

virtual DbRetVal Statement::resolve (  )  [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, CreateTblStatement, CreateIdxStatement, DropTblStatement, DropIdxStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, CreateTblStatement, CreateIdxStatement, DropTblStatement, and DropIdxStatement.

Referenced by SqlStatement::prepare().

Here is the caller graph for this function:

virtual DbRetVal Statement::setByteIntParam ( int  paramNo,
ByteInt  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setByteIntParam ( int  paramNo,
ByteInt  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setByteIntParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setDateParam ( int  paramNo,
Date  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setDateParam ( int  paramNo,
Date  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setDateParam().

Here is the caller graph for this function:

void Statement::setDbMgr ( DatabaseManager dbmgr  )  [inline]

Definition at line 32 of file Statement.h.

References dbMgr.

00032 { dbMgr = dbmgr; }

void Statement::setDbMgr ( DatabaseManager dbmgr  )  [inline]

Definition at line 32 of file Statement.h.

References dbMgr.

Referenced by SqlStatement::prepare().

00032 { dbMgr = dbmgr; }

Here is the caller graph for this function:

virtual DbRetVal Statement::setDoubleParam ( int  paramNo,
double  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setDoubleParam ( int  paramNo,
double  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setDoubleParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setFloatParam ( int  paramNo,
float  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setFloatParam ( int  paramNo,
float  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setFloatParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setIntParam ( int  paramNo,
int  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setIntParam ( int  paramNo,
int  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setIntParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setLongLongParam ( int  paramNo,
long long  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setLongLongParam ( int  paramNo,
long long  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setLongLongParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setLongParam ( int  paramNo,
long  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setLongParam ( int  paramNo,
long  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setLongParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setParam ( int  paramNo,
void *  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setParam ( int  paramNo,
void *  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::bindParam().

Here is the caller graph for this function:

void Statement::setParsedData ( ParsedData pData  )  [inline]

Definition at line 31 of file Statement.h.

References parsedData.

00031 {  parsedData = pData; }

void Statement::setParsedData ( ParsedData pData  )  [inline]

Definition at line 31 of file Statement.h.

References parsedData.

00031 {  parsedData = pData; }

virtual DbRetVal Statement::setShortParam ( int  paramNo,
short  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setShortParam ( int  paramNo,
short  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setShortParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setStringParam ( int  paramNo,
char *  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setStringParam ( int  paramNo,
char *  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setStringParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setTimeParam ( int  paramNo,
Time  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setTimeParam ( int  paramNo,
Time  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setTimeParam().

Here is the caller graph for this function:

virtual DbRetVal Statement::setTimeStampParam ( int  paramNo,
TimeStamp  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

virtual DbRetVal Statement::setTimeStampParam ( int  paramNo,
TimeStamp  value 
) [pure virtual]

Implemented in DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, DdlStatement, DmlStatement, InsStatement, SelStatement, UpdStatement, DelStatement, and DdlStatement.

Referenced by SqlStatement::setTimeStampParam().

Here is the caller graph for this function:


Field Documentation

DatabaseManager* Statement::dbMgr [protected]

Definition at line 28 of file Statement.h.

DatabaseManager* Statement::dbMgr [protected]

Definition at line 28 of file Statement.h.

Referenced by CreateIdxStatement::CreateIdxStatement(), CreateTblStatement::CreateTblStatement(), DelStatement::DelStatement(), DropIdxStatement::execute(), DropTblStatement::execute(), CreateIdxStatement::execute(), CreateTblStatement::execute(), InsStatement::InsStatement(), UpdStatement::resolve(), SelStatement::resolve(), InsStatement::resolve(), DelStatement::resolve(), SelStatement::SelStatement(), setDbMgr(), UpdStatement::UpdStatement(), DelStatement::~DelStatement(), InsStatement::~InsStatement(), SelStatement::~SelStatement(), and UpdStatement::~UpdStatement().

ParsedData* Statement::parsedData [protected]

Definition at line 27 of file Statement.h.

ParsedData* Statement::parsedData [protected]

Definition at line 27 of file Statement.h.

Referenced by CreateIdxStatement::CreateIdxStatement(), CreateTblStatement::CreateTblStatement(), DelStatement::DelStatement(), DropIdxStatement::execute(), DropTblStatement::execute(), CreateIdxStatement::execute(), CreateTblStatement::execute(), SelStatement::getFieldName(), SelStatement::getProjFldInfo(), InsStatement::InsStatement(), UpdStatement::resolve(), SelStatement::resolve(), InsStatement::resolve(), DelStatement::resolve(), CreateTblStatement::resolve(), UpdStatement::resolveForAssignment(), DelStatement::resolveForCondition(), SelStatement::SelStatement(), setParsedData(), and UpdStatement::UpdStatement().


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 22:53:14 2008 for csql by  doxygen 1.4.7