BankAndCustomer
Alle Klassen Namensbereiche Dateien Funktionen Variablen Freundbeziehungen Makrodefinitionen Seiten
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:1742044181
97class Person : public glo::Persistent
98//@@gloClassDeclarationEND
99{
100 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
101 //@@gloBeforeKeywordPersistentBEGIN
103 //@@gloBeforeKeywordPersistentEND
104 private persistent:
105 //@@gloBehindKeywordPersistentBEGIN
107 //@@gloBehindKeywordPersistentEND
108 //-------------------------------------------------------------------------
110 //-------------------------------------------------------------------------
120 GLO_INDEX( IDXName, Person.m_Name[255], DEU-2 & AUT & DNK & EST & FIN & FRA & ISL & NOR & SWE );
121 //-------------------------------------------------------------------------
122 private:
123 //-------------------------------------------------------------------------
133 std::string m_Name; // TableName:Person FieldPos:1
134 //-------------------------------------------------------------------------
135 //@@gloBeforeKeywordTransientBEGIN
137 //@@gloBeforeKeywordTransientEND
138 private transient:
139 //@@gloBehindKeywordTransientBEGIN
141 //@@gloBehindKeywordTransientEND
142 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
143
144 private:
145 //-------------------------------------------------------------------------
157 //-------------------------------------------------------------------------
158
159 //============== Friends
160 //-----------------------------------------------------------------------
161 friend class Bank;
162 //-----------------------------------------------------------------------
163
164 public:
165 //============== Constructors, destructor
166 //-------------------------------------------------------------------------
177 //-------------------------------------------------------------------------
189 Person( const std::string & rsName );
190 //-------------------------------------------------------------------------
201 //-------------------------------------------------------------------------
202
203 private:
204 //============== Copy-Konstruktor
205 //-------------------------------------------------------------------------
215 Person( const Person & );
216 //-------------------------------------------------------------------------
217
218 public:
219 //============== Methoden
220 //-------------------------------------------------------------------------
233 //-----------------------------------------------------------------------
257 virtual int preDeleteInBase( glo::EnDeepMode eDeepMode, void *& prData ) override;
258 //-----------------------------------------------------------------------
285 virtual void postDeleteInBase( int iDeleteErr, glo::EnDeepMode eDeepMode, void * pData ) override;
286 //-----------------------------------------------------------------------
298 void setName( const std::string & rsName );
299 //-----------------------------------------------------------------------
311 std::string getName() const;
312 //-----------------------------------------------------------------------
329 int setBankAccount( const std::string & rsIBAN, const std::string & rsBIC );
330 //-----------------------------------------------------------------------
350 int setBankAccount( Bank & rBank, const std::string & rsIBAN );
351 int setBankAccount( std::shared_ptr< Bank > rBank, const std::string & rsIBAN );
352 //-----------------------------------------------------------------------
368 int removeBankAccount( const std::string & rsIBAN );
369 //-----------------------------------------------------------------------
389 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, glo::EnSeekMode eMode );
390 //-----------------------------------------------------------------------
410 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, const std::string & rsIBAN );
411 //-----------------------------------------------------------------------
429 int getBankAccounts( std::vector< std::shared_ptr< BankAccount > > & rRetVal, std::shared_ptr< Bank> rBank );
430 //-----------------------------------------------------------------------
446 int getBank( std::shared_ptr< Bank > & rRetVal, const std::string & rsIBAN );
447 //-----------------------------------------------------------------------
448
449 private:
450 //============== Operatoren
451 //-------------------------------------------------------------------------
462 //-------------------------------------------------------------------------
463};
464//-----------------------------------------------------------------------------
465//@@gloNamespaceCurlyBracketsBEGIN
466//@@gloNamespaceCurlyBracketsEND
467//-----------------------------------------------------------------------------
468#endif
Header für Persistent
#define transient
Definition GloPersistent.h:184
#define persistent
Definition GloPersistent.h:169
Header und Source für TAllSet
Das Bankkonto eines Bankkunden bei einer Bank.
Definition BankAccount.h:100
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:133
int setBankAccount(Bank &rBank, const std::string &rsIBAN)
Person(const std::string &rsName)
glo::TAllSet< BankAccount > m_BankAccounts
Definition Person.h:156
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:161
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:245
Definition GloBasePersistent.h:60