MySQL  8.0.21
Source Code Documentation
dd::Parameter_impl Class Reference

#include <parameter_impl.h>

Inheritance diagram for dd::Parameter_impl:
dd::Entity_object_impl dd::Parameter dd::Entity_object dd::Weak_object_impl dd::Entity_object dd::Weak_object dd::Weak_object dd::Weak_object

Public Member Functions

 Parameter_impl ()
 
 Parameter_impl (Routine_impl *routine)
 
 Parameter_impl (const Parameter_impl &src, Routine_impl *parent)
 
virtual ~Parameter_impl ()
 
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 store_attributes (Raw_record *r)
 
virtual bool restore_attributes (const Raw_record &r)
 
virtual void debug_print (String_type &outb) const
 
void set_ordinal_position (uint ordinal_position)
 
virtual void set_name_null (bool is_null)
 
virtual bool is_name_null () const
 
virtual uint ordinal_position () const
 
virtual enum_parameter_mode mode () const
 
virtual void set_mode (enum_parameter_mode mode)
 
virtual void set_parameter_mode_null (bool is_null)
 
virtual bool is_parameter_mode_null () const
 
virtual enum_column_types data_type () const
 
virtual void set_data_type (enum_column_types type)
 
virtual const String_typedata_type_utf8 () const
 
virtual void set_data_type_utf8 (const String_type &data_type_utf8)
 
virtual bool is_zerofill () const
 
virtual void set_zerofill (bool zerofill)
 
virtual bool is_unsigned () const
 
virtual void set_unsigned (bool unsigned_flag)
 
virtual size_t char_length () const
 
virtual void set_char_length (size_t char_length)
 
virtual uint numeric_precision () const
 
virtual void set_numeric_precision (uint numeric_precision)
 
virtual void set_numeric_precision_null (bool is_null)
 
virtual bool is_numeric_precision_null () const
 
virtual uint numeric_scale () const
 
virtual void set_numeric_scale (uint numeric_scale)
 
virtual void set_numeric_scale_null (bool is_null)
 
virtual bool is_numeric_scale_null () const
 
virtual uint datetime_precision () const
 
virtual void set_datetime_precision (uint datetime_precision)
 
virtual void set_datetime_precision_null (bool is_null)
 
virtual bool is_datetime_precision_null () const
 
virtual Object_id collation_id () const
 
virtual void set_collation_id (Object_id collation_id)
 
virtual const Propertiesoptions () const
 
virtual Propertiesoptions ()
 
virtual bool set_options (const String_type &options_raw)
 
virtual const Routineroutine () const
 
virtual Routineroutine ()
 
virtual Parameter_type_elementadd_element ()
 
virtual const Parameter_type_element_collectionelements () const
 
virtual size_t elements_count () const
 
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::Parameter
virtual ~Parameter ()
 

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
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
 

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()

virtual dd::Parameter_impl::~Parameter_impl ( )
inlinevirtual

Member Function Documentation

◆ add_element()

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

Implements dd::Parameter.

◆ char_length()

virtual size_t dd::Parameter_impl::char_length ( ) const
inlinevirtual

Implements dd::Parameter.

◆ clone()

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

◆ collation_id()

virtual Object_id dd::Parameter_impl::collation_id ( ) const
inlinevirtual

Implements dd::Parameter.

◆ data_type()

virtual enum_column_types dd::Parameter_impl::data_type ( ) const
inlinevirtual

Implements dd::Parameter.

◆ data_type_utf8()

virtual const String_type& dd::Parameter_impl::data_type_utf8 ( ) const
inlinevirtual

Implements dd::Parameter.

◆ datetime_precision()

virtual uint dd::Parameter_impl::datetime_precision ( ) const
inlinevirtual

Implements dd::Parameter.

◆ debug_print()

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

Implements dd::Weak_object.

◆ drop_children()

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

Reimplemented from dd::Weak_object_impl.

◆ elements()

virtual const Parameter_type_element_collection& dd::Parameter_impl::elements ( ) const
inlinevirtual

Implements dd::Parameter.

