MySQL 8.4.3
Source Code Documentation
dd::Parameter_impl Class Reference

#include <parameter_impl.h>

Inheritance diagram for dd::Parameter_impl:
[legend]

Public Member Functions

 Parameter_impl ()
 
 Parameter_impl (Routine_impl *routine)
 
 Parameter_impl (const Parameter_impl &src, Routine_impl *parent)
 
 ~Parameter_impl () override=default
 
const Object_tableobject_table () const override
 
bool validate () const override
 
bool restore_children (Open_dictionary_tables_ctx *otx) override
 
bool store_children (Open_dictionary_tables_ctx *otx) override
 
bool drop_children (Open_dictionary_tables_ctx *otx) 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 ordinal_position)
 
void set_name_null (bool is_null) override
 
bool is_name_null () const override
 
uint ordinal_position () const override
 
enum_parameter_mode mode () const override
 
void set_mode (enum_parameter_mode mode) override
 
void set_parameter_mode_null (bool is_null) override
 
bool is_parameter_mode_null () const override
 
enum_column_types data_type () const override
 
void set_data_type (enum_column_types type) override
 
const String_typedata_type_utf8 () const override
 
void set_data_type_utf8 (const String_type &data_type_utf8) override
 
bool is_zerofill () const override
 
void set_zerofill (bool zerofill) override
 
bool is_unsigned () const override
 
void set_unsigned (bool unsigned_flag) override
 
size_t char_length () const override
 
void set_char_length (size_t char_length) override
 
uint numeric_precision () const override
 
void set_numeric_precision (uint numeric_precision) override
 
virtual void set_numeric_precision_null (bool is_null)
 
virtual bool is_numeric_precision_null () const
 
uint numeric_scale () const override
 
void set_numeric_scale (uint numeric_scale) override
 
void set_numeric_scale_null (bool is_null) override
 
bool is_numeric_scale_null () const override
 
uint datetime_precision () const override
 
void set_datetime_precision (uint datetime_precision) override
 
virtual void set_datetime_precision_null (bool is_null)
 
virtual bool is_datetime_precision_null () const
 
Object_id collation_id () const override
 
void set_collation_id (Object_id collation_id) override
 
const Propertiesoptions () const override
 
Propertiesoptions () override
 
bool set_options (const String_type &options_raw) override
 
const Routineroutine () const override
 
Routineroutine () override
 
Parameter_type_elementadd_element () override
 
const Parameter_type_element_collectionelements () const override
 
size_t elements_count () const override
 
Entity_object_implimpl () override
 
const Entity_object_implimpl () const override
 
Object_id id () const override
 The unique dictionary object id. More...
 
bool is_persistent () const override
 Is dictionary object persistent in dictionary tables ? More...
 
const String_typename () const override
 
void set_name (const String_type &name) override
 
- Public Member Functions inherited from dd::Entity_object_impl
 Entity_object_impl ()
 
void set_id (Object_id id)
 
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
 Weak_object ()=default
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()=default
 
- 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...
 
- Public Member Functions inherited from dd::Parameter
 ~Parameter () override=default
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
static Parameter_implrestore_item (Routine_impl *routine)
 
static Parameter_implclone (const Parameter_impl &other, Routine_impl *routine)
 

Private Attributes

bool m_is_name_null
 
enum_parameter_mode m_parameter_mode
 
bool m_parameter_mode_null
 
enum_column_types m_data_type
 
String_type m_data_type_utf8
 
bool m_is_zerofill
 
bool m_is_unsigned
 
uint m_ordinal_position
 
size_t m_char_length
 
uint m_numeric_precision
 
bool m_numeric_precision_null
 
uint m_numeric_scale
 
bool m_numeric_scale_null
 
uint m_datetime_precision
 
bool m_datetime_precision_null
 
Parameter_type_element_collection m_elements
 
Properties_impl m_options
 
Routine_implm_routine
 
Object_id m_collation_id
 

Additional Inherited Members

- Public Types inherited from dd::Parameter
enum  enum_parameter_mode { PM_IN = 1 , PM_OUT , PM_INOUT }
 
