MySQL 9.1.0
Source Code Documentation
dd::Trigger Class Referenceabstract

Class representing a Trigger in DD framework. More...

#include <trigger.h>

Inheritance diagram for dd::Trigger:
[legend]

Public Types

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
 

Public Member Functions

 ~Trigger () override=default
 
virtual Object_id schema_id () const =0
 
virtual Object_id table_id () const =0
 
virtual enum_event_type event_type () const =0
 
virtual void set_event_type (enum_event_type event_type)=0
 
virtual enum_action_timing action_timing () const =0
 
virtual void set_action_timing (enum_action_timing type)=0
 
virtual uint action_order () const =0
 
virtual void set_action_order (uint action_order)=0
 
virtual const String_typeaction_statement () const =0
 
virtual void set_action_statement (const String_type &action_statement)=0
 
virtual const String_typeaction_statement_utf8 () const =0
 
virtual void set_action_statement_utf8 (const String_type &action_statement_utf8)=0
 
virtual my_timeval created () const =0
 
virtual void set_created (my_timeval created)=0
 
virtual my_timeval last_altered () const =0
 
virtual void set_last_altered (my_timeval last_altered)=0
 
virtual ulonglong sql_mode () const =0
 
virtual void set_sql_mode (ulonglong sql_mode)=0
 
virtual const String_typedefiner_user () const =0
 
virtual const String_typedefiner_host () const =0
 
virtual void set_definer (const String_type &username, const String_type &hostname)=0
 
virtual Object_id client_collation_id () const =0
 
virtual void set_client_collation_id (Object_id client_collation_id)=0
 
virtual Object_id connection_collation_id () const =0
 
virtual void set_connection_collation_id (Object_id connection_collation_id)=0
 
virtual Object_id schema_collation_id () const =0
 
virtual void set_schema_collation_id (Object_id schema_collation_id)=0
 
- 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
 

Static Public Member Functions

static void create_mdl_key (const String_type &schema_name, const String_type &name, MDL_key *key)
 
static const CHARSET_INFOname_collation ()
 

Detailed Description

Class representing a Trigger in DD framework.

Member Typedef Documentation

◆ DD_table

◆ Impl

Member Enumeration Documentation

◆ enum_action_timing

Enumerator
AT_BEFORE 
AT_AFTER 

◆ enum_event_type

enum class dd::Trigger::enum_event_type
strong
Enumerator
ET_INSERT 
ET_UPDATE 
ET_DELETE 

Constructor & Destructor Documentation

◆ ~Trigger()

dd::Trigger::~Trigger ( )
overridedefault

Member Function Documentation

◆ action_order()

virtual uint dd::Trigger::action_order ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ action_statement()

virtual const String_type & dd::Trigger::action_statement ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ action_statement_utf8()

virtual const String_type & dd::Trigger::action_statement_utf8 ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ action_timing()

virtual enum_action_timing dd::Trigger::action_timing ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ client_collation_id()

virtual Object_id dd::Trigger::client_collation_id ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ connection_collation_id()

virtual Object_id dd::Trigger::connection_collation_id ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ create_mdl_key()

void Trigger::create_mdl_key ( const String_type schema_name,
const String_type name,
MDL_key key 
)
static

◆ created()

virtual my_timeval dd::Trigger::created ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ definer_host()

virtual const String_type & dd::Trigger::definer_host ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ definer_user()

virtual const String_type & dd::Trigger::definer_user ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ event_type()

virtual enum_event_type dd::Trigger::event_type ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ last_altered()

virtual my_timeval dd::Trigger::last_altered ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ name_collation()

const CHARSET_INFO * Trigger::name_collation ( )
static

◆ schema_collation_id()

virtual Object_id dd::Trigger::schema_collation_id ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ schema_id()

virtual Object_id dd::Trigger::schema_id ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ set_action_order()

virtual void dd::Trigger::set_action_order ( uint  action_order)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_action_statement()

virtual void dd::Trigger::set_action_statement ( const String_type action_statement)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_action_statement_utf8()

virtual void dd::Trigger::set_action_statement_utf8 ( const String_type action_statement_utf8)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_action_timing()

virtual void dd::Trigger::set_action_timing ( enum_action_timing  type)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_client_collation_id()

virtual void dd::Trigger::set_client_collation_id ( Object_id  client_collation_id)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_connection_collation_id()

virtual void dd::Trigger::set_connection_collation_id ( Object_id  connection_collation_id)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_created()

virtual void dd::Trigger::set_created ( my_timeval  created)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_definer()

virtual void dd::Trigger::set_definer ( const String_type username,
const String_type hostname 
)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_event_type()

virtual void dd::Trigger::set_event_type ( enum_event_type  event_type)
pure virtual

◆ set_last_altered()

virtual void dd::Trigger::set_last_altered ( my_timeval  last_altered)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_schema_collation_id()

virtual void dd::Trigger::set_schema_collation_id ( Object_id  schema_collation_id)
pure virtual

Implemented in dd::Trigger_impl.

◆ set_sql_mode()

virtual void dd::Trigger::set_sql_mode ( ulonglong  sql_mode)
pure virtual

Implemented in dd::Trigger_impl.

◆ sql_mode()

virtual ulonglong dd::Trigger::sql_mode ( ) const
pure virtual

Implemented in dd::Trigger_impl.

◆ table_id()

virtual Object_id dd::Trigger::table_id ( ) const
pure virtual

Implemented in dd::Trigger_impl.


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