#include <entity_object_impl.h>
◆ Entity_object_impl() [1/2]
dd::Entity_object_impl::Entity_object_impl |
( |
| ) |
|
|
inline |
◆ Entity_object_impl() [2/2]
◆ create_primary_key()
Object_key * dd::Entity_object_impl::create_primary_key |
( |
| ) |
const |
|
overridevirtual |
◆ deserialize()
◆ fix_has_new_primary_key()
void dd::Entity_object_impl::fix_has_new_primary_key |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ has_new_primary_key()
bool dd::Entity_object_impl::has_new_primary_key |
( |
| ) |
const |
|
inlineoverridevirtual |
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 >.
Reimplemented in dd::Index_stat_impl, and dd::Table_stat_impl.
◆ id()
Object_id dd::Entity_object_impl::id |
( |
| ) |
const |
|
inlineoverridevirtual |
The unique dictionary object id.
Implements dd::Entity_object.
Reimplemented in dd::Event_impl, dd::Foreign_key_impl, dd::Function_impl, dd::Index_impl, dd::Index_stat_impl, dd::Parameter_impl, dd::Partition_impl, dd::Procedure_impl, dd::Resource_group_impl, dd::Routine_impl, dd::Schema_impl, dd::Spatial_reference_system_impl, dd::Table_impl, dd::Table_stat_impl, dd::Tablespace_impl, dd::Trigger_impl, and dd::View_impl.
◆ impl() [1/2]
Implements dd::Entity_object.
Reimplemented in dd::Event_impl, dd::Foreign_key_impl, dd::Function_impl, dd::Index_impl, dd::Index_stat_impl, dd::Parameter_impl, dd::Partition_impl, dd::Procedure_impl, dd::Resource_group_impl, dd::Routine_impl, dd::Schema_impl, dd::Spatial_reference_system_impl, dd::Table_impl, dd::Table_stat_impl, dd::Tablespace_impl, dd::Trigger_impl, and dd::View_impl.
◆ impl() [2/2]
Implements dd::Entity_object.
Reimplemented in dd::Event_impl, dd::Foreign_key_impl, dd::Function_impl, dd::Index_impl, dd::Index_stat_impl, dd::Parameter_impl, dd::Partition_impl, dd::Procedure_impl, dd::Resource_group_impl, dd::Routine_impl, dd::Schema_impl, dd::Spatial_reference_system_impl, dd::Table_impl, dd::Table_stat_impl, dd::Tablespace_impl, dd::Trigger_impl, and dd::View_impl.
◆ is_persistent()
bool dd::Entity_object_impl::is_persistent |
( |
| ) |
const |
|
inlineoverridevirtual |
Is dictionary object persistent in dictionary tables ?
Implements dd::Entity_object.
Reimplemented in dd::Event_impl, dd::Foreign_key_impl, dd::Function_impl, dd::Index_impl, dd::Index_stat_impl, dd::Parameter_impl, dd::Partition_impl, dd::Procedure_impl, dd::Resource_group_impl, dd::Routine_impl, dd::Schema_impl, dd::Spatial_reference_system_impl, dd::Table_impl, dd::Table_stat_impl, dd::Tablespace_impl, dd::Trigger_impl, and dd::View_impl.
◆ name()
const String_type & dd::Entity_object_impl::name |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements dd::Entity_object.
Reimplemented in dd::Event_impl, dd::Foreign_key_impl, dd::Function_impl, dd::Index_impl, dd::Index_stat_impl, dd::Parameter_impl, dd::Partition_impl, dd::Procedure_impl, dd::Resource_group_impl, dd::Routine_impl, dd::Schema_impl, dd::Spatial_reference_system_impl, dd::Table_impl, dd::Table_stat_impl, dd::Tablespace_impl, dd::Trigger_impl, and dd::View_impl.
◆ restore_id()
void dd::Entity_object_impl::restore_id |
( |
const Raw_record & |
r, |
|
|
int |
field_idx |
|
) |
| |
|
protected |
◆ restore_name()
void dd::Entity_object_impl::restore_name |
( |
const Raw_record & |
r, |
|
|
int |
field_idx |
|
) |
| |
|
protected |
◆ serialize()
◆ set_id()
void dd::Entity_object_impl::set_id |
( |
Object_id |
id | ) |
|
|
inline |
◆ set_name()
void dd::Entity_object_impl::set_name |
( |
const String_type & |
name | ) |
|
|
inlineoverridevirtual |
Implements dd::Entity_object.
Reimplemented in dd::Event_impl, dd::Foreign_key_impl, dd::Function_impl, dd::Index_impl, dd::Index_stat_impl, dd::Parameter_impl, dd::Partition_impl, dd::Procedure_impl, dd::Resource_group_impl, dd::Routine_impl, dd::Schema_impl, dd::Spatial_reference_system_impl, dd::Table_impl, dd::Table_stat_impl, dd::Tablespace_impl, dd::Trigger_impl, and dd::View_impl.
◆ set_primary_key_value()
void dd::Entity_object_impl::set_primary_key_value |
( |
const Raw_new_record & |
r | ) |
|
|
overrideprotectedvirtual |
◆ store_id()
bool dd::Entity_object_impl::store_id |
( |
Raw_record * |
r, |
|
|
int |
field_idx |
|
) |
| |
|
protected |
◆ store_name() [1/2]
bool dd::Entity_object_impl::store_name |
( |
Raw_record * |
r, |
|
|
int |
field_idx |
|
) |
| |
|
protected |
◆ store_name() [2/2]
bool dd::Entity_object_impl::store_name |
( |
Raw_record * |
r, |
|
|
int |
field_idx, |
|
|
bool |
is_null |
|
) |
| |
|
protected |
◆ m_has_new_primary_key
bool dd::Entity_object_impl::m_has_new_primary_key |
|
private |
Indicates that object is guaranteed to have ID which doesn't exist in database because it will be or just was generated using auto-increment.
Main difference of this member from result of m_id == INVALID_OBJECT_ID check is that we delay resetting of this flag until end of store() method while m_id is updated right after object was inserted into the table. This is necessary to let entity's children figure out that their parent has new ID which was not used before (and hence their primary keys based on this ID will be new too) while still giving access to the exact value of new ID.
◆ m_id
◆ m_name
The documentation for this class was generated from the following files: