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 and source for TAllSet
A bank customer's bank account at a 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
A bank or other money management organization.
Definition Bank.h:90
A legal entity from which organizations can be derived.
Definition LegalEntity.h:90
A natural person.
Definition NaturalPerson.h:90
An abstract person from which natural and legal persons can be derived.
Definition Person.h:91
Is the base class of template AllSets and the generic AllSet.
Definition GloBaseAllSet.h:80
Abstract superclass for instantiation functions of persistent classes. From this class a subclass is ...
Definition GloObjCreator.h:71
ObjCreator()
Definition GloObjCreator.h:84
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:77
The base class of the persistent classes. All persistent classes must be derived from this class to b...
Definition GloPersistent.h:235
virtual int setGloAttribute(const AttributeID &rAttributeID, void *pPara)
AllSet, which returns objects from the database.
Definition GloTAllSet.h:185