MySQL 8.0.39
Source Code Documentation
dd::Check_constraint Class Referenceabstract

#include <check_constraint.h>

Inheritance diagram for dd::Check_constraint:
[legend]

Public Types

enum  enum_constraint_state { CS_NOT_ENFORCED = 1 , CS_ENFORCED }
 
typedef Check_constraint_impl Impl
 
typedef tables::Check_constraints DD_table
 

Public Member Functions

 ~Check_constraint () override=default
 
virtual enum_constraint_state constraint_state () const =0
 
virtual void set_constraint_state (bool is_enforced)=0
 
virtual const String_typecheck_clause () const =0
 
virtual void set_check_clause (const String_type &check_clause)=0
 
virtual const String_typecheck_clause_utf8 () const =0
 
virtual void set_check_clause_utf8 (const String_type &check_clause_utf8)=0
 
virtual bool is_alter_mode () const =0
 
virtual void set_alter_mode (bool alter_mode)=0
 
virtual const String_typealias_name () const =0
 
virtual void set_alias_name (const String_type &alias_name)=0
 
virtual const Tabletable () const =0
 
virtual Tabletable ()=0
 
virtual void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const =0
 Converts *this into json. More...
 
virtual bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val)=0
 Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided. More...
 
- Public Member Functions inherited from dd::Entity_object
virtual Object_id id () const =0
 The unique dictionary object id. More...
 
virtual bool is_persistent () const =0
 Is dictionary object persistent in dictionary tables ? More...
 
virtual const String_typename () const =0
 
virtual void set_name (const String_type &name)=0
 
- Public Member Functions inherited from dd::Weak_object
virtual void debug_print (String_type &outb) const =0
 
 Weak_object ()=default
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()=default
 

Member Typedef Documentation

◆ DD_table

◆ Impl

Member Enumeration Documentation

◆ enum_constraint_state

Enumerator
CS_NOT_ENFORCED 
CS_ENFORCED 

Constructor & Destructor Documentation

◆ ~Check_constraint()

dd::Check_constraint::~Check_constraint ( )
overridedefault

Member Function Documentation

◆ alias_name()

virtual const String_type & dd::Check_constraint::alias_name ( ) const
pure virtual

Implemented in dd::Check_constraint_impl.

◆ check_clause()

virtual const String_type & dd::Check_constraint::check_clause ( ) const
pure virtual

Implemented in dd::Check_constraint_impl.

◆ check_clause_utf8()

virtual const String_type & dd::Check_constraint::check_clause_utf8 ( ) const
pure virtual

Implemented in dd::Check_constraint_impl.

◆ constraint_state()

virtual enum_constraint_state dd::Check_constraint::constraint_state ( ) const
pure virtual

Implemented in dd::Check_constraint_impl.

◆ deserialize()

virtual bool dd::Check_constraint::deserialize ( Sdi_rcontext rctx,
const RJ_Value val 
)
pure virtual

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

Implemented in dd::Check_constraint_impl.

◆ is_alter_mode()

virtual bool dd::Check_constraint::is_alter_mode ( ) const
pure virtual

Implemented in dd::Check_constraint_impl.

◆ serialize()

virtual void dd::Check_constraint::serialize ( Sdi_wcontext wctx,
Sdi_writer w 
) const
pure virtual

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

Implemented in dd::Check_constraint_impl.

◆ set_alias_name()

virtual void dd::Check_constraint::set_alias_name ( const String_type alias_name)
pure virtual

Implemented in dd::Check_constraint_impl.

◆ set_alter_mode()

virtual void dd::Check_constraint::set_alter_mode ( bool  alter_mode)
pure virtual

Implemented in dd::Check_constraint_impl.

◆ set_check_clause()

virtual void dd::Check_constraint::set_check_clause ( const String_type check_clause)
pure virtual

Implemented in dd::Check_constraint_impl.

◆ set_check_clause_utf8()

virtual void dd::Check_constraint::set_check_clause_utf8 ( const String_type check_clause_utf8)
pure virtual

Implemented in dd::Check_constraint_impl.

◆ set_constraint_state()

virtual void dd::Check_constraint::set_constraint_state ( bool  is_enforced)
pure virtual

Implemented in dd::Check_constraint_impl.

◆ table() [1/2]

virtual const Table & dd::Check_constraint::table ( ) const
pure virtual

Implemented in dd::Check_constraint_impl.

◆ table() [2/2]

virtual Table & dd::Check_constraint::table ( )
pure virtual

Implemented in dd::Check_constraint_impl.


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