#include <identifiable_holder.hpp>
Inherited by matador::object_holder.
Public Member Functions | |
virtual void | reset (const identifier &id)=0 |
virtual bool | has_primary_key () const =0 |
virtual const identifier & | primary_key () const =0 |
virtual identifier & | primary_key ()=0 |
virtual identifier | create_identifier () const =0 |
Base class for all pointer object which can contain an identifiable
|
pure virtual |
Creates a new identifier object.
Implemented in matador::object_ptr< T >.
|
pure virtual |
Returns true if serializable has a primary key
Implemented in matador::object_holder.
|
pure virtual |
Gets the primary key of the foreign serializable
Implemented in matador::object_holder.
|
pure virtual |
Resets the object_holder with the given identifier. If the type of identifier differs from internal type an exception is thrown
id | The identifier to set |
Implemented in matador::object_holder.