MySQL  8.0.18
Source Code Documentation
dd::Tablespace_file_impl Class Reference

#include <tablespace_file_impl.h>

Inheritance diagram for dd::Tablespace_file_impl:
dd::Weak_object_impl dd::Tablespace_file dd::Weak_object dd::Weak_object

Public Member Functions

 Tablespace_file_impl ()
 
 Tablespace_file_impl (Tablespace_impl *tablespace)
 
 Tablespace_file_impl (const Tablespace_file_impl &src, Tablespace_impl *parent)
 
virtual ~Tablespace_file_impl ()
 
virtual const Object_tableobject_table () const
 
virtual bool store (Open_dictionary_tables_ctx *otx)
 Store the DD object into DD table. More...
 
virtual bool validate () const
 
virtual bool store_attributes (Raw_record *r)
 
virtual bool restore_attributes (const Raw_record &r)
 
void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const
 Converts *this into json. More...
 
bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val)
 Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided. More...
 
virtual void debug_print (String_type &outb) const
 
void set_ordinal_position (uint ordinal_position)
 
virtual uint ordinal_position () const
 
virtual const String_typefilename () const
 
virtual void set_filename (const String_type &filename)
 
virtual const Propertiesse_private_data () const
 
virtual Propertiesse_private_data ()
 
virtual bool set_se_private_data (const String_type &se_private_data_raw)
 
virtual const Tablespacetablespace () const
 
virtual Tablespacetablespace ()
 
virtual Object_keycreate_primary_key () const
 
virtual bool has_new_primary_key () const
 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
 Weak_object_impl ()
 
virtual ~Weak_object_impl ()
 
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 ()
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()
 
- Public Member Functions inherited from dd::Tablespace_file
virtual ~Tablespace_file ()
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
static Tablespace_file_implrestore_item (Tablespace_impl *ts)
 
static Tablespace_file_implclone (const Tablespace_file_impl &other, Tablespace_impl *ts)
 

Private Attributes

uint m_ordinal_position
 
String_type m_filename
 
Properties_impl m_se_private_data
 
Tablespace_implm_tablespace
 

Additional Inherited Members

- Public Types inherited from dd::Tablespace_file
typedef Tablespace_file_impl Impl
 
typedef tables::Tablespace_files DD_table
 
- Protected Member Functions inherited from dd::Weak_object_impl
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

◆ Tablespace_file_impl() [1/3]

dd::Tablespace_file_impl::Tablespace_file_impl ( )

◆ Tablespace_file_impl() [2/3]

dd::Tablespace_file_impl::Tablespace_file_impl ( Tablespace_impl tablespace)

◆ Tablespace_file_impl() [3/3]

dd::Tablespace_file_impl::Tablespace_file_impl ( const Tablespace_file_impl src,
Tablespace_impl parent 
)

◆ ~Tablespace_file_impl()

virtual dd::Tablespace_file_impl::~Tablespace_file_impl ( )
inlinevirtual

Member Function Documentation

◆ clone()

static Tablespace_file_impl* dd::Tablespace_file_impl::clone ( const Tablespace_file_impl other,
Tablespace_impl ts 
)
inlinestatic

◆ create_primary_key()

Object_key * dd::Tablespace_file_impl::create_primary_key ( ) const
virtual

Implements dd::Weak_object_impl.

◆ debug_print()

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

Implements dd::Weak_object.

◆ deserialize()

bool dd::Tablespace_file_impl::deserialize ( Sdi_rcontext rctx,
const RJ_Value val 
)
virtual

Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided.

Cross-references encountered within this object are tracked in sdictx, so that they can be updated when the entire object graph has been established.

Parameters
rctxstores book-keeping information for the deserialization process
valsubobject of rapidjson DOM containing json representation of this object

Implements dd::Tablespace_file.

◆ filename()

virtual const String_type& dd::Tablespace_file_impl::filename ( ) const
inlinevirtual

Implements dd::Tablespace_file.

◆ has_new_primary_key()

bool dd::Tablespace_file_impl::has_new_primary_key ( ) const
virtual

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.

◆ object_table()

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

Implements dd::Weak_object_impl.

◆ ordinal_position()

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

Implements dd::Tablespace_file.

◆ register_tables()

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

◆ restore_attributes()

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

Implements dd::Weak_object_impl.

◆ restore_item()

static Tablespace_file_impl* dd::Tablespace_file_impl::restore_item ( Tablespace_impl ts)
inlinestatic

◆ se_private_data() [1/2]

virtual const Properties& dd::Tablespace_file_impl::se_private_data ( ) const
inlinevirtual

Implements dd::Tablespace_file.

◆ se_private_data() [2/2]

virtual Properties& dd::Tablespace_file_impl::se_private_data ( )
inlinevirtual

Implements dd::Tablespace_file.

◆ serialize()

void dd::Tablespace_file_impl::serialize ( Sdi_wcontext wctx,
Sdi_writer w 
) const
virtual

Converts *this into json.

Converts all member variables that are to be included in the sdi into json by transforming them appropriately and passing them to the rapidjson writer provided.

Parameters
wctxopaque context for data needed by serialization
wrapidjson writer which will perform conversion to json

Implements dd::Tablespace_file.

◆ set_filename()

virtual void dd::Tablespace_file_impl::set_filename ( const String_type filename)
inlinevirtual

Implements dd::Tablespace_file.

◆ set_ordinal_position()

void dd::Tablespace_file_impl::set_ordinal_position ( uint  ordinal_position)
inline

◆ set_se_private_data()

virtual bool dd::Tablespace_file_impl::set_se_private_data ( const String_type se_private_data_raw)
inlinevirtual

Implements dd::Tablespace_file.

◆ store()

bool dd::Tablespace_file_impl::store ( Open_dictionary_tables_ctx otx)
virtual

Store the DD object into DD table.

Parameters
otx- DD transaction in use.
Returns
true - on failure and error is reported.
false - on success.

Reimplemented from dd::Weak_object_impl.

◆ store_attributes()

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

Implements dd::Weak_object_impl.

◆ tablespace() [1/2]

const Tablespace & dd::Tablespace_file_impl::tablespace ( ) const
virtual

Implements dd::Tablespace_file.

◆ tablespace() [2/2]

Tablespace & dd::Tablespace_file_impl::tablespace ( )
virtual

Implements dd::Tablespace_file.

◆ validate()

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

Implements dd::Weak_object_impl.

Member Data Documentation

◆ m_filename

String_type dd::Tablespace_file_impl::m_filename
private

◆ m_ordinal_position

uint dd::Tablespace_file_impl::m_ordinal_position
private

◆ m_se_private_data

Properties_impl dd::Tablespace_file_impl::m_se_private_data
private

◆ m_tablespace

Tablespace_impl* dd::Tablespace_file_impl::m_tablespace
private

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