23#ifndef DD__ENTITY_OBJECT_IMPL_INCLUDED
24#define DD__ENTITY_OBJECT_IMPL_INCLUDED
Definition: entity_object_impl.h:43
Entity_object_impl()
Definition: entity_object_impl.h:45
Object_key * create_primary_key() const override
Definition: entity_object_impl.cc:61
void set_name(const String_type &name) override
Definition: entity_object_impl.h:61
bool store_id(Raw_record *r, int field_idx)
Definition: entity_object_impl.cc:79
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:106
void set_primary_key_value(const Raw_new_record &r) override
Definition: entity_object_impl.cc:45
Entity_object_impl(const Entity_object_impl &src)
Definition: entity_object_impl.h:116
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:65
void set_id(Object_id id)
Definition: entity_object_impl.h:50
void fix_has_new_primary_key() override
Definition: entity_object_impl.h:73
void restore_name(const Raw_record &r, int field_idx)
Definition: entity_object_impl.cc:74
Object_id id() const override
The unique dictionary object id.
Definition: entity_object_impl.h:48
void serialize(Sdi_wcontext *wctx, Sdi_writer *w) const
Definition: entity_object_impl.cc:98
void restore_id(const Raw_record &r, int field_idx)
Definition: entity_object_impl.cc:67
const String_type & name() const override
Definition: entity_object_impl.h:59
const Entity_object_impl * impl() const override
Definition: entity_object_impl.h:68
Entity_object_impl * impl() override
Definition: entity_object_impl.h:67
String_type m_name
Definition: entity_object_impl.h:93
Object_id m_id
Definition: entity_object_impl.h:91
bool deserialize(Sdi_rcontext *rctx, const RJ_Value &val)
Definition: entity_object_impl.cc:104
bool store_name(Raw_record *r, int field_idx)
Definition: entity_object_impl.cc:92
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: entity_object_impl.h:56
Base class for dictionary objects which has single column integer primary key.
Definition: entity_object.h:47
Definition: object_key.h:37
Definition: raw_record.h:140
Definition: raw_record.h:45
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:230
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:128
Definition: weak_object_impl.h:47
Base class for all data dictionary objects.
Definition: weak_object.h:41
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:63
unsigned long long Object_id
Definition: object_id.h:30
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:36
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:48
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:85
This header provides Rapidjson Type Aliases.