MySQL 8.0.39
Source Code Documentation
dd::Event_impl Class Reference

#include <event_impl.h>

Inheritance diagram for dd::Event_impl:
[legend]

Public Member Functions

 Event_impl ()
 
 Event_impl (const Event_impl &)
 
 ~Event_impl () override=default
 
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
 
Object_id schema_id () const override
 
void set_schema_id (Object_id schema_id) 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
 
const String_typetime_zone () const override
 
void set_time_zone (const String_type &time_zone) override
 
const String_typedefinition () const override
 
void set_definition (const String_type &definition) override
 
const String_typedefinition_utf8 () const override
 
void set_definition_utf8 (const String_type &definition_utf8) override
 
my_time_t execute_at () const override
 
void set_execute_at (my_time_t execute_at) override
 
void set_execute_at_null (bool is_null) override
 
bool is_execute_at_null () const override
 
uint interval_value () const override
 
void set_interval_value (uint interval_value) override
 
void set_interval_value_null (bool is_null) override
 
bool is_interval_value_null () const override
 
enum_interval_field interval_field () const override
 
void set_interval_field (enum_interval_field interval_field) override
 
void set_interval_field_null (bool is_null) override
 
bool is_interval_field_null () const override
 
ulonglong sql_mode () const override
 
void set_sql_mode (ulonglong sm) override
 
my_time_t starts () const override
 
void set_starts (my_time_t starts) override
 
void set_starts_null (bool is_null) override
 
bool is_starts_null () const override
 
my_time_t ends () const override
 
void set_ends (my_time_t ends) override
 
void set_ends_null (bool is_null) override
 
bool is_ends_null () const override
 
enum_event_status event_status () const override
 
void set_event_status (enum_event_status event_status) override
 
void set_event_status_null (bool is_null) override
 
bool is_event_status_null () const override
 
enum_on_completion on_completion () const override
 
void set_on_completion (enum_on_completion on_completion) override
 
ulonglong created (bool convert_time) const override
 
void set_created (ulonglong created) override
 
ulonglong last_altered (bool convert_time) const override
 
void set_last_altered (ulonglong last_altered) override
 
my_time_t last_executed () const override
 
void set_last_executed (my_time_t last_executed) override
 
void set_last_executed_null (bool is_null) override
 
bool is_last_executed_null () const override
 
const String_typecomment () const override
 
void set_comment (const String_type &comment) override
 
ulonglong originator () const override
 
void set_originator (ulonglong originator) 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::Event
virtual bool update_id_key (Id_key *key) const
 
virtual bool update_name_key (Name_key *key) const
 
virtual bool update_aux_key (Aux_key *) const
 
 ~Event () override=default
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
- Static Public Member Functions inherited from dd::Event
static bool update_id_key (Id_key *key, Object_id id)
 
static bool update_name_key (Name_key *key, Object_id schema_id, const String_type &name)
 
static void create_mdl_key (const String_type &schema_name, const String_type &name, MDL_key *key)
 

Private Member Functions

Eventclone () const override
 Allocate a new object graph and invoke the copy constructor for each object. More...
 
Eventclone_dropped_object_placeholder () const override
 Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry. More...
 

Private Attributes

enum_interval_field m_interval_field
 
enum_event_status m_event_status
 
enum_on_completion m_on_completion
 
ulonglong m_sql_mode
 
ulonglong m_created
 
ulonglong m_last_altered
 
ulonglong m_originator
 
uint m_interval_value
 
my_time_t m_execute_at
 
my_time_t m_starts
 
my_time_t m_ends
 
my_time_t m_last_executed
 
bool m_is_execute_at_null
 
bool m_is_interval_value_null
 
bool m_is_interval_field_null
 
bool m_is_starts_null
 
bool m_is_ends_null
 
bool m_is_event_status_null
 
bool m_is_last_executed_null
 
String_type m_time_zone
 
String_type m_definition
 
String_type m_definition_utf8
 
String_type m_definer_user
 
String_type m_definer_host
 
String_type m_comment
 
Object_id m_schema_id
 
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::Event
enum  enum_interval_field {
  IF_YEAR = 1 , IF_QUARTER , IF_MONTH , IF_DAY ,
  IF_HOUR , IF_MINUTE , IF_WEEK , IF_SECOND ,
  IF_MICROSECOND , IF_YEAR_MONTH , IF_DAY_HOUR , IF_DAY_MINUTE ,
  IF_DAY_SECOND , IF_HOUR_MINUTE , IF_HOUR_SECOND , IF_MINUTE_SECOND ,
  IF_DAY_MICROSECOND , IF_HOUR_MICROSECOND , IF_MINUTE_MICROSECOND , IF_SECOND_MICROSECOND
}
 
enum  enum_event_status { ES_ENABLED = 1 , ES_DISABLED , ES_SLAVESIDE_DISABLED }
 
