MySQL 8.4.2
Source Code Documentation
|
#include <foreign_key_impl.h>
Public Member Functions | |
Foreign_key_impl () | |
Foreign_key_impl (Table_impl *table) | |
Foreign_key_impl (const Foreign_key_impl &src, Table_impl *parent) | |
~Foreign_key_impl () override=default | |
const Object_table & | object_table () const override |
bool | validate () const override |
bool | store (Open_dictionary_tables_ctx *otx) override |
Store the DD object into DD table. More... | |
bool | restore_children (Open_dictionary_tables_ctx *otx) override |
bool | store_children (Open_dictionary_tables_ctx *otx) override |
bool | drop_children (Open_dictionary_tables_ctx *otx) const override |
bool | restore_attributes (const Raw_record &r) override |
bool | store_attributes (Raw_record *r) override |
void | serialize (Sdi_wcontext *wctx, Sdi_writer *w) const override |
Converts *this into json. More... | |
bool | deserialize (Sdi_rcontext *rctx, const RJ_Value &val) override |
Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided. More... | |
void | debug_print (String_type &outb) const override |
void | set_ordinal_position (uint) |
virtual uint | ordinal_position () const |
const Table & | table () const override |
Table & | table () override |
const Table_impl & | table_impl () const |
Table_impl & | table_impl () |
const String_type & | unique_constraint_name () const override |
void | set_unique_constraint_name (const String_type &name) override |
enum_match_option | match_option () const override |
void | set_match_option (enum_match_option match_option) override |
enum_rule | update_rule () const override |
void | set_update_rule (enum_rule update_rule) override |
enum_rule | delete_rule () const override |
void | set_delete_rule (enum_rule delete_rule) override |
const String_type & | referenced_table_catalog_name () const override |
void | set_referenced_table_catalog_name (const String_type &name) override |
const String_type & | referenced_table_schema_name () const override |
void | set_referenced_table_schema_name (const String_type &name) override |
const String_type & | referenced_table_name () const override |
void | set_referenced_table_name (const String_type &name) override |
Foreign_key_element * | add_element () override |
const Foreign_key_elements & | elements () const override |
Foreign_key_elements * | elements () override |
Entity_object_impl * | impl () override |
const Entity_object_impl * | impl () 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_type & | name () const override |
void | set_name (const String_type &name) override |
Foreign_key_impl * | clone (Table_impl *parent) const |
Public Member Functions inherited from dd::Entity_object_impl | |
Entity_object_impl () | |
void | set_id (Object_id id) |
Object_key * | create_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 |
bool | drop (Open_dictionary_tables_ctx *otx) const |
Drop the DD object from DD table. More... | |
Public Member Functions inherited from dd::Foreign_key | |
~Foreign_key () override=default | |
Static Public Member Functions | |
static void | register_tables (Open_dictionary_tables_ctx *otx) |
static Foreign_key_impl * | restore_item (Table_impl *table) |
static Foreign_key_impl * | clone (const Foreign_key_impl &other, Table_impl *table) |
dd::Foreign_key_impl::Foreign_key_impl | ( | ) |
dd::Foreign_key_impl::Foreign_key_impl | ( | Table_impl * | table | ) |
dd::Foreign_key_impl::Foreign_key_impl | ( | const Foreign_key_impl & | src, |
Table_impl * | parent | ||
) |
|
overridedefault |
|
overridevirtual |
Implements dd::Foreign_key.
|
inlinestatic |
|
inline |
|
overridevirtual |
Implements dd::Weak_object.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
overridevirtual |
Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided.
Cross-references encountered within this object are tracked in sdictx, so that they can be updated when the entire object graph has been established.
rctx | stores book-keeping information for the deserialization process |
val | subobject of rapidjson DOM containing json representation of this object |
false | success |
true | failure |
Implements dd::Foreign_key.
|
overridevirtual |
Reimplemented from dd::Weak_object_impl_< use_pfs >.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
The unique dictionary object id.
Reimplemented from dd::Entity_object_impl.
|
inlineoverridevirtual |
Reimplemented from dd::Entity_object_impl.
|
inlineoverridevirtual |
Reimplemented from dd::Entity_object_impl.
|
inlineoverridevirtual |
Is dictionary object persistent in dictionary tables ?
Reimplemented from dd::Entity_object_impl.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Reimplemented from dd::Entity_object_impl.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
inlinevirtual |
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
static |
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
overridevirtual |
Reimplemented from dd::Weak_object_impl_< use_pfs >.
|
inlinestatic |
|
overridevirtual |
Converts *this into json.
Converts all member variables that are to be included in the sdi into json by transforming them appropriately and passing them to the rapidjson writer provided.
wctx | opaque context for data needed by serialization |
w | rapidjson writer which will perform conversion to json |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Reimplemented from dd::Entity_object_impl.
|
inline |
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
overridevirtual |
Store the DD object into DD table.
otx | - DD transaction in use. |
Reimplemented from dd::Weak_object_impl_< use_pfs >.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
overridevirtual |
Reimplemented from dd::Weak_object_impl_< use_pfs >.
|
overridevirtual |
Implements dd::Foreign_key.
|
overridevirtual |
Implements dd::Foreign_key.
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
inlineoverridevirtual |
Implements dd::Foreign_key.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |