MySQL  8.0.19
Source Code Documentation
dd::Trigger_impl Class Reference

#include <trigger_impl.h>

Inheritance diagram for dd::Trigger_impl:
dd::Entity_object_impl dd::Trigger dd::Entity_object dd::Weak_object_impl dd::Entity_object dd::Weak_object dd::Weak_object dd::Weak_object

Public Member Functions

 Trigger_impl ()
 
 Trigger_impl (Table_impl *table)
 
 Trigger_impl (const Trigger_impl &src, Table_impl *parent)
 
virtual const Object_tableobject_table () const override
 
virtual bool validate () const override
 
virtual bool restore_attributes (const Raw_record &r) override
 
virtual bool store_attributes (Raw_record *r) override
 
virtual void debug_print (String_type &outb) const override
 
void set_ordinal_position (uint ordinal_position)
 
uint ordinal_position () const
 
virtual const Tabletable () const
 
virtual Tabletable ()
 
void set_table (Table_impl *parent)
 
const Table_impltable_impl () const
 
Table_impltable_impl ()
 
virtual Object_id schema_id () const override
 
virtual enum_event_type event_type () const override
 
virtual void set_event_type (enum_event_type event_type) override
 
virtual Object_id table_id () const override
 
virtual enum_action_timing action_timing () const override
 
virtual void set_action_timing (enum_action_timing action_timing) override
 
virtual uint action_order () const override
 
virtual void set_action_order (uint action_order) override
 
virtual const String_typeaction_statement () const override
 
virtual void set_action_statement (const String_type &action_statement) override
 
virtual const String_typeaction_statement_utf8 () const override
 
virtual void set_action_statement_utf8 (const String_type &action_statement_utf8) override
 
virtual timeval created () const override
 
virtual void set_created (timeval created) override
 
virtual timeval last_altered () const override
 
virtual void set_last_altered (timeval last_altered) override
 
virtual ulonglong sql_mode () const override
 
virtual void set_sql_mode (ulonglong sql_mode) override
 
virtual const String_typedefiner_user () const override
 
virtual const String_typedefiner_host () const override
 
virtual void set_definer (const String_type &username, const String_type &hostname) override
 
virtual Object_id client_collation_id () const override
 
virtual void set_client_collation_id (Object_id client_collation_id) override
 
virtual Object_id connection_collation_id () const override
 
virtual void set_connection_collation_id (Object_id connection_collation_id) override
 
virtual Object_id schema_collation_id () const override
 
virtual void set_schema_collation_id (Object_id schema_collation_id) override
 
virtual Entity_object_implimpl () override
 
virtual const Entity_object_implimpl () const override
 
virtual Object_id id () const override
 The unique dictionary object id. More...
 
virtual bool is_persistent () const override
 Is dictionary object persistent in dictionary tables ? More...
 
virtual const String_typename () const override
 
virtual void set_name (const String_type &name) override
 
- Public Member Functions inherited from dd::Entity_object_impl
 Entity_object_impl ()
 
void set_id (Object_id id)
 
virtual Object_keycreate_primary_key () const override
 
virtual 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 ()
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()
 
- Public Member Functions inherited from dd::Weak_object_impl
 Weak_object_impl ()
 
virtual ~Weak_object_impl ()
 
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::Trigger
virtual ~Trigger ()
 
virtual void set_event_type (enum_event_type event_type)=0
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
static Trigger_implrestore_item (Table_impl *table)
 
static Trigger_implclone (const Trigger_impl &other, Table_impl *table)
 
- Static Public Member Functions inherited from dd::Trigger
static void create_mdl_key (const String_type &schema_name, const String_type &name, MDL_key *key)
 
static const CHARSET_INFOname_collation ()
 

Private Attributes

enum_event_type m_event_type
 
enum_action_timing m_action_timing
 
uint m_ordinal_position
 
uint m_action_order
 
ulonglong m_sql_mode
 
timeval m_created
 
timeval m_last_altered
 
String_type m_action_statement_utf8
 
String_type m_action_statement
 
String_type m_definer_user
 
String_type m_definer_host
 
Table_implm_table
 
Object_id m_client_collation_id
 
Object_id m_connection_collation_id
 
Object_id m_schema_collation_id
 

Additional Inherited Members

- Public Types inherited from dd::Trigger
enum  enum_event_type { enum_event_type::ET_INSERT = 1, enum_event_type::ET_UPDATE, enum_event_type::ET_DELETE }
 
enum  enum_action_timing { enum_action_timing::AT_BEFORE = 1, enum_action_timing::AT_AFTER }
 
typedef Trigger_impl Impl
 
typedef tables::Triggers DD_table
 
- Protected Member Functions inherited from dd::Entity_object_impl
virtual void set_primary_key_value (const Raw_new_record &r) override
 
virtual 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
bool check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const
 

Constructor & Destructor Documentation

◆ Trigger_impl() [1/3]

dd::Trigger_impl::Trigger_impl ( )

◆ Trigger_impl() [2/3]

dd::Trigger_impl::Trigger_impl ( Table_impl table)

◆ Trigger_impl() [3/3]

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

Member Function Documentation

◆ action_order()

virtual uint dd::Trigger_impl::action_order ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ action_statement()

virtual const String_type& dd::Trigger_impl::action_statement ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ action_statement_utf8()

