MySQL  8.0.20
Source Code Documentation
dd::Abstract_table_impl Class Reference

#include <abstract_table_impl.h>

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

Public Member Functions

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 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 enum_hidden_type hidden () const
 
virtual void set_hidden (enum_hidden_type hidden)
 
virtual Columnadd_column ()
 
virtual const Column_collectioncolumns () const
 
virtual Column_collectioncolumns ()
 
const Columnget_column (Object_id column_id) const
 
Columnget_column (Object_id column_id)
 
const Columnget_column (const String_type &name) const
 
Columnget_column (const String_type &name)
 
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::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 ()
 
virtual enum_table_type type () const =0
 
virtual void set_hidden (enum_hidden_type hidden)=0
 
virtual Abstract_tableclone () 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::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)
 

Protected Member Functions

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
 

Private Attributes

uint m_mysql_version_id
 
ulonglong m_created
 
ulonglong m_last_altered
 
enum_hidden_type m_hidden
 
Properties_impl m_options
 
Column_collection m_columns
 
Object_id m_schema_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
 

Constructor & Destructor Documentation

◆ Abstract_table_impl() [1/2]

dd::Abstract_table_impl::Abstract_table_impl ( )
protected

◆ ~Abstract_table_impl()

virtual dd::Abstract_table_impl::~Abstract_table_impl ( )
inlineprotectedvirtual

◆ Abstract_table_impl() [2/2]

dd::Abstract_table_impl::Abstract_table_impl ( const Abstract_table_impl src)
protected

Member Function Documentation

◆ add_column()

Column * dd::Abstract_table_impl::add_column ( )
virtual

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ columns() [1/2]

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ columns() [2/2]

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ created()

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ debug_print()

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

Implements dd::Weak_object.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ deserialize()

bool dd::Abstract_table_impl::deserialize ( Sdi_rcontext rctx,
const RJ_Value val 
)
protected

◆ drop_children()

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

Reimplemented from dd::Weak_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ get_column() [1/4]

const Column * dd::Abstract_table_impl::get_column ( Object_id  column_id) const

◆ get_column() [2/4]

Column * dd::Abstract_table_impl::get_column ( Object_id  column_id)

◆ get_column() [3/4]

const Column * dd::Abstract_table_impl::get_column ( const String_type name) const
virtual

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ get_column() [4/4]

Column * dd::Abstract_table_impl::get_column ( const String_type name)

◆ hidden()

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ id()

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

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ impl() [1/2]

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

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ impl() [2/2]

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

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ is_persistent()

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

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ last_altered()

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ mysql_version_id()

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ name()

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

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ object_table()

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

Implements dd::Weak_object_impl.

◆ options() [1/2]

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ options() [2/2]

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ register_tables()

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

◆ restore_attributes()

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

Implements dd::Weak_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ restore_children()

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

Reimplemented from dd::Weak_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ schema_id()

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ serialize()

void dd::Abstract_table_impl::serialize ( Sdi_wcontext wctx,
Sdi_writer w 
) const
protected

◆ set_created()

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ set_hidden()

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

◆ set_last_altered()

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ set_name()

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

Reimplemented from dd::Entity_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ set_options() [1/2]

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ set_options() [2/2]

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ set_schema_id()

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

Implements dd::Abstract_table.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ store_attributes()

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

Implements dd::Weak_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ store_children()

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

Reimplemented from dd::Weak_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

◆ validate()

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

Implements dd::Weak_object_impl.

Reimplemented in dd::Table_impl, and dd::View_impl.

Member Data Documentation

◆ m_columns

Column_collection dd::Abstract_table_impl::m_columns
private

◆ m_created

ulonglong dd::Abstract_table_impl::m_created
private

◆ m_hidden

enum_hidden_type dd::Abstract_table_impl::m_hidden
private

◆ m_last_altered

ulonglong dd::Abstract_table_impl::m_last_altered
private

◆ m_mysql_version_id

uint dd::Abstract_table_impl::m_mysql_version_id
private

◆ m_options

Properties_impl dd::Abstract_table_impl::m_options
private

◆ m_schema_id

Object_id dd::Abstract_table_impl::m_schema_id
private

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