BankAndCustomer
Lade ...
Suche ...
Keine Treffer
Person.h
gehe zur Dokumentation dieser Datei
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
61//@@gloFileDescriptionEND
62//-----------------------------------------------------------------------------
63//@@gloForwardsBEGIN
64namespace glo
65{
66 class Base;
67}
68//@@gloForwardsEND
69class BankAccount;
70//@@gloSuperClassIncludesBEGIN
71#include <GloPersistent.h>
72//@@gloSuperClassIncludesEND
73#include <GloTAllSet.h>
74//@@gloReferencesIncludesBEGIN
75//@@gloReferencesIncludesEnd
76
77//-----------------------------------------------------------------------------
78//@@gloNamespaceNamesBEGIN
79//@@gloNamespaceNamesEND
80//-----------------------------------------------------------------------------
81//@@gloClassDeclarationBEGIN
82// Glo-BaseVersion:1730810247
97class Person : public glo::Persistent
98//@@gloClassDeclarationEND
99{
100 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
101 //@@gloBeforeKeywordPersistentBEGIN
103 //@@gloBeforeKeywordPersistentEND
104 private persistent:
105 //@@gloBehindKeywordPersistentBEGIN
107 //@@gloBehindKeywordPersistentEND
108 //-------------------------------------------------------------------------
110 //-------------------------------------------------------------------------
118 GLO_INDEX( IDXName, Person.m_Name[255], DEU-2 & AUT & DNK & EST & FIN & FRA & ISL & NOR & SWE );
119 //-------------------------------------------------------------------------
120 private:
121 //-------------------------------------------------------------------------
130 std::string m_Name; // TableName:Person FieldPos:1
131 //-------------------------------------------------------------------------
132 //@@gloBeforeKeywordTransientBEGIN
134 //@@gloBeforeKeywordTransientEND
135 private transient:
136 //@@gloBehindKeywordTransientBEGIN
138 //@@gloBehindKeywordTransientEND
139 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
140
141 //-------------------------------------------------------------------------
153 //-------------------------------------------------------------------------
154
155 //============== Friends
156 //-----------------------------------------------------------------------
157 friend class Bank;
158 //-----------------------------------------------------------------------
159
160 public:
161 //============== Constructors, destructor
162 //-------------------------------------------------------------------------
173 //-------------------------------------------------------------------------
185 Person( const std::string & rsName );
186 //-------------------------------------------------------------------------
197 //-------------------------------------------------------------------------
198
199 private:
200 //============== Copy-Konstruktor
201 //-------------------------------------------------------------------------
211 Person( const Person & );
212 //-------------------------------------------------------------------------
213
214 public:
215 //============== Methoden
216 //-------------------------------------------------------------------------
229 //-----------------------------------------------------------------------
251 virtual int preDeleteInBase( glo::EnDeepMode eDeepMode, void *& prData ) override;
252 //-----------------------------------------------------------------------
278 virtual void postDeleteInBase( int iDeleteErr, glo::EnDeepMode eDeepMode, void * pData ) override;
279 //-----------------------------------------------------------------------
291 void setName( const std::string & rsName );
292 //-----------------------------------------------------------------------
304 std::string getName() const;
305 //-----------------------------------------------------------------------
322 int setBankAccount( const std::string & rsIBAN, const std::string & rsBIC );
323 //-----------------------------------------------------------------------
343 int setBankAccount( Bank & rBank, const std::string & rsIBAN );
344 int setBankAccount( std::shared_ptr< Bank > rBank, const std::string & rsIBAN );
345 //-----------------------------------------------------------------------
361 int removeBankAccount( const std::string & rsIBAN );
362 //-----------------------------------------------------------------------
382 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, glo::EnSeekMode eMode );
383 //-----------------------------------------------------------------------
403 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, const std::string & rsIBAN );
404 //-----------------------------------------------------------------------
422 int getBankAccounts( std::vector< std::shared_ptr< BankAccount > > & rRetVal, std::shared_ptr< Bank> rBank );
423 //-----------------------------------------------------------------------
439 int getBank( std::shared_ptr< Bank > & rRetVal, const std::string & rsIBAN );
440 //-----------------------------------------------------------------------
441
442 private:
443 //============== Operatoren
444 //-------------------------------------------------------------------------
455 //-------------------------------------------------------------------------
456};
457//-----------------------------------------------------------------------------
458//@@gloNamespaceCurlyBracketsBEGIN
459//@@gloNamespaceCurlyBracketsEND
460//-----------------------------------------------------------------------------
461#endif
Header für Persistent
#define transient
Definition GloPersistent.h:181
#define persistent
Definition GloPersistent.h:166
Header und Source für TAllSet
Das Bankkonto eines Bankkunden bei einer Bank.
Definition BankAccount.h:105
Eine Bank oder eine andere Geldverwaltungsorganisation.
Definition Bank.h:98
Eine abstrakte Person, aus der sich natürliche und juristische Personen ableiten lassen.
Definition Person.h:99
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:130
int setBankAccount(Bank &rBank, const std::string &rsIBAN)
Person(const std::string &rsName)
glo::TAllSet< BankAccount > m_BankAccounts
Definition Person.h:152
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()
Die Basisklasse der persistenten Klassen. Von dieser Klasse müssen alle persistenten Klassen abgeleit...
Definition GloPersistent.h:242
Definition GloBasePersistent.h:60