MySQL 26.7.0
Source Code Documentation
dd::View_table_impl Class Reference

#include <view_table_impl.h>

Inheritance diagram for dd::View_table_impl:
[legend]

Public Member Functions

 View_table_impl ()
 
 View_table_impl (View_impl *view)
 
 View_table_impl (const View_table_impl &src, View_impl *parent)
 
 ~View_table_impl () override=default
 
const Object_table & object_table () const override
 
bool validate () const override
 
bool store_attributes (Raw_record *r) override
 
bool restore_attributes (const Raw_record &r) override
 
void debug_print (String_type &outb) const override
 
void set_ordinal_position (uint)
 
virtual uint ordinal_position () const
 
const String_type & table_catalog () const override
 
void set_table_catalog (const String_type &table_catalog) override
 
const String_type & table_schema () const override
 
void set_table_schema (const String_type &table_schema) override
 
const String_type & table_name () const override
 
void set_table_name (const String_type &table_name) override
 
const View & view () const override
 
View & view () override
 
Object_key * create_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_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::Weak_object
 Weak_object ()=default
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()=default
 
- Public Member Functions inherited from dd::View_table
 ~View_table () override=default
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
static View_table_impl * restore_item (View_impl *view)
 
static View_table_impl * clone (const View_table_impl &other, View_impl *view)
 

Private Attributes

String_type m_table_catalog
 
String_type m_table_schema
 
String_type m_table_name
 
View_impl * m_view
 

Additional Inherited Members

- Public Types inherited from dd::View_table
typedef View_table_impl Impl
 
typedef tables::View_table_usage DD_table
 
- Protected Member Functions inherited from dd::Weak_object_impl_< use_pfs >
virtual void set_primary_key_value (const Raw_new_record &)
 
virtual void fix_has_new_primary_key ()
 
bool check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const
 

Constructor & Destructor Documentation

◆ View_table_impl() [1/3]

dd::View_table_impl::View_table_impl ( )
default

◆ View_table_impl() [2/3]

dd::View_table_impl::View_table_impl ( View_impl *  view)

◆ View_table_impl() [3/3]

dd::View_table_impl::View_table_impl ( const View_table_impl &  src,
View_impl *  parent 
)

◆ ~View_table_impl()

dd::View_table_impl::~View_table_impl ( )
overridedefault

Member Function Documentation

◆ clone()

static View_table_impl * dd::View_table_impl::clone ( const View_table_impl &  other,
View_impl *  view 
)
inlinestatic

◆ create_primary_key()

Object_key * dd::View_table_impl::create_primary_key ( ) const
overridevirtual

◆ debug_print()

void dd::View_table_impl::debug_print ( String_type &  outb) const
overridevirtual

Implements dd::Weak_object.

◆ has_new_primary_key()

bool dd::View_table_impl::has_new_primary_key ( ) const
overridevirtual

Indicates that object is guaranteed to have primary key value which doesn't exist in database (e.g.

because it only will be generated using auto-increment at store() time). So it is ok for store() method to skip lookup of existing object with the same primary key and simply try to insert new object into the table.

Implements dd::Weak_object_impl_< use_pfs >.

◆ object_table()

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

◆ ordinal_position()

virtual uint dd::View_table_impl::ordinal_position ( ) const
inlinevirtual

◆ register_tables()

void dd::View_table_impl::register_tables ( Open_dictionary_tables_ctx *  otx)
static

◆ restore_attributes()

bool dd::View_table_impl::restore_attributes ( const Raw_record &  r)
overridevirtual

◆ restore_item()

static View_table_impl * dd::View_table_impl::restore_item ( View_impl *  view)
inlinestatic

◆ set_ordinal_position()

void dd::View_table_impl::set_ordinal_position ( uint  )
inline

◆ set_table_catalog()

void dd::View_table_impl::set_table_catalog ( const String_type &  table_catalog)
inlineoverridevirtual

Implements dd::View_table.

◆ set_table_name()

void dd::View_table_impl::set_table_name ( const String_type &  table_name)
inlineoverridevirtual

Implements dd::View_table.

◆ set_table_schema()

void dd::View_table_impl::set_table_schema ( const String_type &  table_schema)
inlineoverridevirtual

Implements dd::View_table.

◆ store_attributes()

bool dd::View_table_impl::store_attributes ( Raw_record *  r)
overridevirtual

◆ table_catalog()

const String_type & dd::View_table_impl::table_catalog ( ) const
inlineoverridevirtual

Implements dd::View_table.

◆ table_name()

const String_type & dd::View_table_impl::table_name ( ) const
inlineoverridevirtual

Implements dd::View_table.

◆ table_schema()

const String_type & dd::View_table_impl::table_schema ( ) const
inlineoverridevirtual

Implements dd::View_table.

◆ validate()

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

◆ view() [1/2]

const View & dd::View_table_impl::view ( ) const
overridevirtual

Implements dd::View_table.

◆ view() [2/2]

View & dd::View_table_impl::view ( )
overridevirtual

Implements dd::View_table.

Member Data Documentation

◆ m_table_catalog

String_type dd::View_table_impl::m_table_catalog
private

◆ m_table_name

String_type dd::View_table_impl::m_table_name
private

◆ m_table_schema

String_type dd::View_table_impl::m_table_schema
private

◆ m_view

View_impl* dd::View_table_impl::m_view
private

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