TrinityCore
PreparedStatementBase Class Reference

#include <PreparedStatement.h>

+ Inheritance diagram for PreparedStatementBase:

Public Member Functions

 PreparedStatementBase (uint32 index, uint8 capacity)
 
virtual ~PreparedStatementBase ()
 
void setNull (const uint8 index)
 
void setBool (const uint8 index, const bool value)
 
void setUInt8 (const uint8 index, const uint8 value)
 
void setUInt16 (const uint8 index, const uint16 value)
 
void setUInt32 (const uint8 index, const uint32 value)
 
void setUInt64 (const uint8 index, const uint64 value)
 
void setInt8 (const uint8 index, const int8 value)
 
void setInt16 (const uint8 index, const int16 value)
 
void setInt32 (const uint8 index, const int32 value)
 
void setInt64 (const uint8 index, const int64 value)
 
void setFloat (const uint8 index, const float value)
 
void setDouble (const uint8 index, const double value)
 
void setString (const uint8 index, const std::string &value)
 
void setStringView (const uint8 index, const std::string_view value)
 
void setBinary (const uint8 index, const std::vector< uint8 > &value)
 
template<size_t Size>
void setBinary (const uint8 index, std::array< uint8, Size > const &value)
 
uint32 GetIndex () const
 
std::vector< PreparedStatementData > const & GetParameters () const
 

Protected Member Functions

 PreparedStatementBase (PreparedStatementBase const &right)=delete
 
PreparedStatementBaseoperator= (PreparedStatementBase const &right)=delete
 

Protected Attributes

uint32 m_index
 
std::vector< PreparedStatementDatastatement_data
 

Friends

class PreparedStatementTask
 

Detailed Description

Definition at line 61 of file PreparedStatement.h.

Constructor & Destructor Documentation

◆ PreparedStatementBase() [1/2]

PreparedStatementBase::PreparedStatementBase ( uint32  index,
uint8  capacity 
)
explicit

Definition at line 24 of file PreparedStatement.cpp.

◆ ~PreparedStatementBase()

PreparedStatementBase::~PreparedStatementBase ( )
virtual

Definition at line 27 of file PreparedStatement.cpp.

◆ PreparedStatementBase() [2/2]

PreparedStatementBase::PreparedStatementBase ( PreparedStatementBase const &  right)
protecteddelete

Member Function Documentation

◆ GetIndex()

uint32 PreparedStatementBase::GetIndex ( ) const
inline

Definition at line 91 of file PreparedStatement.h.

+ Here is the caller graph for this function:

◆ GetParameters()

std::vector< PreparedStatementData > const & PreparedStatementBase::GetParameters ( ) const
inline

Definition at line 92 of file PreparedStatement.h.

+ Here is the caller graph for this function:

◆ operator=()

PreparedStatementBase & PreparedStatementBase::operator= ( PreparedStatementBase const &  right)
protecteddelete

◆ setBinary() [1/2]

void PreparedStatementBase::setBinary ( const uint8  index,
const std::vector< uint8 > &  value 
)

Definition at line 108 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setBinary() [2/2]

template<size_t Size>
void PreparedStatementBase::setBinary ( const uint8  index,
std::array< uint8, Size > const &  value 
)
inline

Definition at line 85 of file PreparedStatement.h.

◆ setBool()

void PreparedStatementBase::setBool ( const uint8  index,
const bool  value 
)

Definition at line 30 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setDouble()

void PreparedStatementBase::setDouble ( const uint8  index,
const double  value 
)

Definition at line 90 of file PreparedStatement.cpp.

◆ setFloat()

void PreparedStatementBase::setFloat ( const uint8  index,
const float  value 
)

Definition at line 84 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setInt16()

void PreparedStatementBase::setInt16 ( const uint8  index,
const int16  value 
)

Definition at line 66 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setInt32()

void PreparedStatementBase::setInt32 ( const uint8  index,
const int32  value 
)

Definition at line 72 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setInt64()

void PreparedStatementBase::setInt64 ( const uint8  index,
const int64  value 
)

Definition at line 78 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setInt8()

void PreparedStatementBase::setInt8 ( const uint8  index,
const int8  value 
)

Definition at line 60 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setNull()

void PreparedStatementBase::setNull ( const uint8  index)

Definition at line 114 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setString()

void PreparedStatementBase::setString ( const uint8  index,
const std::string &  value 
)

Definition at line 96 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setStringView()

void PreparedStatementBase::setStringView ( const uint8  index,
const std::string_view  value 
)

Definition at line 102 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setUInt16()

void PreparedStatementBase::setUInt16 ( const uint8  index,
const uint16  value 
)

Definition at line 42 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

◆ setUInt32()

void PreparedStatementBase::setUInt32 ( const uint8  index,
const uint32  value 
)

Definition at line 48 of file PreparedStatement.cpp.

◆ setUInt64()

void PreparedStatementBase::setUInt64 ( const uint8  index,
const uint64  value 
)

Definition at line 54 of file PreparedStatement.cpp.

◆ setUInt8()

void PreparedStatementBase::setUInt8 ( const uint8  index,
const uint8  value 
)

Definition at line 36 of file PreparedStatement.cpp.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ PreparedStatementTask

friend class PreparedStatementTask
friend

Definition at line 63 of file PreparedStatement.h.

Member Data Documentation

◆ m_index

uint32 PreparedStatementBase::m_index
protected

Definition at line 95 of file PreparedStatement.h.

◆ statement_data

std::vector<PreparedStatementData> PreparedStatementBase::statement_data
protected

Definition at line 98 of file PreparedStatement.h.


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