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

Public Member Functions

 CPetAIDBProvider (ParaInfoCenter::DBEntity *pDb)
 
ParaInfoCenter::DBEntityGetDBEntity ()
 get the database interface. More...
 
void SetDBEntity (ParaInfoCenter::DBEntity *pDb)
 set the database interface. More...
 
bool InsertPetAIRecord (stPetAIDbRecord &record)
 Insert the new pet AI record to PetAI_DB. More...
 
bool DeletePetAIRecordByID (int ID)
 delete the existing pet AI record from PetAI_DB More...
 

Static Public Member Functions

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

Member Function Documentation

§ DeletePetAIRecordByID()

bool CPetAIDBProvider::DeletePetAIRecordByID ( int  ID)

delete the existing pet AI record from PetAI_DB

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

§ GetDBEntity()

ParaInfoCenter::DBEntity * CPetAIDBProvider::GetDBEntity ( )

get the database interface.

§ GetInstance()

CPetAIDBProvider & CPetAIDBProvider::GetInstance ( )
static

get the singleton class.

§ InsertPetAIRecord()

bool CPetAIDBProvider::InsertPetAIRecord ( stPetAIDbRecord record)

Insert the new pet AI record to PetAI_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 CPetAIDBProvider::SetDBEntity ( ParaInfoCenter::DBEntity pDb)

set the database interface.


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