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

Public Member Functions

 CTitleDBProvider (ParaInfoCenter::DBEntity *pDb)
 
ParaInfoCenter::DBEntityGetDBEntity ()
 get the database interface. More...
 
void SetDBEntity (ParaInfoCenter::DBEntity *pDb)
 set the database interface. More...
 
bool InsertTitleRecord (stTitleDbRecord &record)
 Insert the new title record to Title_DB. More...
 
bool DeleteTitleRecordByID (int ID)
 delete the existing title record from Title_DB More...
 

Static Public Member Functions

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

Member Function Documentation

§ DeleteTitleRecordByID()

bool CTitleDBProvider::DeleteTitleRecordByID ( int  ID)

delete the existing title record from Title_DB

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

§ GetDBEntity()

ParaInfoCenter::DBEntity * CTitleDBProvider::GetDBEntity ( )

get the database interface.

§ GetInstance()

CTitleDBProvider & CTitleDBProvider::GetInstance ( )
static

get the singleton class.

§ InsertTitleRecord()

bool CTitleDBProvider::InsertTitleRecord ( stTitleDbRecord record)

Insert the new title record to Title_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 CTitleDBProvider::SetDBEntity ( ParaInfoCenter::DBEntity pDb)

set the database interface.


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