MySQL  8.0.20
Source Code Documentation
dd::View_impl Class Reference

#include <view_impl.h>

Inheritance diagram for dd::View_impl:
dd::Abstract_table_impl dd::View dd::Entity_object_impl dd::Abstract_table dd::Abstract_table dd::Entity_object dd::Weak_object_impl dd::Entity_object dd::Entity_object dd::Weak_object dd::Weak_object dd::Weak_object dd::Weak_object

Public Member Functions

 View_impl ()
 
virtual ~View_impl ()
 
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 void remove_children ()
 Clear View columns, View_tables and View_routines collections. More...
 
virtual bool restore_attributes (const Raw_record &r)
 
virtual bool store_attributes (Raw_record *r)
 
virtual void debug_print (String_type &outb) const
 
virtual enum_table_type type () const
 
virtual void set_system_view (bool system_view)
 
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 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 enum_check_option check_option () const
 
virtual void set_check_option (enum_check_option check_option)
 
virtual bool is_updatable () const
 
virtual void set_updatable (bool updatable)
 
virtual enum_algorithm algorithm () const
 
virtual void set_algorithm (enum_algorithm algorithm)
 
virtual enum_security_type security_type () const
 
virtual void set_security_type (enum_security_type security_type)
 
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 Propertiescolumn_names () const
 
virtual Propertiescolumn_names ()
 
virtual View_tableadd_table ()
 
virtual const View_tablestables () const
 
virtual View_routineadd_routine ()
 
virtual const View_routinesroutines () 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)
 
virtual Object_id schema_id () const
 
virtual void set_schema_id (Object_id schema_id)
 
virtual uint mysql_version_id () const
 
virtual const Propertiesoptions () const
 
virtual Propertiesoptions ()
 
virtual bool set_options (const Properties &options)
 
virtual bool set_options (const String_type &options_raw)
 
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 Columnadd_column ()
 
virtual const Column_collectioncolumns () const
 
virtual Column_collectioncolumns ()
 
const Columnget_column (const String_type &name) const
 
Columnget_column (const String_type &name)
 
virtual enum_hidden_type hidden () const
 
virtual void set_hidden (enum_hidden_type hidden)
 
- Public Member Functions inherited from dd::Abstract_table_impl
virtual const Object_tableobject_table () const
 
virtual void set_hidden (enum_hidden_type hidden)
 
const Columnget_column (Object_id column_id) const
 
Columnget_column (Object_id column_id)
 
Columnget_column (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::Abstract_table
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 ~Abstract_table ()
 
- Public Member Functions inherited from dd::View
virtual ~View ()
 
bool is_system_view () const
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
- Static Public Member Functions inherited from dd::Abstract_table_impl
static void register_tables (Open_dictionary_tables_ctx *otx)
 
- Static Public Member Functions inherited from dd::Abstract_table
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)
 

Private Member Functions

 View_impl (const View_impl &src)
 
View_implclone () const
 Allocate a new object graph and invoke the copy contructor for each object. More...
 

Private Attributes

enum_table_type m_type
 
bool m_is_updatable
 
enum_check_option m_check_option
 
enum_algorithm m_algorithm
 
enum_security_type m_security_type
 
String_type m_definition
 
String_type m_definition_utf8
 
String_type m_definer_user
 
String_type m_definer_host
 
Properties_impl m_column_names
 
View_tables m_tables
 
View_routines m_routines
 
Object_id m_client_collation_id
 
Object_id m_connection_collation_id
 

Additional Inherited Members

- Public Types inherited from dd::Abstract_table
enum  enum_hidden_type { HT_VISIBLE = 1, HT_HIDDEN_SYSTEM, HT_HIDDEN_SE, HT_HIDDEN_DDL }
 Enumeration type which indicates whether the table is hidden, and if yes then which type of hidden table it is. More...
 
typedef Abstract_table_impl Impl
 
typedef Abstract_table Cache_partition
 
typedef tables::Tables DD_table
 
typedef Primary_id_key Id_key
 
