BankAndCustomer
All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
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
78//@@gloFileDescriptionEND
79//-----------------------------------------------------------------------------
80//@@gloForwardsBEGIN
81namespace glo
82{
83 class Base;
84}
85//@@gloForwardsEND
86class BankAccount;
87//@@gloSuperClassIncludesBEGIN
88#include <GloPersistent.h>
89//@@gloSuperClassIncludesEND
90#include <GloTAllSet.h>
91//@@gloReferencesIncludesBEGIN
92//@@gloReferencesIncludesEnd
93
94//-----------------------------------------------------------------------------
95//@@gloNamespaceNamesBEGIN
96//@@gloNamespaceNamesEND
97//-----------------------------------------------------------------------------
98//@@gloClassDeclarationBEGIN
99// Glo-BaseVersion:1742566122
115//@@gloClassDeclarationEND
116{
117 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
118 //@@gloBeforeKeywordPersistentBEGIN
120 //@@gloBeforeKeywordPersistentEND
121 private persistent:
122 //@@gloBehindKeywordPersistentBEGIN
124 //@@gloBehindKeywordPersistentEND
125 //-------------------------------------------------------------------------
127 //-------------------------------------------------------------------------
137 GLO_INDEX( IDXName, Person.m_Name[255], DEU-2 & AUT & DNK & EST & FIN & FRA & ISL & NOR & SWE );
138 //-------------------------------------------------------------------------
139 private:
140 //-------------------------------------------------------------------------
150 std::string m_Name; // TableName:Person FieldPos:1
151 //-------------------------------------------------------------------------
152 //@@gloBeforeKeywordTransientBEGIN
154 //@@gloBeforeKeywordTransientEND
155 private transient:
156 //@@gloBehindKeywordTransientBEGIN
158 //@@gloBehindKeywordTransientEND
159 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
160
161 private:
162 //-------------------------------------------------------------------------
174 //-------------------------------------------------------------------------
175
176 //============== Friends
177 //-----------------------------------------------------------------------
178 friend class Bank;
179 //-----------------------------------------------------------------------
180
181 public:
182 //============== Constructors, destructor
183 //-------------------------------------------------------------------------
194 //-------------------------------------------------------------------------
206 Person( const std::string & rsName );
207 //-------------------------------------------------------------------------
218 //-------------------------------------------------------------------------
219
220 private:
221 //============== Copy-Konstruktor
222 //-------------------------------------------------------------------------
232 Person( const Person & );
233 //-------------------------------------------------------------------------
234
235 public:
236 //============== Methoden
237 //-------------------------------------------------------------------------
250 //-----------------------------------------------------------------------
274 virtual int preDeleteInBase( glo::EnDeepMode eDeepMode, void *& prData ) override;
275 //-----------------------------------------------------------------------
302 virtual void postDeleteInBase( int iDeleteErr, glo::EnDeepMode eDeepMode, void * pData ) override;
303 //-----------------------------------------------------------------------
315 void setName( const std::string & rsName );
316 //-----------------------------------------------------------------------
328 std::string getName() const;
329 //-----------------------------------------------------------------------
346 int setBankAccount( const std::string & rsIBAN, const std::string & rsBIC );
347 //-----------------------------------------------------------------------
367 int setBankAccount( Bank & rBank, const std::string & rsIBAN );
368 int setBankAccount( std::shared_ptr< Bank > rBank, const std::string & rsIBAN );
369 //-----------------------------------------------------------------------
385 int removeBankAccount( const std::string & rsIBAN );
386 //-----------------------------------------------------------------------
406 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, glo::EnSeekMode eMode );
407 //-----------------------------------------------------------------------
427 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, const std::string & rsIBAN );
428 //-----------------------------------------------------------------------
446 int getBankAccounts( std::vector< std::shared_ptr< BankAccount > > & rRetVal, std::shared_ptr< Bank> rBank );
447 //-----------------------------------------------------------------------
463 int getBank( std::shared_ptr< Bank > & rRetVal, const std::string & rsIBAN );
464 //-----------------------------------------------------------------------
465
466 private:
467 //============== Operatoren
468 //-------------------------------------------------------------------------
479 //-------------------------------------------------------------------------
480};
481//-----------------------------------------------------------------------------
482//@@gloNamespaceCurlyBracketsBEGIN
483//@@gloNamespaceCurlyBracketsEND
484//-----------------------------------------------------------------------------
485#endif
Header for Persistent
#define transient
Definition GloPersistent.h:184
#define persistent
Definition GloPersistent.h:169
Header and source for TAllSet
A bank customer's bank account at a bank.
Definition BankAccount.h:117
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:150
int setBankAccount(Bank &rBank, const std::string &rsIBAN)
Person(const std::string &rsName)
glo::TAllSet< BankAccount > m_BankAccounts
Definition Person.h:173
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)
friend class Bank
Definition Person.h:178
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:245
Definition GloBasePersistent.h:60