24#ifndef DD__ENTITY_OBJECT_IMPL_INCLUDED
25#define DD__ENTITY_OBJECT_IMPL_INCLUDED
Definition: entity_object_impl.h:44
Entity_object_impl()
Definition: entity_object_impl.h:46
Object_key * create_primary_key() const override
Definition: entity_object_impl.cc:63
void set_name(const String_type &name) override
Definition: entity_object_impl.h:62
bool store_id(Raw_record *r, int field_idx)
Definition: entity_object_impl.cc:81
bool m_has_new_primary_key
Indicates that object is guaranteed to have ID which doesn't exist in database because it will be or ...
Definition: entity_object_impl.h:107
void set_primary_key_value(const Raw_new_record &r) override
Definition: entity_object_impl.cc:47
Entity_object_impl(const Entity_object_impl &src)
Definition: entity_object_impl.h:117
bool has_new_primary_key() const override
Indicates that object is guaranteed to have primary key value which doesn't exist in database (e....
Definition: entity_object_impl.h:66
void set_id(Object_id id)
Definition: entity_object_impl.h:51
void fix_has_new_primary_key() override
Definition: entity_object_impl.h:74
void restore_name(const Raw_record &r, int field_idx)
Definition: entity_object_impl.cc:76
Object_id id() const override
The unique dictionary object id.
Definition: entity_object_impl.h:49
void serialize(Sdi_wcontext *wctx, Sdi_writer *w) const
Definition: entity_object_impl.cc:100
void restore_id(const Raw_record &r, int field_idx)
Definition: entity_object_impl.cc:69
const String_type & name() const override
Definition: entity_object_impl.h:60
const Entity_object_impl * impl() const override
Definition: entity_object_impl.h:69
Entity_object_impl * impl() override
Definition: entity_object_impl.h:68
String_type m_name
Definition: entity_object_impl.h:94
Object_id m_id
Definition: entity_object_impl.h:92
bool deserialize(Sdi_rcontext *rctx, const RJ_Value &val)
Definition: entity_object_impl.cc:106
bool store_name(Raw_record *r, int field_idx)
Definition: entity_object_impl.cc:94
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: entity_object_impl.h:57
Base class for dictionary objects which has single column integer primary key.
Definition: entity_object.h:48
Definition: object_key.h:38
Definition: raw_record.h:141
Definition: raw_record.h:46
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:231
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:129
Definition: weak_object_impl.h:48
Base class for all data dictionary objects.
Definition: weak_object.h:42
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:64
unsigned long long Object_id
Definition: object_id.h:31
const Object_id INVALID_OBJECT_ID
The default object ID which represents that the DD object is new and not persistent in dictionary tab...
Definition: object_id.h:37
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:49
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:86
This header provides Rapidjson Type Aliases.