![]() |
TrinityCore
|
Interface class for common access. More...
#include <DB2Store.h>
Inheritance diagram for DB2StorageBase:Public Member Functions | |
| DB2StorageBase (char const *fileName, DB2LoadInfo const *loadInfo) | |
| DB2StorageBase (DB2StorageBase const &)=delete | |
| DB2StorageBase (DB2StorageBase &&)=delete | |
| DB2StorageBase & | operator= (DB2StorageBase const &)=delete |
| DB2StorageBase & | operator= (DB2StorageBase &&)=delete |
| ~DB2StorageBase () | |
| uint32 | GetTableHash () const |
| uint32 | GetLayoutHash () const |
| bool | HasRecord (uint32 id) const |
| void | WriteRecord (uint32 id, LocaleConstant locale, ByteBuffer &buffer) const |
| void | EraseRecord (uint32 id) |
| std::string const & | GetFileName () const |
| uint32 | GetFieldCount () const |
| DB2LoadInfo const * | GetLoadInfo () const |
| uint32 | GetNumRows () const |
| void | Load (std::string const &path, LocaleConstant locale) |
| void | LoadStringsFrom (std::string const &path, LocaleConstant locale) |
| void | LoadFromDB () |
| void | LoadStringsFromDB (LocaleConstant locale) |
Protected Attributes | |
| uint32 | _tableHash |
| uint32 | _layoutHash |
| std::string | _fileName |
| uint32 | _fieldCount |
| DB2LoadInfo const * | _loadInfo |
| char * | _dataTable |
| char * | _dataTableEx [2] |
| std::vector< char * > | _stringPool |
| char ** | _indexTable |
| uint32 | _indexTableSize |
| uint32 | _minId |
Friends | |
| class | UnitTestDataLoader |
Interface class for common access.
Definition at line 30 of file DB2Store.h.
| DB2StorageBase::DB2StorageBase | ( | char const * | fileName, |
| DB2LoadInfo const * | loadInfo | ||
| ) |
Definition at line 25 of file DB2Store.cpp.
|
delete |
|
delete |
| DB2StorageBase::~DB2StorageBase | ( | ) |
Definition at line 31 of file DB2Store.cpp.
|
inline |
Definition at line 45 of file DB2Store.h.
|
inline |
Definition at line 48 of file DB2Store.h.
|
inline |
Definition at line 47 of file DB2Store.h.
Referenced by LoadDB2().
|
inline |
Definition at line 41 of file DB2Store.h.
|
inline |
Definition at line 49 of file DB2Store.h.
Referenced by LoadDB2().
|
inline |
Definition at line 50 of file DB2Store.h.
|
inline |
Definition at line 40 of file DB2Store.h.
Referenced by LoadDB2().
|
inline |
Definition at line 43 of file DB2Store.h.
Referenced by WorldSession::HandleDBQueryBulk(), and WorldSession::HandleHotfixRequest().
| void DB2StorageBase::Load | ( | std::string const & | path, |
| LocaleConstant | locale | ||
| ) |
Definition at line 88 of file DB2Store.cpp.
References _dataTable, _fieldCount, _fileName, _indexTable, _indexTableSize, _layoutHash, _loadInfo, _minId, _stringPool, _tableHash, DB2FileLoader::AutoProduceData(), DB2FileLoader::AutoProduceRecordCopies(), DB2FileLoader::AutoProduceStrings(), DB2FileLoader::GetCols(), DB2FileLoader::GetLayoutHash(), DB2FileLoader::GetMinId(), DB2FileLoader::GetTableHash(), and DB2FileLoader::Load().
Referenced by LoadDB2().
| void DB2StorageBase::LoadFromDB | ( | ) |
Definition at line 127 of file DB2Store.cpp.
References _dataTableEx, _fileName, _indexTable, _indexTableSize, _loadInfo, _minId, _stringPool, and DB2DatabaseLoader::Load().
Referenced by LoadDB2().
| void DB2StorageBase::LoadStringsFrom | ( | std::string const & | path, |
| LocaleConstant | locale | ||
| ) |
Definition at line 110 of file DB2Store.cpp.
References _fileName, _indexTable, _indexTableSize, _loadInfo, _stringPool, DB2FileLoader::AutoProduceStrings(), DB2FileLoadInfo::GetStringFieldCount(), DB2FileLoader::Load(), and Trinity::StringFormat().
Referenced by LoadDB2().
| void DB2StorageBase::LoadStringsFromDB | ( | LocaleConstant | locale | ) |
Definition at line 136 of file DB2Store.cpp.
References _fileName, _indexTable, _indexTableSize, _loadInfo, _stringPool, DB2FileLoadInfo::GetStringFieldCount(), and DB2DatabaseLoader::LoadStrings().
Referenced by LoadDB2().
|
delete |
|
delete |
| void DB2StorageBase::WriteRecord | ( | uint32 | id, |
| LocaleConstant | locale, | ||
| ByteBuffer & | buffer | ||
| ) | const |
Definition at line 41 of file DB2Store.cpp.
References _indexTable, _indexTableSize, _loadInfo, DB2MetaField::ArraySize, ASSERT, ASSERT_NOTNULL, DB2Meta::FieldCount, DB2Meta::Fields, FT_BYTE, FT_FLOAT, FT_INT, FT_LONG, FT_SHORT, FT_STRING, FT_STRING_NOT_LOCALIZED, DB2Meta::HasIndexFieldInData(), DB2FileLoadInfo::Meta, and DB2MetaField::Type.
Referenced by WorldSession::HandleDBQueryBulk(), and WorldSession::HandleHotfixRequest().
|
friend |
Definition at line 70 of file DB2Store.h.
|
protected |
Definition at line 63 of file DB2Store.h.
Referenced by Load().
|
protected |
Definition at line 64 of file DB2Store.h.
Referenced by LoadFromDB().
|
protected |
Definition at line 61 of file DB2Store.h.
Referenced by Load().
|
protected |
Definition at line 60 of file DB2Store.h.
Referenced by Load(), LoadFromDB(), LoadStringsFrom(), and LoadStringsFromDB().
|
protected |
Definition at line 66 of file DB2Store.h.
Referenced by Load(), LoadFromDB(), LoadStringsFrom(), LoadStringsFromDB(), and WriteRecord().
|
protected |
Definition at line 67 of file DB2Store.h.
Referenced by Load(), LoadFromDB(), LoadStringsFrom(), LoadStringsFromDB(), and WriteRecord().
|
protected |
Definition at line 59 of file DB2Store.h.
Referenced by Load().
|
protected |
Definition at line 62 of file DB2Store.h.
Referenced by Load(), LoadFromDB(), LoadStringsFrom(), LoadStringsFromDB(), and WriteRecord().
|
protected |
Definition at line 68 of file DB2Store.h.
Referenced by Load(), and LoadFromDB().
|
protected |
Definition at line 65 of file DB2Store.h.
Referenced by Load(), LoadFromDB(), LoadStringsFrom(), and LoadStringsFromDB().
|
protected |
Definition at line 58 of file DB2Store.h.
Referenced by Load().