typedef Collection< Parameter_type_element * > Parameter_type_element_collection
 
typedef Parameter_impl Impl
 
typedef tables::Parameters DD_table
 
- Protected Member Functions inherited from dd::Entity_object_impl
void set_primary_key_value (const Raw_new_record &r) override
 
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_< use_pfs >
bool check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const
 

Constructor & Destructor Documentation

◆ Parameter_impl() [1/3]

dd::Parameter_impl::Parameter_impl ( )

◆ Parameter_impl() [2/3]

dd::Parameter_impl::Parameter_impl ( Routine_impl routine)

◆ Parameter_impl() [3/3]

dd::Parameter_impl::Parameter_impl ( const Parameter_impl src,
Routine_impl parent 
)

◆ ~Parameter_impl()

dd::Parameter_impl::~Parameter_impl ( )
overridedefault

Member Function Documentation

◆ add_element()

Parameter_type_element * dd::Parameter_impl::add_element ( )
overridevirtual

Implements dd::Parameter.

◆ char_length()

size_t dd::Parameter_impl::char_length ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ clone()

static Parameter_impl * dd::Parameter_impl::clone ( const Parameter_impl other,
Routine_impl routine 
)
inlinestatic

◆ collation_id()

Object_id dd::Parameter_impl::collation_id ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ data_type()

enum_column_types dd::Parameter_impl::data_type ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ data_type_utf8()

const String_type & dd::Parameter_impl::data_type_utf8 ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ datetime_precision()

uint dd::Parameter_impl::datetime_precision ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ debug_print()

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

Implements dd::Weak_object.

◆ drop_children()

bool dd::Parameter_impl::drop_children ( Open_dictionary_tables_ctx otx) const
overridevirtual

Reimplemented from dd::Weak_object_impl_< use_pfs >.

◆ elements()

const Parameter_type_element_collection & dd::Parameter_impl::elements ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ elements_count()

size_t dd::Parameter_impl::elements_count ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ id()

Object_id dd::Parameter_impl::id ( ) const
inlineoverridevirtual

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

const Entity_object_impl * dd::Parameter_impl::impl ( ) const
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

Entity_object_impl * dd::Parameter_impl::impl ( )
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ is_datetime_precision_null()

virtual bool dd::Parameter_impl::is_datetime_precision_null ( ) const
inlinevirtual

◆ is_name_null()

bool dd::Parameter_impl::is_name_null ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ is_numeric_precision_null()

virtual bool dd::Parameter_impl::is_numeric_precision_null ( ) const
inlinevirtual

◆ is_numeric_scale_null()

bool dd::Parameter_impl::is_numeric_scale_null ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ is_parameter_mode_null()

bool dd::Parameter_impl::is_parameter_mode_null ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ is_persistent()

bool dd::Parameter_impl::is_persistent ( ) const
inlineoverridevirtual

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ is_unsigned()

bool dd::Parameter_impl::is_unsigned ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ is_zerofill()

bool dd::Parameter_impl::is_zerofill ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ mode()

enum_parameter_mode dd::Parameter_impl::mode ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ name()

const String_type & dd::Parameter_impl::name ( ) const
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ numeric_precision()

uint dd::Parameter_impl::numeric_precision ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ numeric_scale()

uint dd::Parameter_impl::numeric_scale ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ object_table()

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

◆ options() [1/2]

const Properties & dd::Parameter_impl::options ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ options() [2/2]

Properties & dd::Parameter_impl::options ( )
inlineoverridevirtual

Implements dd::Parameter.

◆ ordinal_position()

uint dd::Parameter_impl::ordinal_position ( ) const
inlineoverridevirtual

Implements dd::Parameter.

◆ register_tables()

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

◆ restore_attributes()

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

◆ restore_children()

bool dd::Parameter_impl::restore_children ( Open_dictionary_tables_ctx otx)
overridevirtual

Reimplemented from dd::Weak_object_impl_< use_pfs >.

◆ restore_item()

static Parameter_impl * dd::Parameter_impl::restore_item ( Routine_impl routine)
inlinestatic

◆ routine() [1/2]

