MySQL 8.4.3
Source Code Documentation
dd::Schema_impl Class Reference

#include <schema_impl.h>

Inheritance diagram for dd::Schema_impl:
[legend]

Public Member Functions

 Schema_impl ()
 
const Object_tableobject_table () const override
 
bool validate () const override
 
bool store_attributes (Raw_record *r) override
 
bool restore_attributes (const Raw_record &r) override
 
Object_id default_collation_id () const override
 
void set_default_collation_id (Object_id default_collation_id) override
 
bool default_encryption () const override
 
void set_default_encryption (bool default_encryption) override
 
bool read_only () const override
 
void set_read_only (bool state) override
 
ulonglong created (bool convert_time) const override
 
void set_created (ulonglong created) override
 
ulonglong last_altered (bool convert_time) const override
 
void set_last_altered (ulonglong last_altered) override
 
const Propertiesse_private_data () const override
 
Propertiesse_private_data () override
 
bool set_se_private_data (const String_type &se_private_data_raw) override
 
bool set_se_private_data (const Properties &se_private_data) override
 
const Propertiesoptions () const override
 
Propertiesoptions () override
 
bool set_options (const Properties &options) override
 
bool set_options (const String_type &options_raw) override
 
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
 
Eventcreate_event (THD *thd) const override
 
Functioncreate_function (THD *thd) const override
 
Procedurecreate_procedure (THD *thd) const override
 
Tablecreate_table (THD *thd) const override
 
Viewcreate_view (THD *thd) const override
 
Viewcreate_system_view (THD *thd) const override
 
void debug_print (String_type &outb) const override
 
- Public Member Functions inherited from dd::Entity_object_impl
 Entity_object_impl ()
 
void set_id (Object_id id)
 
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...
 
- 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::Schema
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::Schema
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

Schemaclone () const override
 Allocate a new object and invoke the copy constructor. More...
 
Schemaclone_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. More...
 

Private Attributes

ulonglong m_created = 0
 
ulonglong m_last_altered = 0
 
enum_encryption_type m_default_encryption = enum_encryption_type::ET_NO
 
Properties_impl m_se_private_data
 
Properties_impl m_options
 
Object_id m_default_collation_id
 

Additional Inherited Members

- Public Types inherited from dd::Schema
typedef Schema_impl Impl
 
typedef Schema Cache_partition
 
typedef tables::Schemata DD_table
 
typedef Primary_id_key Id_key
 
typedef Item_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

◆ Schema_impl()

dd::Schema_impl::Schema_impl ( )

Member Function Documentation

◆ clone()

Schema * dd::Schema_impl::clone ( ) const
inlineoverrideprivatevirtual

Allocate a new object and invoke the copy constructor.

Returns
pointer to dynamically allocated copy

Implements dd::Schema.

◆ clone_dropped_object_placeholder()

Schema * dd::Schema_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.

Such object has the same keys as the original but has no other info and as result occupies less memory.

Implements dd::Schema.

◆ create_event()

Event * dd::Schema_impl::create_event ( THD thd) const
overridevirtual

Implements dd::Schema.

◆ create_function()

Function * dd::Schema_impl::create_function ( THD thd) const
overridevirtual

Implements dd::Schema.

◆ create_procedure()

Procedure * dd::Schema_impl::create_procedure ( THD thd) const
overridevirtual

Implements dd::Schema.

◆ create_system_view()

View * dd::Schema_impl::create_system_view ( THD thd) const
overridevirtual

Implements dd::Schema.

◆ create_table()

Table * dd::Schema_impl::create_table ( THD thd) const
overridevirtual

Implements dd::Schema.

◆ create_view()

View * dd::Schema_impl::create_view ( THD thd) const
overridevirtual

Implements dd::Schema.

◆ created()

ulonglong dd::Schema_impl::created ( bool  convert_time) const
inlineoverridevirtual

Implements dd::Schema.

◆ debug_print()

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

Implements dd::Weak_object.

◆ default_collation_id()

Object_id dd::Schema_impl::default_collation_id ( ) const
inlineoverridevirtual

Implements dd::Schema.

◆ default_encryption()

bool dd::Schema_impl::default_encryption ( ) const
inlineoverridevirtual

Implements dd::Schema.

◆ id()

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

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

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

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

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

Reimplemented from dd::Entity_object_impl.

◆ is_persistent()

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

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ last_altered()

ulonglong dd::Schema_impl::last_altered ( bool  convert_time) const
inlineoverridevirtual

Implements dd::Schema.

◆ name()

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

Reimplemented from dd::Entity_object_impl.

◆ object_table()

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

◆ options() [1/2]

const Properties & dd::Schema_impl::options ( ) const
inlineoverridevirtual

Implements dd::Schema.

◆ options() [2/2]

Properties & dd::Schema_impl::options ( )
inlineoverridevirtual

Implements dd::Schema.

◆ read_only()

bool dd::Schema_impl::read_only ( ) const
overridevirtual

Implements dd::Schema.

◆ register_tables()

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

◆ restore_attributes()

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

◆ se_private_data() [1/2]

const Properties & dd::Schema_impl::se_private_data ( ) const
inlineoverridevirtual

Implements dd::Schema.

◆ se_private_data() [2/2]

Properties & dd::Schema_impl::se_private_data ( )
inlineoverridevirtual

Implements dd::Schema.

◆ set_created()

void dd::Schema_impl::set_created ( ulonglong  created)
inlineoverridevirtual

Implements dd::Schema.

◆ set_default_collation_id()

void dd::Schema_impl::set_default_collation_id ( Object_id  default_collation_id)
inlineoverridevirtual

Implements dd::Schema.

◆ set_default_encryption()

void dd::Schema_impl::set_default_encryption ( bool  default_encryption)
inlineoverridevirtual

Implements dd::Schema.

◆ set_last_altered()

void dd::Schema_impl::set_last_altered ( ulonglong  last_altered)
inlineoverridevirtual

Implements dd::Schema.

◆ set_name()

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

Reimplemented from dd::Entity_object_impl.

◆ set_options() [1/2]

bool dd::Schema_impl::set_options ( const Properties options)
inlineoverridevirtual

Implements dd::Schema.

◆ set_options() [2/2]

bool dd::Schema_impl::set_options ( const String_type options_raw)
inlineoverridevirtual

Implements dd::Schema.

◆ set_read_only()

void dd::Schema_impl::set_read_only ( bool  state)
overridevirtual

Implements dd::Schema.

◆ set_se_private_data() [1/2]

bool dd::Schema_impl::set_se_private_data ( const Properties se_private_data)
inlineoverridevirtual

Implements dd::Schema.

◆ set_se_private_data() [2/2]

bool dd::Schema_impl::set_se_private_data ( const String_type se_private_data_raw)
inlineoverridevirtual

Implements dd::Schema.

◆ store_attributes()

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

◆ validate()

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

Member Data Documentation

◆ m_created

ulonglong dd::Schema_impl::m_created = 0
private

◆ m_default_collation_id

Object_id dd::Schema_impl::m_default_collation_id
private

◆ m_default_encryption

enum_encryption_type dd::Schema_impl::m_default_encryption = enum_encryption_type::ET_NO
private

◆ m_last_altered

ulonglong dd::Schema_impl::m_last_altered = 0
private

◆ m_options

Properties_impl dd::Schema_impl::m_options
private

◆ m_se_private_data

Properties_impl dd::Schema_impl::m_se_private_data
private

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