enum  enum_on_completion { OC_DROP = 1 , OC_PRESERVE }
 
typedef Event_impl Impl
 
typedef Event Cache_partition
 
typedef tables::Events DD_table
 
typedef Primary_id_key Id_key
 
typedef Item_name_key Name_key
 
typedef Void_key Aux_key
 
- 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

◆ Event_impl() [1/2]

dd::Event_impl::Event_impl ( )

◆ Event_impl() [2/2]

dd::Event_impl::Event_impl ( const Event_impl src)

◆ ~Event_impl()

dd::Event_impl::~Event_impl ( )
overridedefault

Member Function Documentation

◆ client_collation_id()

Object_id dd::Event_impl::client_collation_id ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ clone()

Event * dd::Event_impl::clone ( ) const
inlineoverrideprivatevirtual

Allocate a new object graph and invoke the copy constructor for each object.

Only used in unit testing.

Returns
pointer to dynamically allocated copy

Implements dd::Event.

◆ clone_dropped_object_placeholder()

Event * dd::Event_impl::clone_dropped_object_placeholder ( ) const
inlineoverrideprivatevirtual

Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry.

Such object has the same keys as the original but has no other info and as result occupies less memory.

Implements dd::Event.

◆ comment()

const String_type & dd::Event_impl::comment ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ connection_collation_id()

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

Implements dd::Event.

◆ created()

ulonglong dd::Event_impl::created ( bool  convert_time) const
inlineoverridevirtual

Implements dd::Event.

◆ debug_print()

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

Implements dd::Weak_object.

◆ definer_host()

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

Implements dd::Event.

◆ definer_user()

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

Implements dd::Event.

◆ definition()

const String_type & dd::Event_impl::definition ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ definition_utf8()

const String_type & dd::Event_impl::definition_utf8 ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ ends()

my_time_t dd::Event_impl::ends ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ event_status()

enum_event_status dd::Event_impl::event_status ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ execute_at()

my_time_t dd::Event_impl::execute_at ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ id()

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

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

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

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

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

Reimplemented from dd::Entity_object_impl.

◆ interval_field()

enum_interval_field dd::Event_impl::interval_field ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ interval_value()

uint dd::Event_impl::interval_value ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ is_ends_null()

bool dd::Event_impl::is_ends_null ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ is_event_status_null()

bool dd::Event_impl::is_event_status_null ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ is_execute_at_null()

bool dd::Event_impl::is_execute_at_null ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ is_interval_field_null()

bool dd::Event_impl::is_interval_field_null ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ is_interval_value_null()

bool dd::Event_impl::is_interval_value_null ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ is_last_executed_null()

bool dd::Event_impl::is_last_executed_null ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ is_persistent()

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

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ is_starts_null()

bool dd::Event_impl::is_starts_null ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ last_altered()

ulonglong dd::Event_impl::last_altered ( bool  convert_time) const
inlineoverridevirtual

Implements dd::Event.

◆ last_executed()

my_time_t dd::Event_impl::last_executed ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ name()

const String_type & dd::Event_impl::name ( ) const
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ object_table()

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

◆ on_completion()

enum_on_completion dd::Event_impl::on_completion ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ originator()

ulonglong dd::Event_impl::originator ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ register_tables()

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

◆ restore_attributes()

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

◆ schema_collation_id()

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

Implements dd::Event.

◆ schema_id()

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

Implements dd::Event.

◆ set_client_collation_id()

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

Implements dd::Event.

◆ set_comment()

void dd::Event_impl::set_comment ( const String_type comment)
inlineoverridevirtual

Implements dd::Event.

◆ set_connection_collation_id()

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

Implements dd::Event.

◆ set_created()

void dd::Event_impl::set_created ( ulonglong  created)
inlineoverridevirtual

Implements dd::Event.

◆ set_definer()

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

Implements dd::Event.

◆ set_definition()

void dd::Event_impl::set_definition ( const String_type definition)
inlineoverridevirtual

Implements dd::Event.

◆ set_definition_utf8()

void dd::Event_impl::set_definition_utf8 ( const String_type definition_utf8)
inlineoverridevirtual

Implements dd::Event.

◆ set_ends()

void dd::Event_impl::set_ends ( my_time_t  ends)
inlineoverridevirtual

Implements dd::Event.

◆ set_ends_null()

void dd::Event_impl::set_ends_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Event.

◆ set_event_status()

void dd::Event_impl::set_event_status ( enum_event_status  event_status)
inlineoverridevirtual

Implements dd::Event.

◆ set_event_status_null()

void dd::Event_impl::set_event_status_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Event.

◆ set_execute_at()

void dd::Event_impl::set_execute_at ( my_time_t  execute_at)
inlineoverridevirtual

Implements dd::Event.

◆ set_execute_at_null()

void dd::Event_impl::set_execute_at_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Event.

◆ set_interval_field()

void dd::Event_impl::set_interval_field ( enum_interval_field  interval_field)
inlineoverridevirtual

Implements dd::Event.

◆ set_interval_field_null()

void dd::Event_impl::set_interval_field_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Event.

◆ set_interval_value()

void dd::Event_impl::set_interval_value ( uint  interval_value)
inlineoverridevirtual

Implements dd::Event.

◆ set_interval_value_null()

void dd::Event_impl::set_interval_value_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Event.

◆ set_last_altered()

void dd::Event_impl::set_last_altered ( ulonglong  last_altered)
inlineoverridevirtual

Implements dd::Event.

◆ set_last_executed()

void dd::Event_impl::set_last_executed ( my_time_t  last_executed)
inlineoverridevirtual

Implements dd::Event.

◆ set_last_executed_null()

void dd::Event_impl::set_last_executed_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Event.

◆ set_name()

void dd::Event_impl::set_name ( const String_type name)
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ set_on_completion()

void dd::Event_impl::set_on_completion ( enum_on_completion  on_completion)
inlineoverridevirtual

Implements dd::Event.

◆ set_originator()

void dd::Event_impl::set_originator ( ulonglong  originator)
inlineoverridevirtual

Implements dd::Event.

◆ set_schema_collation_id()

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

Implements dd::Event.

◆ set_schema_id()

void dd::Event_impl::set_schema_id ( Object_id  schema_id)
inlineoverridevirtual

Implements dd::Event.

◆ set_sql_mode()

void dd::Event_impl::set_sql_mode ( ulonglong  sm)
inlineoverridevirtual

Implements dd::Event.

◆ set_starts()

void dd::Event_impl::set_starts ( my_time_t  starts)
inlineoverridevirtual

Implements dd::Event.

◆ set_starts_null()

void dd::Event_impl::set_starts_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Event.

◆ set_time_zone()

void dd::Event_impl::set_time_zone ( const String_type time_zone)
inlineoverridevirtual

Implements dd::Event.

◆ sql_mode()

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

Implements dd::Event.

◆ starts()

my_time_t dd::Event_impl::starts ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ store_attributes()

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

◆ time_zone()

const String_type & dd::Event_impl::time_zone ( ) const
inlineoverridevirtual

Implements dd::Event.

◆ validate()

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

Member Data Documentation

◆ m_client_collation_id

Object_id dd::Event_impl::m_client_collation_id
private

◆ m_comment

String_type dd::Event_impl::m_comment
private

◆ m_connection_collation_id

Object_id dd::Event_impl::m_connection_collation_id
private

◆ m_created

ulonglong dd::Event_impl::m_created
private

◆ m_definer_host

String_type dd::Event_impl::m_definer_host
private

◆ m_definer_user

String_type dd::Event_impl::m_definer_user
private

◆ m_definition

String_type dd::Event_impl::m_definition
private

◆ m_definition_utf8

String_type dd::Event_impl::m_definition_utf8
private

◆ m_ends

my_time_t dd::Event_impl::m_ends
private

◆ m_event_status

enum_event_status dd::Event_impl::m_event_status
private

◆ m_execute_at

my_time_t dd::Event_impl::m_execute_at
private

◆ m_interval_field

enum_interval_field dd::Event_impl::m_interval_field
private

◆ m_interval_value

uint dd::Event_impl::m_interval_value
private

◆ m_is_ends_null

bool dd::Event_impl::m_is_ends_null
private

◆ m_is_event_status_null

bool dd::Event_impl::m_is_event_status_null
private

◆ m_is_execute_at_null

bool dd::Event_impl::m_is_execute_at_null
private

◆ m_is_interval_field_null

bool dd::Event_impl::m_is_interval_field_null
private

◆ m_is_interval_value_null

bool dd::Event_impl::m_is_interval_value_null
private

◆ m_is_last_executed_null

bool dd::Event_impl::m_is_last_executed_null
private

◆ m_is_starts_null

bool dd::Event_impl::m_is_starts_null
private

◆ m_last_altered

ulonglong dd::Event_impl::m_last_altered
private

◆ m_last_executed

my_time_t dd::Event_impl::m_last_executed
private

◆ m_on_completion

enum_on_completion dd::Event_impl::m_on_completion
private

◆ m_originator

ulonglong dd::Event_impl::m_originator
private

◆ m_schema_collation_id

Object_id dd::Event_impl::m_schema_collation_id
private

◆ m_schema_id

Object_id dd::Event_impl::m_schema_id
private

◆ m_sql_mode

ulonglong dd::Event_impl::m_sql_mode
private

◆ m_starts

my_time_t dd::Event_impl::m_starts
private

◆ m_time_zone

String_type dd::Event_impl::m_time_zone
private

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