MySQL  8.0.19
Source Code Documentation
dd::Event_impl Class Reference

#include <event_impl.h>

Inheritance diagram for dd::Event_impl:
dd::Entity_object_impl dd::Event dd::Entity_object dd::Weak_object_impl dd::Entity_object dd::Weak_object dd::Weak_object dd::Weak_object

Public Member Functions

 Event_impl ()
 
 Event_impl (const Event_impl &)
 
virtual ~Event_impl ()
 
virtual const Object_tableobject_table () const
 
virtual bool validate () const
 
virtual bool restore_attributes (const Raw_record &r)
 
virtual bool store_attributes (Raw_record *r)
 
virtual void debug_print (String_type &outb) const
 
virtual Object_id schema_id () const
 
virtual void set_schema_id (Object_id schema_id)
 
virtual const String_typedefiner_user () const
 
virtual const String_typedefiner_host () const
 
virtual void set_definer (const String_type &username, const String_type &hostname)
 
virtual const String_typetime_zone () const
 
virtual void set_time_zone (const String_type &time_zone)
 
virtual const String_typedefinition () const
 
virtual void set_definition (const String_type &definition)
 
virtual const String_typedefinition_utf8 () const
 
virtual void set_definition_utf8 (const String_type &definition_utf8)
 
virtual my_time_t execute_at () const
 
virtual void set_execute_at (my_time_t execute_at)
 
virtual void set_execute_at_null (bool is_null)
 
virtual bool is_execute_at_null () const
 
virtual uint interval_value () const
 
virtual void set_interval_value (uint interval_value)
 
virtual void set_interval_value_null (bool is_null)
 
virtual bool is_interval_value_null () const
 
virtual enum_interval_field interval_field () const
 
virtual void set_interval_field (enum_interval_field interval_field)
 
virtual void set_interval_field_null (bool is_null)
 
virtual bool is_interval_field_null () const
 
virtual ulonglong sql_mode () const
 
virtual void set_sql_mode (ulonglong sm)
 
virtual my_time_t starts () const
 
virtual void set_starts (my_time_t starts)
 
virtual void set_starts_null (bool is_null)
 
virtual bool is_starts_null () const
 
virtual my_time_t ends () const
 
virtual void set_ends (my_time_t ends)
 
virtual void set_ends_null (bool is_null)
 
virtual bool is_ends_null () const
 
virtual enum_event_status event_status () const
 
virtual void set_event_status (enum_event_status event_status)
 
virtual void set_event_status_null (bool is_null)
 
virtual bool is_event_status_null () const
 
virtual enum_on_completion on_completion () const
 
virtual void set_on_completion (enum_on_completion on_completion)
 
virtual ulonglong created (bool convert_time) const
 
virtual void set_created (ulonglong created)
 
virtual ulonglong last_altered (bool convert_time) const
 
virtual void set_last_altered (ulonglong last_altered)
 
virtual my_time_t last_executed () const
 
virtual void set_last_executed (my_time_t last_executed)
 
virtual void set_last_executed_null (bool is_null)
 
virtual bool is_last_executed_null () const
 
virtual const String_typecomment () const
 
virtual void set_comment (const String_type &comment)
 
virtual ulonglong originator () const
 
virtual void set_originator (ulonglong originator)
 
virtual Object_id client_collation_id () const
 
virtual void set_client_collation_id (Object_id client_collation_id)
 
virtual Object_id connection_collation_id () const
 
virtual void set_connection_collation_id (Object_id connection_collation_id)
 
virtual Object_id schema_collation_id () const
 
virtual void set_schema_collation_id (Object_id schema_collation_id)
 
virtual Entity_object_implimpl ()
 
virtual const Entity_object_implimpl () const
 
virtual Object_id id () const
 The unique dictionary object id. More...
 
virtual bool is_persistent () const
 Is dictionary object persistent in dictionary tables ? More...
 
virtual const String_typename () const
 
virtual void set_name (const String_type &name)
 
- 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::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
 
virtual ~Event ()
 

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
 Allocate a new object graph and invoke the copy contructor for each object. 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
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

◆ Event_impl() [1/2]

dd::Event_impl::Event_impl ( )

◆ Event_impl() [2/2]

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

◆ ~Event_impl()

virtual dd::Event_impl::~Event_impl ( )
inlinevirtual

Member Function Documentation

◆ client_collation_id()

virtual Object_id dd::Event_impl::client_collation_id ( ) const
inlinevirtual

Implements dd::Event.

◆ clone()

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

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

Only used in unit testing.

Returns
pointer to dynamically allocated copy

Implements dd::Event.

◆ comment()

virtual const String_type& dd::Event_impl::comment ( ) const
inlinevirtual

Implements dd::Event.

◆ connection_collation_id()

virtual Object_id dd::Event_impl::connection_collation_id ( ) const
inlinevirtual

Implements dd::Event.

◆ created()

virtual ulonglong dd::Event_impl::created ( bool  convert_time) const
inlinevirtual

Implements dd::Event.

◆ debug_print()

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

Implements dd::Weak_object.

◆ definer_host()

virtual const String_type& dd::Event_impl::definer_host ( ) const
inlinevirtual

Implements dd::Event.

◆ definer_user()

virtual const String_type& dd::Event_impl::definer_user ( ) const
inlinevirtual

Implements dd::Event.

◆ definition()

virtual const String_type& dd::Event_impl::definition ( ) const
inlinevirtual

Implements dd::Event.

◆ definition_utf8()

virtual const String_type& dd::Event_impl::definition_utf8 ( ) const
inlinevirtual

Implements dd::Event.

◆ ends()

virtual my_time_t dd::Event_impl::ends ( ) const
inlinevirtual

Implements dd::Event.

◆ event_status()

virtual enum_event_status dd::Event_impl::event_status ( ) const
inlinevirtual

Implements dd::Event.

◆ execute_at()

virtual my_time_t dd::Event_impl::execute_at ( ) const
inlinevirtual

Implements dd::Event.

◆ id()

virtual Object_id dd::Event_impl::id ( ) const
inlinevirtual

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

virtual Entity_object_impl* dd::Event_impl::impl ( )
inlinevirtual

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

virtual const Entity_object_impl* dd::Event_impl::impl ( ) const
inlinevirtual

Reimplemented from dd::Entity_object_impl.

◆ interval_field()

virtual enum_interval_field dd::Event_impl::interval_field ( ) const
inlinevirtual

Implements dd::Event.

◆ interval_value()

virtual uint dd::Event_impl::interval_value ( ) const
inlinevirtual

Implements dd::Event.

◆ is_ends_null()

virtual bool dd::Event_impl::is_ends_null ( ) const
inlinevirtual

Implements dd::Event.

◆ is_event_status_null()

virtual bool dd::Event_impl::is_event_status_null ( ) const
inlinevirtual

Implements dd::Event.

◆ is_execute_at_null()

virtual bool dd::Event_impl::is_execute_at_null ( ) const
inlinevirtual

Implements dd::Event.

◆ is_interval_field_null()

virtual bool dd::Event_impl::is_interval_field_null ( ) const
inlinevirtual

Implements dd::Event.

◆ is_interval_value_null()

virtual bool dd::Event_impl::is_interval_value_null ( ) const
inlinevirtual

Implements dd::Event.

◆ is_last_executed_null()

virtual bool dd::Event_impl::is_last_executed_null ( ) const
inlinevirtual

Implements dd::Event.

◆ is_persistent()

virtual bool dd::Event_impl::is_persistent ( ) const
inlinevirtual

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ is_starts_null()

virtual bool dd::Event_impl::is_starts_null ( ) const
inlinevirtual

Implements dd::Event.

◆ last_altered()

virtual ulonglong dd::Event_impl::last_altered ( bool  convert_time) const
inlinevirtual

Implements dd::Event.

◆ last_executed()

virtual my_time_t dd::Event_impl::last_executed ( ) const
inlinevirtual

Implements dd::Event.

◆ name()

virtual const String_type& dd::Event_impl::name ( ) const
inlinevirtual

Reimplemented from dd::Entity_object_impl.

◆ object_table()

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

Implements dd::Weak_object_impl.

◆ on_completion()

virtual enum_on_completion dd::Event_impl::on_completion ( ) const
inlinevirtual

Implements dd::Event.

◆ originator()

virtual ulonglong dd::Event_impl::originator ( ) const
inlinevirtual

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

Implements dd::Weak_object_impl.

◆ schema_collation_id()

virtual Object_id dd::Event_impl::schema_collation_id ( ) const
inlinevirtual

Implements dd::Event.

◆ schema_id()

virtual Object_id dd::Event_impl::schema_id ( ) const
inlinevirtual

Implements dd::Event.

◆ set_client_collation_id()

virtual void dd::Event_impl::set_client_collation_id ( Object_id  client_collation_id)
inlinevirtual

Implements dd::Event.

◆ set_comment()

virtual void dd::Event_impl::set_comment ( const String_type comment)
inlinevirtual

Implements dd::Event.

◆ set_connection_collation_id()

virtual void dd::Event_impl::set_connection_collation_id ( Object_id  connection_collation_id)
inlinevirtual

Implements dd::Event.

◆ set_created()

virtual void dd::Event_impl::set_created ( ulonglong  created)
inlinevirtual

Implements dd::Event.

◆ set_definer()

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

Implements dd::Event.

◆ set_definition()

virtual void dd::Event_impl::set_definition ( const String_type definition)
inlinevirtual

Implements dd::Event.

◆ set_definition_utf8()

virtual void dd::Event_impl::set_definition_utf8 ( const String_type definition_utf8)
inlinevirtual

Implements dd::Event.

◆ set_ends()

virtual void dd::Event_impl::set_ends ( my_time_t  ends)
inlinevirtual

Implements dd::Event.

◆ set_ends_null()

virtual void dd::Event_impl::set_ends_null ( bool  is_null)
inlinevirtual

Implements dd::Event.

◆ set_event_status()

virtual void dd::Event_impl::set_event_status ( enum_event_status  event_status)
inlinevirtual

Implements dd::Event.

◆ set_event_status_null()

virtual void dd::Event_impl::set_event_status_null ( bool  is_null)
inlinevirtual

Implements dd::Event.

◆ set_execute_at()

virtual void dd::Event_impl::set_execute_at ( my_time_t  execute_at)
inlinevirtual

Implements dd::Event.

◆ set_execute_at_null()

virtual void dd::Event_impl::set_execute_at_null ( bool  is_null)
inlinevirtual

Implements dd::Event.

◆ set_interval_field()

virtual void dd::Event_impl::set_interval_field ( enum_interval_field  interval_field)
inlinevirtual

Implements dd::Event.

◆ set_interval_field_null()

virtual void dd::Event_impl::set_interval_field_null ( bool  is_null)
inlinevirtual

Implements dd::Event.

◆ set_interval_value()

virtual void dd::Event_impl::set_interval_value ( uint  interval_value)
inlinevirtual

Implements dd::Event.

◆ set_interval_value_null()

virtual void dd::Event_impl::set_interval_value_null ( bool  is_null)
inlinevirtual

Implements dd::Event.

◆ set_last_altered()

virtual void dd::Event_impl::set_last_altered ( ulonglong  last_altered)
inlinevirtual

Implements dd::Event.

◆ set_last_executed()

virtual void dd::Event_impl::set_last_executed ( my_time_t  last_executed)
inlinevirtual

Implements dd::Event.

◆ set_last_executed_null()

virtual void dd::Event_impl::set_last_executed_null ( bool  is_null)
inlinevirtual

Implements dd::Event.

◆ set_name()

virtual void dd::Event_impl::set_name ( const String_type name)
inlinevirtual

Reimplemented from dd::Entity_object_impl.

◆ set_on_completion()

virtual void dd::Event_impl::set_on_completion ( enum_on_completion  on_completion)
inlinevirtual

Implements dd::Event.

◆ set_originator()

virtual void dd::Event_impl::set_originator ( ulonglong  originator)
inlinevirtual

Implements dd::Event.

◆ set_schema_collation_id()

virtual void dd::Event_impl::set_schema_collation_id ( Object_id  schema_collation_id)
inlinevirtual

Implements dd::Event.

◆ set_schema_id()

virtual void dd::Event_impl::set_schema_id ( Object_id  schema_id)
inlinevirtual

Implements dd::Event.

◆ set_sql_mode()

virtual void dd::Event_impl::set_sql_mode ( ulonglong  sm)
inlinevirtual

Implements dd::Event.

◆ set_starts()

virtual void dd::Event_impl::set_starts ( my_time_t  starts)
inlinevirtual

Implements dd::Event.

◆ set_starts_null()

virtual void dd::Event_impl::set_starts_null ( bool  is_null)
inlinevirtual

Implements dd::Event.

◆ set_time_zone()

virtual void dd::Event_impl::set_time_zone ( const String_type time_zone)
inlinevirtual

Implements dd::Event.

◆ sql_mode()

virtual ulonglong dd::Event_impl::sql_mode ( ) const
inlinevirtual

Implements dd::Event.

◆ starts()

virtual my_time_t dd::Event_impl::starts ( ) const
inlinevirtual

Implements dd::Event.

◆ store_attributes()

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

Implements dd::Weak_object_impl.

◆ time_zone()

virtual const String_type& dd::Event_impl::time_zone ( ) const
inlinevirtual

Implements dd::Event.

◆ validate()

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

Implements dd::Weak_object_impl.

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: