BankAndCustomer
Loading...
Searching...
No Matches
Person.h
Go to the documentation of this file.
1// ****************************************************************************
2// Created by GlobalObjects source code generator version 1.0.9
3// Creation date: 2024.05.27 - 11:59:18
4// Database: "GloExamples"
5// ****************************************************************************
6//-----------------------------------------------------------------------------
7//@@gloIncludeGuardBEGIN
8#ifndef INC_PERSON_H
9#define INC_PERSON_H
10//@@gloIncludeGuardEND
11//-----------------------------------------------------------------------------
12//@@gloFileDescriptionBEGIN
53//@@gloFileDescriptionEND
54//-----------------------------------------------------------------------------
55//@@gloForwardsBEGIN
56namespace glo
57{
58 class Base;
59}
60//@@gloForwardsEND
61class BankAccount;
62//@@gloSuperClassIncludesBEGIN
63#include <GloPersistent.h>
64//@@gloSuperClassIncludesEND
65#include <GloTAllSet.h>
66//@@gloReferencesIncludesBEGIN
67//@@gloReferencesIncludesEnd
68
69//-----------------------------------------------------------------------------
70//@@gloNamespaceNamesBEGIN
71//@@gloNamespaceNamesEND
72//-----------------------------------------------------------------------------
73//@@gloClassDeclarationBEGIN
74// Glo-BaseVersion:1718706516
89class Person : public glo::Persistent
90//@@gloClassDeclarationEND
91{
92 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
93 //@@gloBeforeKeywordPersistentBEGIN
95 //@@gloBeforeKeywordPersistentEND
96 private persistent:
97 //@@gloBehindKeywordPersistentBEGIN
99 //@@gloBehindKeywordPersistentEND
100 //-------------------------------------------------------------------------
102 //-------------------------------------------------------------------------
110 GLO_INDEX( IDXName, Person.m_Name[255], DEU-2 & AUT & DNK & EST & FIN & FRA & ISL & NOR & SWE );
111 //-------------------------------------------------------------------------
112 private:
113 //-------------------------------------------------------------------------
122 std::string m_Name; // TableName:Person FieldPos:1
123 //-------------------------------------------------------------------------
124 //@@gloBeforeKeywordTransientBEGIN
126 //@@gloBeforeKeywordTransientEND
127 private transient:
128 //@@gloBehindKeywordTransientBEGIN
130 //@@gloBehindKeywordTransientEND
131 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
132
133 //-------------------------------------------------------------------------
145 //-------------------------------------------------------------------------
146
147 //============== Friends
148 //-----------------------------------------------------------------------
149 friend class Bank;
150 //-----------------------------------------------------------------------
151
152 public:
153 //============== Constructors, destructor
154 //-------------------------------------------------------------------------
165 //-------------------------------------------------------------------------
177 Person( const std::string & rsName );
178 //-------------------------------------------------------------------------
189 //-------------------------------------------------------------------------
190
191 private:
192 //============== Copy-Konstruktor
193 //-------------------------------------------------------------------------
203 Person( const Person & );
204 //-------------------------------------------------------------------------
205
206 public:
207 //============== Methoden
208 //-------------------------------------------------------------------------
221 //-----------------------------------------------------------------------
243 virtual int preDeleteInBase( glo::EnDeepMode eDeepMode, void *& prData ) override;
244 //-----------------------------------------------------------------------
270 virtual void postDeleteInBase( int iDeleteErr, glo::EnDeepMode eDeepMode, void * pData ) override;
271 //-----------------------------------------------------------------------
283 void setName( const std::string & rsName );
284 //-----------------------------------------------------------------------
296 std::string getName() const;
297 //-----------------------------------------------------------------------
314 int setBankAccount( const std::string & rsIBAN, const std::string & rsBIC );
315 //-----------------------------------------------------------------------
335 int setBankAccount( Bank & rBank, const std::string & rsIBAN );
336 int setBankAccount( std::shared_ptr< Bank > rBank, const std::string & rsIBAN );
337 //-----------------------------------------------------------------------
353 int removeBankAccount( const std::string & rsIBAN );
354 //-----------------------------------------------------------------------
374 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, glo::EnSeekMode eMode );
375 //-----------------------------------------------------------------------
395 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, const std::string & rsIBAN );
396 //-----------------------------------------------------------------------
414 int getBankAccounts( std::vector< std::shared_ptr< BankAccount > > & rRetVal, std::shared_ptr< Bank> rBank );
415 //-----------------------------------------------------------------------
431 int getBank( std::shared_ptr< Bank > & rRetVal, const std::string & rsIBAN );
432 //-----------------------------------------------------------------------
433
434 private:
435 //============== Operatoren
436 //-------------------------------------------------------------------------
447 //-------------------------------------------------------------------------
448};
449//-----------------------------------------------------------------------------
450//@@gloNamespaceCurlyBracketsBEGIN
451//@@gloNamespaceCurlyBracketsEND
452//-----------------------------------------------------------------------------
453#endif
Header for Persistent
#define transient
Definition GloPersistent.h:174
#define persistent
Definition GloPersistent.h:159
Header and source for TAllSet
A bank customer's bank account at a bank.
Definition BankAccount.h:93
A bank or other money management organization.
Definition Bank.h:90
An abstract person from which natural and legal persons can be derived.
Definition Person.h:91
int getBankAccounts(std::vector< std::shared_ptr< BankAccount > > &rRetVal, std::shared_ptr< Bank > rBank)
Person & operator=(const Person &)
virtual int preDeleteInBase(glo::EnDeepMode eDeepMode, void *&prData) override
Person(const Person &)
int getBank(std::shared_ptr< Bank > &rRetVal, const std::string &rsIBAN)
int removeBankAccount(const std::string &rsIBAN)
int setBankAccount(std::shared_ptr< Bank > rBank, const std::string &rsIBAN)
std::string m_Name
Definition Person.h:122
int setBankAccount(Bank &rBank, const std::string &rsIBAN)
Person(const std::string &rsName)
glo::TAllSet< BankAccount > m_BankAccounts
Definition Person.h:144
int setBankAccount(const std::string &rsIBAN, const std::string &rsBIC)
virtual void postDeleteInBase(int iDeleteErr, glo::EnDeepMode eDeepMode, void *pData) override
GLO_OBJECT(Person:glo::Persistent)
int getBankAccount(std::shared_ptr< BankAccount > &rRetVal, glo::EnSeekMode eMode)
int getBankAccount(std::shared_ptr< BankAccount > &rRetVal, const std::string &rsIBAN)
std::string getName() const
void setName(const std::string &rsName)
GLO_INDEX(IDXName, Person.m_Name[255], DEU-2 &AUT &DNK &EST &FIN &FRA &ISL &NOR &SWE)
int initBankAccounts()
The base class of the persistent classes. All persistent classes must be derived from this class to b...
Definition GloPersistent.h:235
Definition GloBasePersistent.h:52