MySQL 9.0.0
Source Code Documentation
dd::Partition_value_impl Class Reference

#include <partition_value_impl.h>

Inheritance diagram for dd::Partition_value_impl:
[legend]

Public Member Functions

 Partition_value_impl ()
 
 Partition_value_impl (Partition_impl *partition)
 
 Partition_value_impl (const Partition_value_impl &src, Partition_impl *parent)
 
 ~Partition_value_impl () override=default
 
const Object_tableobject_table () const override
 
bool validate () const override
 
bool store_attributes (Raw_record *r) override
 
bool restore_attributes (const Raw_record &r) override
 
void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const override
 Converts *this into json. More...
 
bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val) override
 Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided. More...
 
void set_ordinal_position (uint)
 
virtual uint ordinal_position () const
 
const Partitionpartition () const override
 
Partitionpartition () override
 
uint list_num () const override
 
void set_list_num (uint list_num) override
 
uint column_num () const override
 
void set_column_num (uint column_num) override
 
const String_typevalue_utf8 () const override
 
void set_value_utf8 (const String_type &value) override
 
bool max_value () const override
 
void set_max_value (bool max_value) override
 
bool is_value_null () const override
 
void set_value_null (bool is_null) override
 
void debug_print (String_type &outb) const override
 
Object_keycreate_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::Partition_value
 ~Partition_value () override=default
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
static Partition_value_implrestore_item (Partition_impl *partition)
 
static Partition_value_implclone (const Partition_value_impl &other, Partition_impl *partition)
 

Private Attributes

bool m_max_value
 
bool m_null_value
 
uint m_list_num
 
uint m_column_num
 
String_type m_value_utf8
 
Partition_implm_partition
 

Additional Inherited Members

- Public Types inherited from dd::Partition_value
typedef Partition_value_impl Impl
 
typedef tables::Table_partition_values 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

◆ Partition_value_impl() [1/3]

dd::Partition_value_impl::Partition_value_impl ( )
inline

◆ Partition_value_impl() [2/3]

dd::Partition_value_impl::Partition_value_impl ( Partition_impl partition)
inline

◆ Partition_value_impl() [3/3]

dd::Partition_value_impl::Partition_value_impl ( const Partition_value_impl src,
Partition_impl parent 
)

◆ ~Partition_value_impl()

dd::Partition_value_impl::~Partition_value_impl ( )
overridedefault

Member Function Documentation

◆ clone()

static Partition_value_impl * dd::Partition_value_impl::clone ( const Partition_value_impl other,
Partition_impl partition 
)
inlinestatic

◆ column_num()

uint dd::Partition_value_impl::column_num ( ) const
inlineoverridevirtual

Implements dd::Partition_value.

◆ create_primary_key()

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

◆ debug_print()

void dd::Partition_value_impl::debug_print ( String_type outb) const
overridevirtual

Implements dd::Weak_object.

◆ deserialize()

bool dd::Partition_value_impl::deserialize ( Sdi_rcontext rctx,
const RJ_Value val 
)
overridevirtual

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::Partition_value.

◆ has_new_primary_key()

bool dd::Partition_value_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 >.

◆ is_value_null()

bool dd::Partition_value_impl::is_value_null ( ) const
inlineoverridevirtual

Implements dd::Partition_value.

◆ list_num()

uint dd::Partition_value_impl::list_num ( ) const
inlineoverridevirtual

Implements dd::Partition_value.

◆ max_value()

bool dd::Partition_value_impl::max_value ( ) const
inlineoverridevirtual

Implements dd::Partition_value.

◆ object_table()

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

◆ ordinal_position()

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

◆ partition() [1/2]

const Partition & dd::Partition_value_impl::partition ( ) const
overridevirtual

Implements dd::Partition_value.

◆ partition() [2/2]

Partition & dd::Partition_value_impl::partition ( )
overridevirtual

Implements dd::Partition_value.

◆ register_tables()

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

◆ restore_attributes()

bool dd::Partition_value_impl::restore_attributes ( const Raw_record r)
overridevirtual

◆ restore_item()

static Partition_value_impl * dd::Partition_value_impl::restore_item ( Partition_impl partition)
inlinestatic

◆ serialize()

void dd::Partition_value_impl::serialize ( Sdi_wcontext wctx,
Sdi_writer w 
) const
overridevirtual

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::Partition_value.

◆ set_column_num()

void dd::Partition_value_impl::set_column_num ( uint  column_num)
inlineoverridevirtual

Implements dd::Partition_value.

◆ set_list_num()

void dd::Partition_value_impl::set_list_num ( uint  list_num)
inlineoverridevirtual

Implements dd::Partition_value.

◆ set_max_value()

void dd::Partition_value_impl::set_max_value ( bool  max_value)
inlineoverridevirtual

Implements dd::Partition_value.

◆ set_ordinal_position()

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

◆ set_value_null()

void dd::Partition_value_impl::set_value_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Partition_value.

◆ set_value_utf8()

void dd::Partition_value_impl::set_value_utf8 ( const String_type value)
inlineoverridevirtual

Implements dd::Partition_value.

◆ store_attributes()

bool dd::Partition_value_impl::store_attributes ( Raw_record r)
overridevirtual

◆ validate()

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

◆ value_utf8()

const String_type & dd::Partition_value_impl::value_utf8 ( ) const
inlineoverridevirtual

Implements dd::Partition_value.

Member Data Documentation

◆ m_column_num

uint dd::Partition_value_impl::m_column_num
private

◆ m_list_num

uint dd::Partition_value_impl::m_list_num
private

◆ m_max_value

bool dd::Partition_value_impl::m_max_value
private

◆ m_null_value

bool dd::Partition_value_impl::m_null_value
private

◆ m_partition

Partition_impl* dd::Partition_value_impl::m_partition
private

◆ m_value_utf8

String_type dd::Partition_value_impl::m_value_utf8
private

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