const Routine & dd::Parameter_impl::routine ( ) const
overridevirtual

Implements dd::Parameter.

◆ routine() [2/2]

Routine & dd::Parameter_impl::routine ( )
overridevirtual

Implements dd::Parameter.

◆ set_char_length()

void dd::Parameter_impl::set_char_length ( size_t  char_length)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_collation_id()

void dd::Parameter_impl::set_collation_id ( Object_id  collation_id)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_data_type()

void dd::Parameter_impl::set_data_type ( enum_column_types  type)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_data_type_utf8()

void dd::Parameter_impl::set_data_type_utf8 ( const String_type data_type_utf8)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_datetime_precision()

void dd::Parameter_impl::set_datetime_precision ( uint  datetime_precision)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_datetime_precision_null()

virtual void dd::Parameter_impl::set_datetime_precision_null ( bool  is_null)
inlinevirtual

◆ set_mode()

void dd::Parameter_impl::set_mode ( enum_parameter_mode  mode)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_name()

void dd::Parameter_impl::set_name ( const String_type name)
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ set_name_null()

void dd::Parameter_impl::set_name_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_numeric_precision()

void dd::Parameter_impl::set_numeric_precision ( uint  numeric_precision)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_numeric_precision_null()

virtual void dd::Parameter_impl::set_numeric_precision_null ( bool  is_null)
inlinevirtual

◆ set_numeric_scale()

void dd::Parameter_impl::set_numeric_scale ( uint  numeric_scale)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_numeric_scale_null()

void dd::Parameter_impl::set_numeric_scale_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_options()

bool dd::Parameter_impl::set_options ( const String_type options_raw)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_ordinal_position()

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

◆ set_parameter_mode_null()

void dd::Parameter_impl::set_parameter_mode_null ( bool  is_null)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_unsigned()

void dd::Parameter_impl::set_unsigned ( bool  unsigned_flag)
inlineoverridevirtual

Implements dd::Parameter.

◆ set_zerofill()

void dd::Parameter_impl::set_zerofill ( bool  zerofill)
inlineoverridevirtual

Implements dd::Parameter.

◆ store_attributes()

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

◆ store_children()

bool dd::Parameter_impl::store_children ( Open_dictionary_tables_ctx otx)
overridevirtual

Reimplemented from dd::Weak_object_impl_< use_pfs >.

◆ validate()

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

Member Data Documentation

◆ m_char_length

size_t dd::Parameter_impl::m_char_length
private

◆ m_collation_id

Object_id dd::Parameter_impl::m_collation_id
private

◆ m_data_type

enum_column_types dd::Parameter_impl::m_data_type
private

◆ m_data_type_utf8

String_type dd::Parameter_impl::m_data_type_utf8
private

◆ m_datetime_precision

uint dd::Parameter_impl::m_datetime_precision
private

◆ m_datetime_precision_null

bool dd::Parameter_impl::m_datetime_precision_null
private

◆ m_elements

Parameter_type_element_collection dd::Parameter_impl::m_elements
private

◆ m_is_name_null

bool dd::Parameter_impl::m_is_name_null
private

◆ m_is_unsigned

bool dd::Parameter_impl::m_is_unsigned
private

◆ m_is_zerofill

bool dd::Parameter_impl::m_is_zerofill
private

◆ m_numeric_precision

uint dd::Parameter_impl::m_numeric_precision
private

◆ m_numeric_precision_null

bool dd::Parameter_impl::m_numeric_precision_null
private

◆ m_numeric_scale

uint dd::Parameter_impl::m_numeric_scale
private

◆ m_numeric_scale_null

bool dd::Parameter_impl::m_numeric_scale_null
private

◆ m_options

Properties_impl dd::Parameter_impl::m_options
private

◆ m_ordinal_position

uint dd::Parameter_impl::m_ordinal_position
private

◆ m_parameter_mode

enum_parameter_mode dd::Parameter_impl::m_parameter_mode
private

◆ m_parameter_mode_null

bool dd::Parameter_impl::m_parameter_mode_null
private

◆ m_routine

Routine_impl* dd::Parameter_impl::m_routine
private

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