MySQL 9.1.0
Source Code Documentation
dd::Check_constraint_impl Class Reference

#include <check_constraint_impl.h>

Inheritance diagram for dd::Check_constraint_impl:
[legend]

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_tableobject_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_typecheck_clause () const override
 
void set_check_clause (const String_type &check_clause) override
 
const String_typecheck_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_typealias_name () const override
 
void set_alias_name (const String_type &alias_name) override
 
const Tabletable () const override
 
Tabletable () 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
 
- 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
 
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_implrestore_item (Table_impl *table)
 
static Check_constraint_implclone (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_implm_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
 

Constructor & Destructor Documentation

◆ Check_constraint_impl() [1/3]

dd::Check_constraint_impl::Check_constraint_impl ( )
default

◆ Check_constraint_impl() [2/3]

dd::Check_constraint_impl::Check_constraint_impl ( Table_impl table)

◆ Check_constraint_impl() [3/3]

dd::Check_constraint_impl::Check_constraint_impl ( const Check_constraint_impl src,
Table_impl parent 
)

Member Function Documentation

◆ alias_name()

const String_type & dd::Check_constraint_impl::alias_name ( ) const
inlineoverridevirtual

Implements dd::Check_constraint.

◆ check_clause()

const String_type & dd::Check_constraint_impl::check_clause ( ) const
inlineoverridevirtual

Implements dd::Check_constraint.

◆ check_clause_utf8()

const String_type & dd::Check_constraint_impl::check_clause_utf8 ( ) const
inlineoverridevirtual

Implements dd::Check_constraint.

◆ clone()

static Check_constraint_impl * dd::Check_constraint_impl::clone ( const Check_constraint_impl other,
Table_impl table 
)
inlinestatic

◆ constraint_state()

enum_constraint_state dd::Check_constraint_impl::constraint_state ( ) const
inlineoverridevirtual

Implements dd::Check_constraint.

◆ debug_print()

void dd::Check_constraint_impl::debug_print ( String_type outb) const
overridevirtual

Implements dd::Weak_object.

◆ deserialize()

bool dd::Check_constraint_impl::deserialize ( Sdi_rcontext rctx,
const RJ_Value val 
)
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.

Parameters
rctxstores book-keeping information for the deserialization process
valsubobject of rapidjson DOM containing json representation of this object
Return values
falsesuccess
truefailure

Implements dd::Check_constraint.

◆ id()

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

The unique dictionary object id.

Implements dd::Entity_object.

◆ impl() [1/2]

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

Implements dd::Entity_object.

◆ impl() [2/2]

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

Implements dd::Entity_object.

◆ is_alter_mode()

bool dd::Check_constraint_impl::is_alter_mode ( ) const
inlineoverridevirtual

Implements dd::Check_constraint.

◆ is_persistent()

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

Is dictionary object persistent in dictionary tables ?

Implements dd::Entity_object.

◆ name()

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

Implements dd::Entity_object.

◆ object_table()

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

◆ ordinal_position()

virtual uint dd::Check_constraint_impl::ordinal_position ( ) const
inlinevirtual

◆ register_tables()

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

◆ restore_attributes()

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

◆ restore_item()

static Check_constraint_impl * dd::Check_constraint_impl::restore_item ( Table_impl table)
inlinestatic

◆ serialize()

void dd::Check_constraint_impl::serialize ( Sdi_wcontext wctx,
Sdi_writer w 
) const
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.

Parameters
wctxopaque context for data needed by serialization
wrapidjson writer which will perform conversion to json

Implements dd::Check_constraint.

◆ set_alias_name()

void dd::Check_constraint_impl::set_alias_name ( const String_type alias_name)
inlineoverridevirtual

Implements dd::Check_constraint.

◆ set_alter_mode()

void dd::Check_constraint_impl::set_alter_mode ( bool  alter_mode)
inlineoverridevirtual

Implements dd::Check_constraint.

◆ set_check_clause()

void dd::Check_constraint_impl::set_check_clause ( const String_type check_clause)
inlineoverridevirtual

Implements dd::Check_constraint.

◆ set_check_clause_utf8()

void dd::Check_constraint_impl::set_check_clause_utf8 ( const String_type check_clause_utf8)
inlineoverridevirtual

Implements dd::Check_constraint.

◆ set_constraint_state()

void dd::Check_constraint_impl::set_constraint_state ( bool  is_enabled)
inlineoverridevirtual

Implements dd::Check_constraint.

◆ set_name()

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

Implements dd::Entity_object.

◆ set_ordinal_position()

void dd::Check_constraint_impl::set_ordinal_position ( uint  )
inline

◆ store()

bool dd::Check_constraint_impl::store ( Open_dictionary_tables_ctx otx)
overridevirtual

Store the DD object into DD table.

Parameters
otx- DD transaction in use.
Returns
true - on failure and error is reported.
false - on success.

Reimplemented from dd::Weak_object_impl_< use_pfs >.

◆ store_attributes()

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

◆ table() [1/2]

const Table & dd::Check_constraint_impl::table ( ) const
overridevirtual

Implements dd::Check_constraint.

◆ table() [2/2]

Table & dd::Check_constraint_impl::table ( )
overridevirtual

Implements dd::Check_constraint.

◆ validate()

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

Member Data Documentation

◆ m_alias_name

String_type dd::Check_constraint_impl::m_alias_name
private

◆ m_alter_mode

bool dd::Check_constraint_impl::m_alter_mode {false}
private

◆ m_check_clause

String_type dd::Check_constraint_impl::m_check_clause
private

◆ m_check_clause_utf8

String_type dd::Check_constraint_impl::m_check_clause_utf8
private

◆ m_constraint_state

enum_constraint_state dd::Check_constraint_impl::m_constraint_state {CS_ENFORCED}
private

◆ m_schema_id

Object_id dd::Check_constraint_impl::m_schema_id
private

◆ m_table

Table_impl* dd::Check_constraint_impl::m_table
private

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