virtual const String_type& dd::Trigger_impl::action_statement_utf8 ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ action_timing()

virtual enum_action_timing dd::Trigger_impl::action_timing ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ client_collation_id()

virtual Object_id dd::Trigger_impl::client_collation_id ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ clone()

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

◆ connection_collation_id()

virtual Object_id dd::Trigger_impl::connection_collation_id ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ created()

virtual timeval dd::Trigger_impl::created ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ debug_print()

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

Implements dd::Weak_object.

◆ definer_host()

virtual const String_type& dd::Trigger_impl::definer_host ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ definer_user()

virtual const String_type& dd::Trigger_impl::definer_user ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ event_type()

virtual enum_event_type dd::Trigger_impl::event_type ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ id()

virtual Object_id dd::Trigger_impl::id ( ) const
inlineoverridevirtual

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

virtual const Entity_object_impl* dd::Trigger_impl::impl ( ) const
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

virtual Entity_object_impl* dd::Trigger_impl::impl ( )
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ is_persistent()

virtual bool dd::Trigger_impl::is_persistent ( ) const
inlineoverridevirtual

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ last_altered()

virtual timeval dd::Trigger_impl::last_altered ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ name()

virtual const String_type& dd::Trigger_impl::name ( ) const
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ object_table()

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

Implements dd::Weak_object_impl.

◆ ordinal_position()

uint dd::Trigger_impl::ordinal_position ( ) const
inline

◆ register_tables()

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

◆ restore_attributes()

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

Implements dd::Weak_object_impl.

◆ restore_item()

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

◆ schema_collation_id()

virtual Object_id dd::Trigger_impl::schema_collation_id ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ schema_id()

virtual Object_id dd::Trigger_impl::schema_id ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ set_action_order()

virtual void dd::Trigger_impl::set_action_order ( uint  action_order)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_action_statement()

virtual void dd::Trigger_impl::set_action_statement ( const String_type action_statement)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_action_statement_utf8()

virtual void dd::Trigger_impl::set_action_statement_utf8 ( const String_type action_statement_utf8)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_action_timing()

virtual void dd::Trigger_impl::set_action_timing ( enum_action_timing  action_timing)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_client_collation_id()

virtual void dd::Trigger_impl::set_client_collation_id ( Object_id  client_collation_id)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_connection_collation_id()

virtual void dd::Trigger_impl::set_connection_collation_id ( Object_id  connection_collation_id)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_created()

virtual void dd::Trigger_impl::set_created ( timeval  created)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_definer()

virtual void dd::Trigger_impl::set_definer ( const String_type username,
const String_type hostname 
)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_event_type()

virtual void dd::Trigger_impl::set_event_type ( enum_event_type  event_type)
inlineoverridevirtual

◆ set_last_altered()

virtual void dd::Trigger_impl::set_last_altered ( timeval  last_altered)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_name()

virtual void dd::Trigger_impl::set_name ( const String_type name)
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ set_ordinal_position()

void dd::Trigger_impl::set_ordinal_position ( uint  ordinal_position)
inline

◆ set_schema_collation_id()

virtual void dd::Trigger_impl::set_schema_collation_id ( Object_id  schema_collation_id)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_sql_mode()

virtual void dd::Trigger_impl::set_sql_mode ( ulonglong  sql_mode)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_table()

void dd::Trigger_impl::set_table ( Table_impl parent)
inline

◆ sql_mode()

virtual ulonglong dd::Trigger_impl::sql_mode ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ store_attributes()

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

Implements dd::Weak_object_impl.

◆ table() [1/2]

virtual Table& dd::Trigger_impl::table ( )
virtual

◆ table() [2/2]

Table & dd::Trigger_impl::table ( ) const
virtual

◆ table_id()

virtual Object_id dd::Trigger_impl::table_id ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ table_impl() [1/2]

Table_impl& dd::Trigger_impl::table_impl ( )
inline

◆ table_impl() [2/2]

const Table_impl& dd::Trigger_impl::table_impl ( ) const
inline

◆ validate()

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

Implements dd::Weak_object_impl.

Member Data Documentation

◆ m_action_order

uint dd::Trigger_impl::m_action_order
private

◆ m_action_statement

String_type dd::Trigger_impl::m_action_statement
private

◆ m_action_statement_utf8

String_type dd::Trigger_impl::m_action_statement_utf8
private

◆ m_action_timing

enum_action_timing dd::Trigger_impl::m_action_timing
private

◆ m_client_collation_id

Object_id dd::Trigger_impl::m_client_collation_id
private

◆ m_connection_collation_id

Object_id dd::Trigger_impl::m_connection_collation_id
private

◆ m_created

timeval dd::Trigger_impl::m_created
private

◆ m_definer_host

String_type dd::Trigger_impl::m_definer_host
private

◆ m_definer_user

String_type dd::Trigger_impl::m_definer_user
private

◆ m_event_type

enum_event_type dd::Trigger_impl::m_event_type
private

◆ m_last_altered

timeval dd::Trigger_impl::m_last_altered
private

◆ m_ordinal_position

uint dd::Trigger_impl::m_ordinal_position
private

◆ m_schema_collation_id

Object_id dd::Trigger_impl::m_schema_collation_id
private

◆ m_sql_mode

ulonglong dd::Trigger_impl::m_sql_mode
private

◆ m_table

Table_impl* dd::Trigger_impl::m_table
private

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