MySQL 8.0.39
Source Code Documentation
dd::Collation_impl Class Reference

#include <collation_impl.h>

Inheritance diagram for dd::Collation_impl:
[legend]

Public Member Functions

 Collation_impl ()
 
const Object_tableobject_table () const override
 
bool validate () const override
 
bool restore_attributes (const Raw_record &r) override
 
bool store_attributes (Raw_record *r) override
 
Object_id charset_id () const override
 
void set_charset_id (Object_id charset_id) override
 
bool is_compiled () const override
 
virtual void set_is_compiled (bool is_compiled)
 
uint sort_length () const override
 
virtual void set_sort_length (uint sort_length)
 
virtual void set_pad_attribute (enum_pad_attribute pad_attribute)
 
Entity_object_implimpl () override
 
const Entity_object_implimpl () const override
 
Object_id id () const override
 The unique dictionary object id. More...
 
bool is_persistent () const override
 Is dictionary object persistent in dictionary tables ? More...
 
const String_typename () const override
 
void set_name (const String_type &name) override
 
void debug_print (String_type &outb) const override
 
- Public Member Functions inherited from dd::Entity_object_impl
 Entity_object_impl ()
 
Object_id id () const override
 The unique dictionary object id. More...
 
void set_id (Object_id id)
 
bool is_persistent () const override
 Is dictionary object persistent in dictionary tables ? More...
 
const String_typename () const override
 
void set_name (const String_type &name) override
 
Object_keycreate_primary_key () const override
 
bool has_new_primary_key () const override
 Indicates that object is guaranteed to have primary key value which doesn't exist in database (e.g. More...
 
Entity_object_implimpl () override
 
const Entity_object_implimpl () const override
 
- Public Member Functions inherited from dd::Weak_object
 Weak_object ()=default
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()=default
 
- Public Member Functions inherited from dd::Weak_object_impl_< use_pfs >
 Weak_object_impl_ ()=default
 
 ~Weak_object_impl_ () override=default
 
void * operator new (size_t size, const std::nothrow_t &nt) noexcept
 
void operator delete (void *ptr, const std::nothrow_t &nt) noexcept
 
void * operator new (size_t size) noexcept
 
void operator delete (void *ptr) noexcept
 
virtual bool store (Open_dictionary_tables_ctx *otx)
 Store the DD object into DD table. More...
 
bool drop (Open_dictionary_tables_ctx *otx) const
 Drop the DD object from DD table. More...
 
virtual bool restore_children (Open_dictionary_tables_ctx *)
 
virtual bool store_children (Open_dictionary_tables_ctx *)
 
virtual bool drop_children (Open_dictionary_tables_ctx *) const
 
- Public Member Functions inherited from dd::Collation
virtual bool update_id_key (Id_key *key) const
 
virtual bool update_name_key (Name_key *key) const
 
virtual bool update_aux_key (Aux_key *) const
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
- Static Public Member Functions inherited from dd::Collation
static bool update_id_key (Id_key *key, Object_id id)
 
static bool update_name_key (Name_key *key, const String_type &name)
 

Private Member Functions

Collationclone () const override
 Allocate a new object and invoke the copy constructor. More...
 
Collationclone_dropped_object_placeholder () const override
 Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry (i.e. More...
 

Private Attributes

bool m_is_compiled
 
uint m_sort_length
 
enum_pad_attribute m_pad_attribute
 
Object_id m_charset_id
 

Additional Inherited Members

- Public Types inherited from dd::Collation
enum  enum_pad_attribute { PA_UNDEFINED , PA_PAD_SPACE , PA_NO_PAD }
 
typedef Collation_impl Impl
 
typedef Collation Cache_partition
 
typedef tables::Collations DD_table
 
typedef Primary_id_key Id_key
 
typedef Global_name_key Name_key
 
typedef Void_key Aux_key
 
- Protected Member Functions inherited from dd::Entity_object_impl
void set_primary_key_value (const Raw_new_record &r) override
 
void fix_has_new_primary_key () override
 
void restore_id (const Raw_record &r, int field_idx)
 
void restore_name (const Raw_record &r, int field_idx)
 
bool store_id (Raw_record *r, int field_idx)
 
bool store_name (Raw_record *r, int field_idx)
 
bool store_name (Raw_record *r, int field_idx, bool is_null)
 
void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const
 
bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val)
 
 Entity_object_impl (const Entity_object_impl &src)
 
- Protected Member Functions inherited from dd::Weak_object_impl_< use_pfs >
bool check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const
 

Constructor & Destructor Documentation

◆ Collation_impl()

dd::Collation_impl::Collation_impl ( )
inline

Member Function Documentation

◆ charset_id()

Object_id dd::Collation_impl::charset_id ( ) const
inlineoverridevirtual

Implements dd::Collation.

◆ clone()

Collation * dd::Collation_impl::clone ( ) const
inlineoverrideprivatevirtual

Allocate a new object and invoke the copy constructor.

Returns
pointer to dynamically allocated copy

Implements dd::Collation.

◆ clone_dropped_object_placeholder()

Collation * dd::Collation_impl::clone_dropped_object_placeholder ( ) const
inlineoverrideprivatevirtual

Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry (i.e.

it has the same keys as original).

Implements dd::Collation.

◆ debug_print()

void dd::Collation_impl::debug_print ( String_type outb) const
inlineoverridevirtual

Implements dd::Weak_object.

◆ id()

Object_id dd::Collation_impl::id ( ) const
inlineoverridevirtual

The unique dictionary object id.

Implements dd::Entity_object.

◆ impl() [1/2]

const Entity_object_impl * dd::Collation_impl::impl ( ) const
inlineoverridevirtual

Implements dd::Entity_object.

◆ impl() [2/2]

Entity_object_impl * dd::Collation_impl::impl ( )
inlineoverridevirtual

Implements dd::Entity_object.

◆ is_compiled()

bool dd::Collation_impl::is_compiled ( ) const
inlineoverridevirtual

Implements dd::Collation.

◆ is_persistent()

bool dd::Collation_impl::is_persistent ( ) const
inlineoverridevirtual

Is dictionary object persistent in dictionary tables ?

Implements dd::Entity_object.

◆ name()

const String_type & dd::Collation_impl::name ( ) const
inlineoverridevirtual

Implements dd::Entity_object.

◆ object_table()

const Object_table & dd::Collation_impl::object_table ( ) const
overridevirtual

◆ register_tables()

void dd::Collation_impl::register_tables ( Open_dictionary_tables_ctx otx)
static

◆ restore_attributes()

bool dd::Collation_impl::restore_attributes ( const Raw_record r)
overridevirtual

◆ set_charset_id()

void dd::Collation_impl::set_charset_id ( Object_id  charset_id)
inlineoverridevirtual

Implements dd::Collation.

◆ set_is_compiled()

virtual void dd::Collation_impl::set_is_compiled ( bool  is_compiled)
inlinevirtual

◆ set_name()

void dd::Collation_impl::set_name ( const String_type name)
inlineoverridevirtual

Implements dd::Entity_object.

◆ set_pad_attribute()

virtual void dd::Collation_impl::set_pad_attribute ( enum_pad_attribute  pad_attribute)
inlinevirtual

◆ set_sort_length()

virtual void dd::Collation_impl::set_sort_length ( uint  sort_length)
inlinevirtual

◆ sort_length()

uint dd::Collation_impl::sort_length ( ) const
inlineoverridevirtual

Implements dd::Collation.

◆ store_attributes()

bool dd::Collation_impl::store_attributes ( Raw_record r)
overridevirtual

◆ validate()

bool dd::Collation_impl::validate ( ) const
overridevirtual

Member Data Documentation

◆ m_charset_id

Object_id dd::Collation_impl::m_charset_id
private

◆ m_is_compiled

bool dd::Collation_impl::m_is_compiled
private

◆ m_pad_attribute

enum_pad_attribute dd::Collation_impl::m_pad_attribute
private

◆ m_sort_length

uint dd::Collation_impl::m_sort_length
private

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