TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AccountInfoQueryHolder Class Reference

Public Types

enum  {
  GLOBAL_ACCOUNT_TOYS = 0, BATTLE_PETS, BATTLE_PET_SLOTS, GLOBAL_ACCOUNT_HEIRLOOMS,
  GLOBAL_REALM_CHARACTER_COUNTS, MAX_QUERIES
}
 

Public Member Functions

 AccountInfoQueryHolder ()
 
bool Initialize (uint32 accountId, uint32 battlenetAccountId)
 
- Public Member Functions inherited from SQLQueryHolder
 SQLQueryHolder ()
 
virtual ~SQLQueryHolder ()
 
bool SetQuery (size_t index, const char *sql)
 
template<typename Format , typename... Args>
bool SetPQuery (size_t index, Format &&sql, Args &&...args)
 
bool SetPreparedQuery (size_t index, PreparedStatement *stmt)
 
void SetSize (size_t size)
 
QueryResult GetResult (size_t index)
 
PreparedQueryResult GetPreparedResult (size_t index)
 
void SetResult (size_t index, ResultSet *result)
 
void SetPreparedResult (size_t index, PreparedResultSet *result)
 

Member Enumeration Documentation

anonymous enum
Enumerator
GLOBAL_ACCOUNT_TOYS 
BATTLE_PETS 
BATTLE_PET_SLOTS 
GLOBAL_ACCOUNT_HEIRLOOMS 
GLOBAL_REALM_CHARACTER_COUNTS 
MAX_QUERIES 
1149  {
1150  GLOBAL_ACCOUNT_TOYS = 0,
1151  BATTLE_PETS,
1155 
1156  MAX_QUERIES
1157  };
Definition: WorldSession.cpp:1152
Definition: WorldSession.cpp:1153
Definition: WorldSession.cpp:1156
Definition: WorldSession.cpp:1151
Definition: WorldSession.cpp:1150

Constructor & Destructor Documentation

AccountInfoQueryHolder::AccountInfoQueryHolder ( )
inline
1159 { SetSize(MAX_QUERIES); }
Definition: WorldSession.cpp:1156
void SetSize(size_t size)
Definition: QueryHolder.cpp:140

+ Here is the call graph for this function:

Member Function Documentation

bool AccountInfoQueryHolder::Initialize ( uint32  accountId,
uint32  battlenetAccountId 
)
inline
1162  {
1163  bool ok = true;
1164 
1166  stmt->setUInt32(0, battlenetAccountId);
1167  ok = SetPreparedQuery(GLOBAL_ACCOUNT_TOYS, stmt) && ok;
1168 
1170  stmt->setUInt32(0, battlenetAccountId);
1171  ok = SetPreparedQuery(BATTLE_PETS, stmt) && ok;
1172 
1174  stmt->setUInt32(0, battlenetAccountId);
1175  ok = SetPreparedQuery(BATTLE_PET_SLOTS, stmt) && ok;
1176 
1178  stmt->setUInt32(0, battlenetAccountId);
1179  ok = SetPreparedQuery(GLOBAL_ACCOUNT_HEIRLOOMS, stmt) && ok;
1180 
1182  stmt->setUInt32(0, accountId);
1184 
1185  return ok;
1186  }
Definition: WorldSession.cpp:1152
Definition: WorldSession.cpp:1153
Definition: PreparedStatement.h:74
Definition: LoginDatabase.h:142
LoginDatabaseWorkerPool LoginDatabase
Accessor to the realm/login database.
Definition: DatabaseEnv.cpp:22
Definition: LoginDatabase.h:116
bool SetPreparedQuery(size_t index, PreparedStatement *stmt)
Definition: QueryHolder.cpp:43
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
Definition: LoginDatabase.h:138
Definition: WorldSession.cpp:1151
Definition: LoginDatabase.h:135
Definition: LoginDatabase.h:146
Definition: WorldSession.cpp:1150

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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