9#ifndef INC_BANKANDCUSTOMEROBJCREATOR_H
10#define INC_BANKANDCUSTOMEROBJCREATOR_H
12#include <EuException.h>
41 inline virtual bool isKnownClassID(
unsigned long ulClassID )
const;
43 inline virtual int getPersObject( std::shared_ptr< glo::Persistent > & rNewObject,
unsigned long ulClassID )
const;
48#define SUPER ObjCreator
61 return "BankAndCustomer";
99 prNewObject =
new Person();
114 prNewObject =
new Bank();
124 t_iErr = glo::ERR_UNKNOWN_CLASSID;
130 prNewObject->
setGloAttribute(
"glo::Persistent.m_ObjID", & t_NewObjID );
140 int t_iErr = this->
getPersObject( t_pPersistent, ulClassID );
144 rNewObject = std::shared_ptr< glo::Persistent >( t_pPersistent, glo::Forgeter< glo::Persistent >() );
151 unsigned long t_ulRetVal = 0;
168 throw eut::ErrorNException(
"BankAndCustomerObjCreator::getClassID( BaseAllSet * pAllSet ) const", glo::ERR_UNKNOWN_OBJECT_TYPE, __FILE__, __LINE__ );
#define SUPER
Definition BankAndCustomerObjCreator.h:48
#define NULL_PTR
Definition EuDef_NULL_PTR.h:74
Header und Source für TAllSet
Das Bankkonto eines Bankkunden bei einer Bank.
Definition BankAccount.h:93
Definition BankAndCustomerObjCreator.h:27
static const unsigned long ClassID_Bank
Definition BankAndCustomerObjCreator.h:34
static const unsigned long ClassID_BankAccount
Definition BankAndCustomerObjCreator.h:35
static const unsigned long ClassID_Person
Definition BankAndCustomerObjCreator.h:31
virtual int getPersObject(glo::Persistent *&prNewObject, unsigned long ulClassID) const
Definition BankAndCustomerObjCreator.h:85
static const unsigned long ClassID_glo_Persistent
Definition BankAndCustomerObjCreator.h:30
virtual ~BankAndCustomerObjCreator()
Definition BankAndCustomerObjCreator.h:55
virtual std::string getBaseName() const
Definition BankAndCustomerObjCreator.h:59
static const unsigned long ClassID_LegalEntity
Definition BankAndCustomerObjCreator.h:32
static const unsigned long ClassID_NaturalPerson
Definition BankAndCustomerObjCreator.h:33
virtual bool isKnownClassID(unsigned long ulClassID) const
Definition BankAndCustomerObjCreator.h:64
virtual ObjCreator * getCopy() const
Definition BankAndCustomerObjCreator.h:173
static const unsigned long ClassID_AllClasses
Definition BankAndCustomerObjCreator.h:29
BankAndCustomerObjCreator()
Definition BankAndCustomerObjCreator.h:50
virtual unsigned long getClassID(glo::BaseAllSet *pAllSet) const
Definition BankAndCustomerObjCreator.h:149
Eine Bank oder eine andere Geldverwaltungsorganisation.
Definition Bank.h:90
Eine juristische Person, aus der Organisationen abgeleitet werden können.
Definition LegalEntity.h:90
Eine natürliche Person.
Definition NaturalPerson.h:90
Eine abstrakte Person, aus der sich natürliche und juristische Personen ableiten lassen.
Definition Person.h:91
Ist die Basisklasse von Template-AllSets und dem generischen AllSet.
Definition GloBaseAllSet.h:80
Abstrakte Oberklasse für Instanziierungsfunktionen der persistenten Klassen. Von dieser Klasse wird g...
Definition GloObjCreator.h:71
ObjCreator()
Definition GloObjCreator.h:84
Ein Objekt-ID besteht aus der Klassen-ID, einer Datenbank-ID und der eigentlichen eindeutigen ObjektZ...
Definition GloObjID.h:77
Die Basisklasse der persistenten Klassen. Von dieser Klasse müssen alle persistenten Klassen abgeleit...
Definition GloPersistent.h:235
virtual int setGloAttribute(const AttributeID &rAttributeID, void *pPara)
AllSet, welcher Objekte aus der Datenbank liefert.
Definition GloTAllSet.h:185