23#ifndef DD__TRIGGER_IMPL_INCLUDED
24#define DD__TRIGGER_IMPL_INCLUDED
49class Open_dictionary_tables_ctx;
Definition: entity_object_impl.h:43
void set_name(const String_type &name) override
Definition: entity_object_impl.h:61
Object_id id() const override
The unique dictionary object id.
Definition: entity_object_impl.h:48
const String_type & name() const override
Definition: entity_object_impl.h:59
Entity_object_impl * impl() override
Definition: entity_object_impl.h:67
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: entity_object_impl.h:56
This class represents all data dictionary table like mysql.tables, mysql.columns and more.
Definition: object_table.h:71
Auxiliary class for opening dictionary tables.
Definition: transaction_impl.h:75
Definition: raw_record.h:45
Definition: table_impl.h:67
Object_id schema_id() const override
Definition: table_impl.h:430
Object_id id() const override
The unique dictionary object id.
Definition: table_impl.h:420
Definition: trigger_impl.h:53
Object_id schema_collation_id() const override
Definition: trigger_impl.h:220
static Trigger_impl * clone(const Trigger_impl &other, Table_impl *table)
Definition: trigger_impl.h:254
uint ordinal_position() const
Definition: trigger_impl.h:76
String_type m_action_statement
Definition: trigger_impl.h:276
bool store_attributes(Raw_record *r) override
Definition: trigger_impl.cc:150
enum_event_type event_type() const override
Definition: trigger_impl.h:107
ulonglong m_sql_mode
Definition: trigger_impl.h:271
void set_table(Table_impl *parent)
Definition: trigger_impl.h:89
my_timeval last_altered() const override
Definition: trigger_impl.h:172
void set_definer(const String_type &username, const String_type &hostname) override
Definition: trigger_impl.h:194
void set_last_altered(my_timeval last_altered) override
Definition: trigger_impl.h:174
String_type m_definer_host
Definition: trigger_impl.h:278
void set_sql_mode(ulonglong sql_mode) override
Definition: trigger_impl.h:184
String_type m_definer_user
Definition: trigger_impl.h:277
const String_type & action_statement_utf8() const override
Definition: trigger_impl.h:151
Object_id client_collation_id() const override
Definition: trigger_impl.h:204
Object_id schema_id() const override
Definition: trigger_impl.h:99
String_type m_action_statement_utf8
Definition: trigger_impl.h:275
void set_connection_collation_id(Object_id connection_collation_id) override
Definition: trigger_impl.h:216
void set_client_collation_id(Object_id client_collation_id) override
Definition: trigger_impl.h:208
const Entity_object_impl * impl() const override
Definition: trigger_impl.h:231
const String_type & definer_host() const override
Definition: trigger_impl.h:192
bool restore_attributes(const Raw_record &r) override
Definition: trigger_impl.cc:94
static Trigger_impl * restore_item(Table_impl *table)
Definition: trigger_impl.h:250
void set_action_statement(const String_type &action_statement) override
Definition: trigger_impl.h:147
const String_type & action_statement() const override
Definition: trigger_impl.h:143
static void register_tables(Open_dictionary_tables_ctx *otx)
Definition: trigger_impl.cc:229
const Object_table & object_table() const override
Definition: trigger_impl.cc:223
void set_event_type(enum_event_type event_type) override
Definition: trigger_impl.h:109
uint m_ordinal_position
Definition: trigger_impl.h:268
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: trigger_impl.h:237
Object_id id() const override
The unique dictionary object id.
Definition: trigger_impl.h:235
void set_ordinal_position(uint ordinal_position)
Definition: trigger_impl.h:72
my_timeval m_last_altered
Definition: trigger_impl.h:273
Object_id m_client_collation_id
Definition: trigger_impl.h:286
const Table_impl & table_impl() const
Definition: trigger_impl.h:91
void set_name(const String_type &name) override
Definition: trigger_impl.h:245
Trigger_impl()
Definition: trigger_impl.cc:53
void set_action_statement_utf8(const String_type &action_statement_utf8) override
Definition: trigger_impl.h:155
Entity_object_impl * impl() override
Definition: trigger_impl.h:229
void set_created(my_timeval created) override
Definition: trigger_impl.h:166
my_timeval created() const override
Definition: trigger_impl.h:164
ulonglong sql_mode() const override
Definition: trigger_impl.h:182
enum_event_type m_event_type
Definition: trigger_impl.h:259
enum_action_timing m_action_timing
Definition: trigger_impl.h:260
void debug_print(String_type &outb) const override
Definition: trigger_impl.cc:176
virtual const Table & table() const
Definition: trigger_impl.cc:76
Table_impl & table_impl()
Definition: trigger_impl.h:93
Object_id m_connection_collation_id
Definition: trigger_impl.h:287
void set_action_timing(enum_action_timing action_timing) override
Definition: trigger_impl.h:125
bool validate() const override
Definition: trigger_impl.cc:82
const String_type & definer_user() const override
Definition: trigger_impl.h:190
void set_action_order(uint action_order) override
Definition: trigger_impl.h:135
uint action_order() const override
Definition: trigger_impl.h:133
uint m_action_order
Definition: trigger_impl.h:269
Object_id m_schema_collation_id
Definition: trigger_impl.h:288
Table_impl * m_table
Definition: trigger_impl.h:282
const String_type & name() const override
Definition: trigger_impl.h:241
Object_id connection_collation_id() const override
Definition: trigger_impl.h:212
void set_schema_collation_id(Object_id schema_collation_id) override
Definition: trigger_impl.h:224
Object_id table_id() const override
Definition: trigger_impl.h:117
enum_action_timing action_timing() const override
Definition: trigger_impl.h:123
my_timeval m_created
Definition: trigger_impl.h:272
Class representing a Trigger in DD framework.
Definition: trigger.h:53
virtual uint action_order() const =0
virtual enum_action_timing action_timing() const =0
enum_action_timing
Definition: trigger.h:61
virtual enum_event_type event_type() const =0
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
unsigned long long Object_id
Definition: object_id.h:30
const Object_id INVALID_OBJECT_ID
The default object ID which represents that the DD object is new and not persistent in dictionary tab...
Definition: object_id.h:36
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
enum_event_type
Enum values for the NESTING_EVENT_TYPE columns.
Definition: pfs_column_types.h:269
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:85
Used to sort Triggers of the same table by action timing, event type and action order.
Definition: trigger_impl.h:298
bool operator()(const dd::Trigger *t1, const dd::Trigger *t2) const
Definition: trigger_impl.h:299
Replacement of system's struct timeval to ensure we can carry 64 bit values even on a platform which ...
Definition: my_time_t.h:44
Include file for Sun RPC to compile out of the box.
unsigned int uint
Definition: uca9-dump.cc:74