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

Public Member Functions

 CChestDBProvider (ParaInfoCenter::DBEntity *pDb)
 
ParaInfoCenter::DBEntityGetDBEntity ()
 get the database interface. More...
 
void SetDBEntity (ParaInfoCenter::DBEntity *pDb)
 set the database interface. More...
 
bool InsertChestRecord (stChestDbRecord &record)
 Insert the new chest record to Chest_DB. More...
 
bool DeleteChestRecordByID (int ID)
 delete the existing chest record from Chest_DB More...
 

Static Public Member Functions

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

Member Function Documentation

§ DeleteChestRecordByID()

bool CChestDBProvider::DeleteChestRecordByID ( int  ID)

delete the existing chest record from Chest_DB

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

§ GetDBEntity()

ParaInfoCenter::DBEntity * CChestDBProvider::GetDBEntity ( )

get the database interface.

§ GetInstance()

CChestDBProvider & CChestDBProvider::GetInstance ( )
static

get the singleton class.

§ InsertChestRecord()

bool CChestDBProvider::InsertChestRecord ( stChestDbRecord record)

Insert the new chest record to Chest_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 CChestDBProvider::SetDBEntity ( ParaInfoCenter::DBEntity pDb)

set the database interface.


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