My Project
Public Member Functions | Static Public Member Functions | List of all members
ParaEngine::CPuzzleDBProvider Class Reference

Public Member Functions

 CPuzzleDBProvider (ParaInfoCenter::DBEntity *pDb)
 
ParaInfoCenter::DBEntityGetDBEntity ()
 get the database interface. More...
 
void SetDBEntity (ParaInfoCenter::DBEntity *pDb)
 set the database interface. More...
 
bool InsertPuzzleRecord (stPuzzleDbRecord &record)
 Insert the new puzzle record to Puzzle_DB. More...
 
bool DeletePuzzleRecordByID (int ID)
 delete the existing puzzle record from Puzzle_DB More...
 

Static Public Member Functions

static CPuzzleDBProviderGetInstance ()
 get the singleton class. More...
 

Member Function Documentation

§ DeletePuzzleRecordByID()

bool CPuzzleDBProvider::DeletePuzzleRecordByID ( int  ID)

delete the existing puzzle record from Puzzle_DB

Parameters
IDID of target record
Returns
true if the record is deleted in database

§ GetDBEntity()

ParaInfoCenter::DBEntity * CPuzzleDBProvider::GetDBEntity ( )

get the database interface.

§ GetInstance()

CPuzzleDBProvider & CPuzzleDBProvider::GetInstance ( )
static

get the singleton class.

§ InsertPuzzleRecord()

bool CPuzzleDBProvider::InsertPuzzleRecord ( stPuzzleDbRecord record)

Insert the new puzzle record to Puzzle_DB.

Parameters
recordID of record will be ignored and filled with actual ID if inserted successfully
Returns
true if the record is inserted in database

§ SetDBEntity()

void CPuzzleDBProvider::SetDBEntity ( ParaInfoCenter::DBEntity pDb)

set the database interface.


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