BankAndCustomer
|
Abstract superclass for instantiation functions of persistent classes. From this class a subclass is derived for each database from a schema, which can instantiate persistent objects from the class IDs. More...
#include <GloObjCreator.h>
Public Member Functions | |
ObjCreator () | |
virtual | ~ObjCreator () |
virtual std::string | getBaseName () const =0 |
virtual bool | isKnownClassID (unsigned long ulClassID) const =0 |
virtual int | getPersObject (Persistent *&prNewObject, unsigned long ulClassID) const =0 |
virtual int | getPersObject (std::shared_ptr< Persistent > &rNewObject, unsigned long ulClassID) const =0 |
virtual unsigned long | getClassID (BaseAllSet *pAllSet) const =0 |
virtual ObjCreator * | getCopy () const =0 |
Private Member Functions | |
ObjCreator (const ObjCreator &) | |
ObjCreator & | operator= (const ObjCreator &) |
Abstract superclass for instantiation functions of persistent classes. From this class a subclass is derived for each database from a schema, which can instantiate persistent objects from the class IDs.
The derived object creator is usually created by the GloDeveloper and must be included in the source files in which the Base is used.
|
inline |
Standard constructor.
|
inlinevirtual |
Destructor.
|
private |
The copy constructor is not available.
|
pure virtual |
Returns the database name in the subclass.
Implemented in SelfWatchingClassObjCreator.
|
pure virtual |
Returns the class ID of the passed AllSet in the subclass.
[in] | pAllSet | The AllSet to be checked. |
eut::ErrorNException | If the type of the AllSet is not known, an exception is thrown with the error ::ERR_UNKNOWN_OBJECT_TYPE. |
Implemented in SelfWatchingClassObjCreator.
|
pure virtual |
Returns a copy of itself in the subclass.
Implemented in SelfWatchingClassObjCreator.
|
pure virtual |
Returns a persistent object (instantiation with the default constructor) in the subclass of the passed class ID.
[in,out] | prNewObject | The instantiated persistent object. |
[in] | ulClassID | The class ID of the object to be instantiated. |
Implemented in SelfWatchingClassObjCreator.
|
pure virtual |
Returns a persistent object (instantiation with the default constructor) in the subclass of the passed class ID.
[in,out] | rNewObject | The instantiated persistent object. |
[in] | ulClassID | The class ID of the object to be instantiated. |
Implemented in SelfWatchingClassObjCreator.
|
pure virtual |
Checks in the subclass whether a class ID is known.
[in] | ulClassID | The class ID to be checked. |
Implemented in SelfWatchingClassObjCreator.
|
private |
The assignment operator is not available.