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

Public Member Functions

 CStringTableDB (ParaInfoCenter::DBEntity *pDb)
 
bool GetStringbyID (string &sString, const __int64 &ID)
 Get string from ID. More...
 
bool InsertString (stStringTableDbRecord &record)
 Insert the new string table entry to StringTable_DB. More...
 
bool UpdateStringTable (const stStringTableDbRecord &record)
 Update the data fields of StringTable_DB. More...
 
bool DeleteEntryByID (const __int64 &ID)
 Delete string table entry. More...
 
void Cleanup ()
 clean up all stored procedure
 
ParaInfoCenter::DBEntityGetDBEntity ()
 get the database interface. More...
 
void SetDBEntity (ParaInfoCenter::DBEntity *pDb)
 set the database interface. More...
 
void TestDB ()
 

Static Public Member Functions

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

Member Function Documentation

§ DeleteEntryByID()

bool CStringTableDB::DeleteEntryByID ( const __int64 &  ID)

Delete string table entry.

Returns
true if the record is deleted in database.

§ GetDBEntity()

ParaInfoCenter::DBEntity * CStringTableDB::GetDBEntity ( )

get the database interface.

§ GetInstance()

CStringTableDB & CStringTableDB::GetInstance ( )
static

get the singleton class.

§ GetStringbyID()

bool CStringTableDB::GetStringbyID ( string &  sString,
const __int64 &  ID 
)

Get string from ID.

Parameters
sStringtarget ID string table entry
Returns
true if the record is found in database.

§ InsertString()

bool CStringTableDB::InsertString ( stStringTableDbRecord record)

Insert the new string table entry to StringTable_DB.

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

§ SetDBEntity()

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

set the database interface.

§ UpdateStringTable()

bool CStringTableDB::UpdateStringTable ( const stStringTableDbRecord record)

Update the data fields of StringTable_DB.

Parameters
entryID field of the entry must be valid.
Returns
true if the record is updated in database.

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