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

Public Types

enum  { GLOBAL_ACCOUNT_DATA = 0, TUTORIALS, MAX_QUERIES }
 

Public Member Functions

 AccountInfoQueryHolderPerRealm ()
 
bool Initialize (uint32 accountId, uint32)
 
- 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_DATA 
TUTORIALS 
MAX_QUERIES 
1120  {
1121  GLOBAL_ACCOUNT_DATA = 0,
1122  TUTORIALS,
1123 
1124  MAX_QUERIES
1125  };
Definition: WorldSession.cpp:1124
Definition: WorldSession.cpp:1122

Constructor & Destructor Documentation

AccountInfoQueryHolderPerRealm::AccountInfoQueryHolderPerRealm ( )
inline
1127 { SetSize(MAX_QUERIES); }
Definition: WorldSession.cpp:1124
void SetSize(size_t size)
Definition: QueryHolder.cpp:140

+ Here is the call graph for this function:

Member Function Documentation

bool AccountInfoQueryHolderPerRealm::Initialize ( uint32  accountId,
uint32   
)
inline
1130  {
1131  bool ok = true;
1132 
1134  stmt->setUInt32(0, accountId);
1135  ok = SetPreparedQuery(GLOBAL_ACCOUNT_DATA, stmt) && ok;
1136 
1138  stmt->setUInt32(0, accountId);
1139  ok = SetPreparedQuery(TUTORIALS, stmt) && ok;
1140 
1141  return ok;
1142  }
Definition: CharacterDatabase.h:228
Definition: PreparedStatement.h:74
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: WorldSession.cpp:1122
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
Definition: CharacterDatabase.h:235

+ 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: