MySQL  8.0.19
Source Code Documentation
dd::tables::Collations Class Reference

#include <collations.h>

Inheritance diagram for dd::tables::Collations:
dd::Entity_object_table_impl dd::Object_table_impl dd::Entity_object_table dd::Object_table dd::Object_table

Public Types

enum  enum_fields {
  FIELD_ID = static_cast<uint>(Common_field::ID), FIELD_NAME, FIELD_CHARACTER_SET_ID, FIELD_IS_COMPILED,
  FIELD_SORT_LENGTH, FIELD_PAD_ATTRIBUTE, FIELD_OPTIONS, NUMBER_OF_FIELDS
}
 
enum  enum_indexes { INDEX_PK_ID = static_cast<uint>(Common_index::PK_ID), INDEX_UK_NAME = static_cast<uint>(Common_index::UK_NAME), INDEX_K_CHARACTER_SET_ID }
 
enum  enum_foreign_keys { FK_CHARACTER_SET_ID }
 
- Public Types inherited from dd::Object_table_impl
enum  Common_option {
  Common_option::ENGINE, Common_option::CHARSET, Common_option::COLLATION, Common_option::ROW_FORMAT,
  Common_option::STATS_PERSISTENT, Common_option::TABLESPACE
}
 
enum  Common_index { Common_index::PK_ID, Common_index::UK_NAME }
 
enum  Common_field { Common_field::ID }
 

Public Member Functions

 Collations ()
 
virtual bool populate (THD *thd) const
 Execute low level code for populating the table. More...
 
virtual Collationcreate_entity_object (const Raw_record &) const
 
- Public Member Functions inherited from dd::Entity_object_table_impl
virtual ~Entity_object_table_impl ()
 
virtual bool restore_object_from_record (Open_dictionary_tables_ctx *otx, const Raw_record &record, Entity_object **o) const
 Prepare a DD object by given raw record. More...
 
virtual const String_typename () const
 Get the table name used by the target definition for the dictionary table. More...
 
virtual Object_table_definition_impltarget_table_definition ()
 Get the target definition for the dictionary table. More...
 
virtual const Object_table_definition_impltarget_table_definition () const
 
virtual void set_abandoned (uint last_dd_version) const
 Mark the target definition for the dictionary table as abandoned. More...
 
virtual bool is_abandoned () const
 Check if the dictionary table is abandoned. More...
 
virtual const Object_table_definition_implactual_table_definition () const
 Get the actual definition for the dictionary table. More...
 
virtual bool set_actual_table_definition (const Properties &table_def_properties) const
 Set the actual definition for the dictionary table. More...
 
virtual int field_number (int target_field_number, const String_type &field_label) const
 
virtual int field_number (const String_type &field_label) const
 Get the field ordinal position in the object table. More...
 
virtual bool is_hidden () const
 Check if the table should be hidden. More...
 
virtual void set_hidden (bool hidden)
 Mark the dictionary table as hidden or visible. More...
 
- Public Member Functions inherited from dd::Object_table_impl
 Object_table_impl (const String_type &schema_name, const String_type &table_name, const String_type &ddl_statement)
 
 Object_table_impl ()
 
virtual ~Object_table_impl ()
 
- Public Member Functions inherited from dd::Object_table
virtual ~Object_table ()
 
- Public Member Functions inherited from dd::Entity_object_table
virtual ~Entity_object_table ()
 

Static Public Member Functions

static const Collationsinstance ()
 
static const CHARSET_INFOname_collation ()
 
static bool update_object_key (Global_name_key *key, const String_type &collation_name)
 
- Static Public Member Functions inherited from dd::Object_table
static Object_tablecreate_object_table ()
 Allocate a new Object_table instance on the heap. More...
 

Additional Inherited Members

- Protected Attributes inherited from dd::Object_table_impl
uint m_last_dd_version
 
Object_table_definition_impl m_target_def
 
bool m_actual_present
 
Object_table_definition_impl m_actual_def
 
bool m_hidden
 

Member Enumeration Documentation

◆ enum_fields

Enumerator
FIELD_ID 
FIELD_NAME 
FIELD_CHARACTER_SET_ID 
FIELD_IS_COMPILED 
FIELD_SORT_LENGTH 
FIELD_PAD_ATTRIBUTE 
FIELD_OPTIONS 
NUMBER_OF_FIELDS 

◆ enum_foreign_keys

Enumerator
FK_CHARACTER_SET_ID 

◆ enum_indexes

Enumerator
INDEX_PK_ID 
INDEX_UK_NAME 
INDEX_K_CHARACTER_SET_ID 

Constructor & Destructor Documentation

◆ Collations()

dd::tables::Collations::Collations ( )

Member Function Documentation

◆ create_entity_object()

Collation * dd::tables::Collations::create_entity_object ( const Raw_record ) const
virtual

◆ instance()

const Collations & dd::tables::Collations::instance ( )
static

◆ name_collation()

const CHARSET_INFO * dd::tables::Collations::name_collation ( )
static

◆ populate()

bool dd::tables::Collations::populate ( THD thd) const
virtual

Execute low level code for populating the table.

Returns
Boolean operation outcome, false if success.

Reimplemented from dd::Entity_object_table_impl.

◆ update_object_key()

bool dd::tables::Collations::update_object_key ( Global_name_key key,
const String_type collation_name 
)
static

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