#include <Statement.h>
Static Public Member Functions | |
static Statement * | getStatement (ParsedData *pData) |
static Statement * | getStatement (ParsedData *pData) |
Definition at line 284 of file Statement.h.
static Statement* StatementFactory::getStatement | ( | ParsedData * | pData | ) | [static] |
Statement * StatementFactory::getStatement | ( | ParsedData * | pData | ) | [static] |
Definition at line 17 of file StatementFactory.cxx.
References CreateIndexStatement, CreateTableStatement, DeleteStatement, DropIndexStatement, DropTableStatement, ParsedData::getStmtType(), InsertStatement, SelectStatement, stmt, and UpdateStatement.
Referenced by SqlStatement::prepare().
00018 { 00019 Statement *stmt; 00020 switch(data->getStmtType()) 00021 { 00022 case InsertStatement: 00023 stmt = new InsStatement(); 00024 break; 00025 case SelectStatement: 00026 stmt = new SelStatement(); 00027 break; 00028 case UpdateStatement: 00029 stmt = new UpdStatement(); 00030 break; 00031 case DeleteStatement: 00032 stmt = new DelStatement(); 00033 break; 00034 case CreateTableStatement: 00035 stmt = new CreateTblStatement(); 00036 break; 00037 case DropTableStatement: 00038 stmt = new DropTblStatement(); 00039 break; 00040 case CreateIndexStatement: 00041 stmt = new CreateIdxStatement(); 00042 break; 00043 case DropIndexStatement: 00044 stmt = new DropIdxStatement(); 00045 break; 00046 } 00047 stmt->setParsedData(data); 00048 return stmt; 00049 }
Here is the call graph for this function:
Here is the caller graph for this function: