MySQL  8.0.19
Source Code Documentation
dd::Routine_impl Class Reference

#include <routine_impl.h>

Inheritance diagram for dd::Routine_impl:
dd::Entity_object_impl dd::Routine dd::Entity_object dd::Weak_object_impl dd::Entity_object dd::Weak_object dd::Weak_object dd::Weak_object dd::Function_impl dd::Procedure_impl

Public Member Functions

 Routine_impl ()
 
virtual ~Routine_impl ()
 
virtual const Object_tableobject_table () const
 
virtual bool validate () const
 
virtual bool restore_children (Open_dictionary_tables_ctx *otx)
 
virtual bool store_children (Open_dictionary_tables_ctx *otx)
 
virtual bool drop_children (Open_dictionary_tables_ctx *otx) 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 enum_routine_type type () const
 
virtual void set_type (enum_routine_type routine_type)
 
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 const String_typeparameter_str () const
 
virtual void set_parameter_str (const String_type &parameter_str)
 
virtual bool is_deterministic () const
 
virtual void set_deterministic (bool deterministic)
 
virtual enum_sql_data_access sql_data_access () const
 
virtual void set_sql_data_access (enum_sql_data_access sda)
 
virtual View::enum_security_type security_type () const
 
virtual void set_security_type (View::enum_security_type security_type)
 
virtual ulonglong sql_mode () const
 
virtual void set_sql_mode (ulonglong sm)
 
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 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 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 const String_typecomment () const
 
virtual void set_comment (const String_type &comment)
 
virtual Parameteradd_parameter ()
 
virtual const Parameter_collectionparameters () const
 
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...
 
- Public Member Functions inherited from dd::Routine
virtual bool update_id_key (Id_key *key) const
 
virtual bool update_name_key (Name_key *key) const
 
virtual bool update_routine_name_key (Name_key *key, Object_id schema_id, const String_type &name) const =0
 
virtual bool update_aux_key (Aux_key *) const
 
virtual ~Routine ()
 
virtual Routineclone () const =0
 Allocate a new object graph and invoke the copy contructor for each object. More...
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
- Static Public Member Functions inherited from dd::Routine
static bool update_id_key (Id_key *key, Object_id id)
 
static void create_mdl_key (enum_routine_type type, const String_type &schema_name, const String_type &name, MDL_key *key)
 
static const CHARSET_INFOname_collation ()
 

Protected Member Functions

 Routine_impl (const Routine_impl &src)
 
- 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
 

Private Attributes

enum_routine_type m_routine_type
 
enum_sql_data_access m_sql_data_access
 
View::enum_security_type m_security_type
 
bool m_is_deterministic
 
ulonglong m_sql_mode
 
ulonglong m_created
 
ulonglong m_last_altered
 
String_type m_definition
 
String_type m_definition_utf8
 
String_type m_parameter_str
 
String_type m_definer_user
 
String_type m_definer_host
 
String_type m_comment
 
Parameter_collection m_parameters
 
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::Routine
enum  enum_routine_type { RT_FUNCTION = 1, RT_PROCEDURE }
 
enum  enum_sql_data_access { SDA_CONTAINS_SQL = 1, SDA_NO_SQL, SDA_READS_SQL_DATA, SDA_MODIFIES_SQL_DATA }
 
typedef Routine_impl Impl
 
typedef Routine Cache_partition
 
typedef tables::Routines DD_table
 
typedef Primary_id_key Id_key
 
typedef Routine_name_key Name_key
 
typedef Void_key Aux_key
 
typedef Collection< Parameter * > Parameter_collection
 

Constructor & Destructor Documentation

◆ Routine_impl() [1/2]

dd::Routine_impl::Routine_impl ( )

◆ ~Routine_impl()

dd::Routine_impl::~Routine_impl ( )
virtual

◆ Routine_impl() [2/2]

dd::Routine_impl::Routine_impl ( const Routine_impl src)
protected

Member Function Documentation

◆ add_parameter()

Parameter * dd::Routine_impl::add_parameter ( )
virtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ client_collation_id()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ comment()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ connection_collation_id()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ created()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ debug_print()

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

Implements dd::Weak_object.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ definer_host()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ definer_user()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ definition()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ definition_utf8()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ drop_children()

bool dd::Routine_impl::drop_children ( Open_dictionary_tables_ctx otx) const
virtual

Reimplemented from dd::Weak_object_impl.

◆ id()

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

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ impl() [1/2]

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

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ impl() [2/2]

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

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ is_deterministic()

virtual bool dd::Routine_impl::is_deterministic ( ) const
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ is_persistent()

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

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ last_altered()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ name()

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

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ object_table()

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

Implements dd::Weak_object_impl.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ parameter_str()

virtual const String_type& dd::Routine_impl::parameter_str ( ) const
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ parameters()

virtual const Parameter_collection& dd::Routine_impl::parameters ( ) const
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ register_tables()

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

◆ restore_attributes()

bool dd::Routine_impl::restore_attributes ( const Raw_record r)
virtual

Implements dd::Weak_object_impl.

Reimplemented in dd::Function_impl.

◆ restore_children()

bool dd::Routine_impl::restore_children ( Open_dictionary_tables_ctx otx)
virtual

Reimplemented from dd::Weak_object_impl.

◆ schema_collation_id()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ schema_id()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ security_type()

virtual View::enum_security_type dd::Routine_impl::security_type ( ) const
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_client_collation_id()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_comment()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_connection_collation_id()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_created()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_definer()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_definition()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_definition_utf8()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_deterministic()

virtual void dd::Routine_impl::set_deterministic ( bool  deterministic)
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_last_altered()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_name()

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

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_parameter_str()

virtual void dd::Routine_impl::set_parameter_str ( const String_type parameter_str)
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_schema_collation_id()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_schema_id()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_security_type()

virtual void dd::Routine_impl::set_security_type ( View::enum_security_type  security_type)
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_sql_data_access()

virtual void dd::Routine_impl::set_sql_data_access ( enum_sql_data_access  sda)
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_sql_mode()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ set_type()

virtual void dd::Routine_impl::set_type ( enum_routine_type  routine_type)
inlinevirtual

◆ sql_data_access()

virtual enum_sql_data_access dd::Routine_impl::sql_data_access ( ) const
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ sql_mode()

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

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ store_attributes()

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

Implements dd::Weak_object_impl.

Reimplemented in dd::Function_impl.

◆ store_children()

bool dd::Routine_impl::store_children ( Open_dictionary_tables_ctx otx)
virtual

Reimplemented from dd::Weak_object_impl.

◆ type()

virtual enum_routine_type dd::Routine_impl::type ( ) const
inlinevirtual

Implements dd::Routine.

Reimplemented in dd::Function_impl, and dd::Procedure_impl.

◆ validate()

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

Implements dd::Weak_object_impl.

Reimplemented in dd::Function_impl.

Member Data Documentation

◆ m_client_collation_id

Object_id dd::Routine_impl::m_client_collation_id
private

◆ m_comment

String_type dd::Routine_impl::m_comment
private

◆ m_connection_collation_id

Object_id dd::Routine_impl::m_connection_collation_id
private

◆ m_created

ulonglong dd::Routine_impl::m_created
private

◆ m_definer_host

String_type dd::Routine_impl::m_definer_host
private

◆ m_definer_user

String_type dd::Routine_impl::m_definer_user
private

◆ m_definition

String_type dd::Routine_impl::m_definition
private

◆ m_definition_utf8

String_type dd::Routine_impl::m_definition_utf8
private

◆ m_is_deterministic

bool dd::Routine_impl::m_is_deterministic
private

◆ m_last_altered

ulonglong dd::Routine_impl::m_last_altered
private

◆ m_parameter_str

String_type dd::Routine_impl::m_parameter_str
private

◆ m_parameters

Parameter_collection dd::Routine_impl::m_parameters
private

◆ m_routine_type

enum_routine_type dd::Routine_impl::m_routine_type
private

◆ m_schema_collation_id

Object_id dd::Routine_impl::m_schema_collation_id
private

◆ m_schema_id

Object_id dd::Routine_impl::m_schema_id
private

◆ m_security_type

View::enum_security_type dd::Routine_impl::m_security_type
private

◆ m_sql_data_access

enum_sql_data_access dd::Routine_impl::m_sql_data_access
private

◆ m_sql_mode

ulonglong dd::Routine_impl::m_sql_mode
private

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