typedef Item_name_key Name_key
 
typedef Se_private_id_key Aux_key
 
typedef Collection< Column * > Column_collection
 
- Public Types inherited from dd::View
enum  enum_check_option { CO_NONE = 1, CO_LOCAL, CO_CASCADED }
 
enum  enum_algorithm { VA_UNDEFINED = 1, VA_TEMPORARY_TABLE, VA_MERGE }
 
enum  enum_security_type { ST_DEFAULT = 1, ST_INVOKER, ST_DEFINER }
 
typedef Collection< View_table * > View_tables
 
typedef Collection< View_routine * > View_routines
 
typedef View_impl Impl
 
- Protected Member Functions inherited from dd::Abstract_table_impl
void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const
 
bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val)
 
 Abstract_table_impl ()
 
virtual ~Abstract_table_impl ()
 
 Abstract_table_impl (const Abstract_table_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
 

Constructor & Destructor Documentation

◆ View_impl() [1/2]

dd::View_impl::View_impl ( )

◆ ~View_impl()

virtual dd::View_impl::~View_impl ( )
inlinevirtual

◆ View_impl() [2/2]

dd::View_impl::View_impl ( const View_impl src)
private

Member Function Documentation

◆ add_column()

virtual Column* dd::View_impl::add_column ( )
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ add_routine()

View_routine * dd::View_impl::add_routine ( )
virtual

Implements dd::View.

◆ add_table()

View_table * dd::View_impl::add_table ( )
virtual

Implements dd::View.

◆ algorithm()

virtual enum_algorithm dd::View_impl::algorithm ( ) const
inlinevirtual

Implements dd::View.

◆ check_option()

virtual enum_check_option dd::View_impl::check_option ( ) const
inlinevirtual

Implements dd::View.

◆ client_collation_id()

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

Implements dd::View.

◆ clone()

View_impl* dd::View_impl::clone ( ) const
inlineprivatevirtual

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

Returns
pointer to dynamically allocated copy

Implements dd::View.

◆ column_names() [1/2]

virtual const Properties& dd::View_impl::column_names ( ) const
inlinevirtual

Implements dd::View.

◆ column_names() [2/2]

virtual Properties& dd::View_impl::column_names ( )
inlinevirtual

Implements dd::View.

◆ columns() [1/2]

virtual const Column_collection& dd::View_impl::columns ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ columns() [2/2]

virtual Column_collection* dd::View_impl::columns ( )
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ connection_collation_id()

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

Implements dd::View.

◆ created()

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

Reimplemented from dd::Abstract_table_impl.

◆ debug_print()

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

Reimplemented from dd::Abstract_table_impl.

◆ definer_host()

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

Implements dd::View.

◆ definer_user()

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

Implements dd::View.

◆ definition()

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

Implements dd::View.

◆ definition_utf8()

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

Implements dd::View.

◆ drop_children()

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

Reimplemented from dd::Abstract_table_impl.

◆ get_column() [1/2]

const Column* dd::View_impl::get_column ( const String_type name) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ get_column() [2/2]

Column* dd::View_impl::get_column ( const String_type name)
inline

◆ hidden()

virtual enum_hidden_type dd::View_impl::hidden ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ id()

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

The unique dictionary object id.

Reimplemented from dd::Abstract_table_impl.

◆ impl() [1/2]

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

Reimplemented from dd::Abstract_table_impl.

◆ impl() [2/2]

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

Reimplemented from dd::Abstract_table_impl.

◆ is_persistent()

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

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Abstract_table_impl.

◆ is_updatable()

virtual bool dd::View_impl::is_updatable ( ) const
inlinevirtual

Implements dd::View.

◆ last_altered()

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

Reimplemented from dd::Abstract_table_impl.

◆ mysql_version_id()

virtual uint dd::View_impl::mysql_version_id ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ name()

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

Reimplemented from dd::Abstract_table_impl.

◆ options() [1/2]

virtual const Properties& dd::View_impl::options ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ options() [2/2]

virtual Properties& dd::View_impl::options ( )
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ register_tables()

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

◆ remove_children()

void dd::View_impl::remove_children ( )
virtual

Clear View columns, View_tables and View_routines collections.

Implements dd::View.

◆ restore_attributes()

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

Reimplemented from dd::Abstract_table_impl.

◆ restore_children()

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

Reimplemented from dd::Abstract_table_impl.

◆ routines()

virtual const View_routines& dd::View_impl::routines ( ) const
inlinevirtual

Implements dd::View.

◆ schema_id()

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

Reimplemented from dd::Abstract_table_impl.

◆ security_type()

virtual enum_security_type dd::View_impl::security_type ( ) const
inlinevirtual

Implements dd::View.

◆ set_algorithm()

virtual void dd::View_impl::set_algorithm ( enum_algorithm  algorithm)
inlinevirtual

Implements dd::View.

◆ set_check_option()

virtual void dd::View_impl::set_check_option ( enum_check_option  check_option)
inlinevirtual

Implements dd::View.

◆ set_client_collation_id()

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

Implements dd::View.

◆ set_connection_collation_id()

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

Implements dd::View.

◆ set_created()

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

Reimplemented from dd::Abstract_table_impl.

◆ set_definer()

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

Implements dd::View.

◆ set_definition()

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

Implements dd::View.

◆ set_definition_utf8()

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

Implements dd::View.

◆ set_hidden()

virtual void dd::View_impl::set_hidden ( enum_hidden_type  hidden)
inlinevirtual

Implements dd::Abstract_table.

◆ set_last_altered()

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

Reimplemented from dd::Abstract_table_impl.

◆ set_name()

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

Reimplemented from dd::Abstract_table_impl.

◆ set_options() [1/2]

virtual bool dd::View_impl::set_options ( const Properties options)
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_options() [2/2]

virtual bool dd::View_impl::set_options ( const String_type options_raw)
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_schema_id()

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

Reimplemented from dd::Abstract_table_impl.

◆ set_security_type()

virtual void dd::View_impl::set_security_type ( enum_security_type  security_type)
inlinevirtual

Implements dd::View.

◆ set_system_view()

virtual void dd::View_impl::set_system_view ( bool  system_view)
inlinevirtual

Implements dd::View.

◆ set_updatable()

virtual void dd::View_impl::set_updatable ( bool  updatable)
inlinevirtual

Implements dd::View.

◆ store_attributes()

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

Reimplemented from dd::Abstract_table_impl.

◆ store_children()

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

Reimplemented from dd::Abstract_table_impl.

◆ tables()

virtual const View_tables& dd::View_impl::tables ( ) const
inlinevirtual

Implements dd::View.

◆ type()

virtual enum_table_type dd::View_impl::type ( ) const
inlinevirtual

Implements dd::Abstract_table.

◆ validate()

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

Reimplemented from dd::Abstract_table_impl.

Member Data Documentation

◆ m_algorithm

enum_algorithm dd::View_impl::m_algorithm
private

◆ m_check_option

enum_check_option dd::View_impl::m_check_option
private

◆ m_client_collation_id

Object_id dd::View_impl::m_client_collation_id
private

◆ m_column_names

Properties_impl dd::View_impl::m_column_names
private

◆ m_connection_collation_id

Object_id dd::View_impl::m_connection_collation_id
private

◆ m_definer_host

String_type dd::View_impl::m_definer_host
private

◆ m_definer_user

String_type dd::View_impl::m_definer_user
private

◆ m_definition

String_type dd::View_impl::m_definition
private

◆ m_definition_utf8

String_type dd::View_impl::m_definition_utf8
private

◆ m_is_updatable

bool dd::View_impl::m_is_updatable
private

◆ m_routines

View_routines dd::View_impl::m_routines
private

◆ m_security_type

enum_security_type dd::View_impl::m_security_type
private

◆ m_tables

View_tables dd::View_impl::m_tables
private

◆ m_type

enum_table_type dd::View_impl::m_type
private

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