◆ elements_count()

virtual size_t dd::Parameter_impl::elements_count ( ) const
inlinevirtual

Implements dd::Parameter.

◆ id()

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

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

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

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

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

Reimplemented from dd::Entity_object_impl.

◆ is_datetime_precision_null()

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

◆ is_name_null()

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

Implements dd::Parameter.

◆ is_numeric_precision_null()

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

◆ is_numeric_scale_null()

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

Implements dd::Parameter.

◆ is_parameter_mode_null()

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

Implements dd::Parameter.

◆ is_persistent()

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

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ is_unsigned()

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

Implements dd::Parameter.

◆ is_zerofill()

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

Implements dd::Parameter.

◆ mode()

virtual enum_parameter_mode dd::Parameter_impl::mode ( ) const
inlinevirtual

Implements dd::Parameter.

◆ name()

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

Reimplemented from dd::Entity_object_impl.

◆ numeric_precision()

virtual uint dd::Parameter_impl::numeric_precision ( ) const
inlinevirtual

Implements dd::Parameter.

◆ numeric_scale()

virtual uint dd::Parameter_impl::numeric_scale ( ) const
inlinevirtual

Implements dd::Parameter.

◆ object_table()

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

Implements dd::Weak_object_impl.

◆ options() [1/2]

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

Implements dd::Parameter.

◆ options() [2/2]

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

Implements dd::Parameter.

◆ ordinal_position()

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

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)
virtual

Implements dd::Weak_object_impl.

◆ restore_children()

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

Reimplemented from dd::Weak_object_impl.

◆ restore_item()

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

◆ routine() [1/2]

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

Implements dd::Parameter.

◆ routine() [2/2]

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

Implements dd::Parameter.

◆ set_char_length()

virtual void dd::Parameter_impl::set_char_length ( size_t  char_length)
inlinevirtual

Implements dd::Parameter.

◆ set_collation_id()

virtual void dd::Parameter_impl::set_collation_id ( Object_id  collation_id)
inlinevirtual

Implements dd::Parameter.

◆ set_data_type()

virtual void dd::Parameter_impl::set_data_type ( enum_column_types  type)
inlinevirtual

Implements dd::Parameter.

◆ set_data_type_utf8()

virtual void dd::Parameter_impl::set_data_type_utf8 ( const String_type data_type_utf8)
inlinevirtual

Implements dd::Parameter.

◆ set_datetime_precision()

virtual void dd::Parameter_impl::set_datetime_precision ( uint  datetime_precision)
inlinevirtual

Implements dd::Parameter.

◆ set_datetime_precision_null()

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

◆ set_mode()

virtual void dd::Parameter_impl::set_mode ( enum_parameter_mode  mode)
inlinevirtual

Implements dd::Parameter.

◆ set_name()

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

Reimplemented from dd::Entity_object_impl.

◆ set_name_null()

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

Implements dd::Parameter.

◆ set_numeric_precision()

virtual void dd::Parameter_impl::set_numeric_precision ( uint  numeric_precision)
inlinevirtual

Implements dd::Parameter.

◆ set_numeric_precision_null()

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

◆ set_numeric_scale()

virtual void dd::Parameter_impl::set_numeric_scale ( uint  numeric_scale)
inlinevirtual

Implements dd::Parameter.

◆ set_numeric_scale_null()

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

Implements dd::Parameter.

◆ set_options()

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

Implements dd::Parameter.

◆ set_ordinal_position()

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

◆ set_parameter_mode_null()

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

Implements dd::Parameter.

◆ set_unsigned()

virtual void dd::Parameter_impl::set_unsigned ( bool  unsigned_flag)
inlinevirtual

Implements dd::Parameter.

◆ set_zerofill()

virtual void dd::Parameter_impl::set_zerofill ( bool  zerofill)
inlinevirtual

Implements dd::Parameter.

◆ store_attributes()

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

Implements dd::Weak_object_impl.

◆ store_children()

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

Reimplemented from dd::Weak_object_impl.

◆ validate()

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

Implements dd::Weak_object_impl.

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: