MySQL 9.1.0
Source Code Documentation
dd::Trigger_impl Class Reference

#include <trigger_impl.h>

Inheritance diagram for dd::Trigger_impl:
[legend]

Public Member Functions

 Trigger_impl ()
 
 Trigger_impl (Table_impl *table)
 
 Trigger_impl (const Trigger_impl &src, Table_impl *parent)
 
const Object_tableobject_table () const override
 
bool validate () const override
 
bool restore_attributes (const Raw_record &r) override
 
bool store_attributes (Raw_record *r) override
 
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 ()
 
Object_id schema_id () const override
 
enum_event_type event_type () const override
 
void set_event_type (enum_event_type event_type) override
 
Object_id table_id () const override
 
enum_action_timing action_timing () const override
 
void set_action_timing (enum_action_timing action_timing) override
 
uint action_order () const override
 
void set_action_order (uint action_order) override
 
const String_typeaction_statement () const override
 
void set_action_statement (const String_type &action_statement) override
 
const String_typeaction_statement_utf8 () const override
 
void set_action_statement_utf8 (const String_type &action_statement_utf8) override
 
my_timeval created () const override
 
void set_created (my_timeval created) override
 
my_timeval last_altered () const override
 
void set_last_altered (my_timeval last_altered) override
 
ulonglong sql_mode () const override
 
void set_sql_mode (ulonglong sql_mode) override
 
const String_typedefiner_user () const override
 
const String_typedefiner_host () const override
 
void set_definer (const String_type &username, const String_type &hostname) override
 
Object_id client_collation_id () const override
 
void set_client_collation_id (Object_id client_collation_id) override
 
Object_id connection_collation_id () const override
 
void set_connection_collation_id (Object_id connection_collation_id) override
 
Object_id schema_collation_id () const override
 
void set_schema_collation_id (Object_id schema_collation_id) 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 ()
 
void set_id (Object_id id)
 
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...
 
- 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
 
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
 ~Trigger () override=default
 
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
 
my_timeval m_created
 
my_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 class  enum_event_type { ET_INSERT = 1 , ET_UPDATE , ET_DELETE }
 
enum class  enum_action_timing { AT_BEFORE = 1 , AT_AFTER }
 
typedef Trigger_impl Impl
 
typedef tables::Triggers 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

◆ 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()

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

Implements dd::Trigger.

◆ action_statement()

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

Implements dd::Trigger.

◆ action_statement_utf8()

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

Implements dd::Trigger.

◆ action_timing()

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

Implements dd::Trigger.

◆ client_collation_id()

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()

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

Implements dd::Trigger.

◆ created()

my_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()

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

Implements dd::Trigger.

◆ definer_user()

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

Implements dd::Trigger.

◆ event_type()

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

Implements dd::Trigger.

◆ id()

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

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

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

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

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

Reimplemented from dd::Entity_object_impl.

◆ is_persistent()

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

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ last_altered()

my_timeval dd::Trigger_impl::last_altered ( ) const
inlineoverridevirtual

Implements dd::Trigger.

◆ name()

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

◆ 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

◆ restore_item()

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

◆ schema_collation_id()

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

Implements dd::Trigger.

◆ schema_id()

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

Implements dd::Trigger.

◆ set_action_order()

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

Implements dd::Trigger.

◆ set_action_statement()

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

Implements dd::Trigger.

◆ set_action_statement_utf8()

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

Implements dd::Trigger.

◆ set_action_timing()

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

Implements dd::Trigger.

◆ set_client_collation_id()

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

Implements dd::Trigger.

◆ set_connection_collation_id()

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

Implements dd::Trigger.

◆ set_created()

void dd::Trigger_impl::set_created ( my_timeval  created)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_definer()

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

Implements dd::Trigger.

◆ set_event_type()

void dd::Trigger_impl::set_event_type ( enum_event_type  event_type)
inlineoverride

◆ set_last_altered()

void dd::Trigger_impl::set_last_altered ( my_timeval  last_altered)
inlineoverridevirtual

Implements dd::Trigger.

◆ set_name()

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()

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

Implements dd::Trigger.

◆ set_sql_mode()

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()

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

Implements dd::Trigger.

◆ store_attributes()

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

◆ table() [1/2]

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

◆ table() [2/2]

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

◆ table_id()

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

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

my_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

my_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: