MySQL 8.4.3
Source Code Documentation
|
#include <check_constraint_impl.h>
Public Member Functions | |
Check_constraint_impl () | |
Check_constraint_impl (Table_impl *table) | |
Check_constraint_impl (const Check_constraint_impl &src, Table_impl *parent) | |
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 | store_attributes (Raw_record *r) override |
bool | restore_attributes (const 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 |
enum_constraint_state | constraint_state () const override |
void | set_constraint_state (bool is_enabled) override |
const String_type & | check_clause () const override |
void | set_check_clause (const String_type &check_clause) override |
const String_type & | check_clause_utf8 () const override |
void | set_check_clause_utf8 (const String_type &check_clause_utf8) override |
bool | is_alter_mode () const override |
void | set_alter_mode (bool alter_mode) override |
const String_type & | alias_name () const override |
void | set_alias_name (const String_type &alias_name) override |
const Table & | table () const override |
Table & | table () 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 |
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_type & | name () const override |
void | set_name (const String_type &name) override |
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... | |
Entity_object_impl * | impl () override |
const Entity_object_impl * | impl () 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 |
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::Check_constraint | |
~Check_constraint () override=default | |
Static Public Member Functions | |
static void | register_tables (Open_dictionary_tables_ctx *otx) |
static Check_constraint_impl * | restore_item (Table_impl *table) |
static Check_constraint_impl * | clone (const Check_constraint_impl &other, Table_impl *table) |
Private Attributes | |
enum_constraint_state | m_constraint_state {CS_ENFORCED} |
String_type | m_check_clause |
String_type | m_check_clause_utf8 |
bool | m_alter_mode {false} |
String_type | m_alias_name |
Object_id | m_schema_id |
Table_impl * | m_table |
Additional Inherited Members | |
Public Types inherited from dd::Check_constraint | |
enum | enum_constraint_state { CS_NOT_ENFORCED = 1 , CS_ENFORCED } |
typedef Check_constraint_impl | Impl |
typedef tables::Check_constraints | DD_table |
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 |
|
default |
dd::Check_constraint_impl::Check_constraint_impl | ( | Table_impl * | table | ) |
dd::Check_constraint_impl::Check_constraint_impl | ( | const Check_constraint_impl & | src, |
Table_impl * | parent | ||
) |
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlinestatic |
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
overridevirtual |
Implements dd::Weak_object.
|
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::Check_constraint.
|
inlineoverridevirtual |
The unique dictionary object id.
Implements dd::Entity_object.
|
inlineoverridevirtual |
Implements dd::Entity_object.
|
inlineoverridevirtual |
Implements dd::Entity_object.
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlineoverridevirtual |
Is dictionary object persistent in dictionary tables ?
Implements dd::Entity_object.
|
inlineoverridevirtual |
Implements dd::Entity_object.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
inlinevirtual |
|
static |
|
overridevirtual |
Implements 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::Check_constraint.
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlineoverridevirtual |
Implements dd::Check_constraint.
|
inlineoverridevirtual |
Implements dd::Entity_object.
|
inline |
|
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 |
Implements dd::Check_constraint.
|
overridevirtual |
Implements dd::Check_constraint.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |