BankAndCustomer
Lade ...
Suche ...
Keine Treffer
BankAccount.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_BANKACCOUNT_H
9#define INC_BANKACCOUNT_H
10//@@gloIncludeGuardEND
11//-----------------------------------------------------------------------------
12//@@gloFileDescriptionBEGIN
61//@@gloFileDescriptionEND
62//-----------------------------------------------------------------------------
63//@@gloForwardsBEGIN
64namespace glo
65{
66 class Base;
67}
68class Bank;
69class Person;
70//@@gloForwardsEND
71
72class Bank;
73class Person;
74
75//@@gloSuperClassIncludesBEGIN
76#include <GloPersistent.h>
77//@@gloSuperClassIncludesEND
78
79//@@gloReferencesIncludesBEGIN
80#include "Bank.h"
81#include "Person.h"
82//@@gloReferencesIncludesEnd
83
84//-----------------------------------------------------------------------------
85//@@gloNamespaceNamesBEGIN
86//@@gloNamespaceNamesEND
87//-----------------------------------------------------------------------------
88//@@gloClassDeclarationBEGIN
89// Glo-BaseVersion:1730810247
104//@@gloClassDeclarationEND
105{
106 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
108 private persistent:
109 //-------------------------------------------------------------------------
111 //-------------------------------------------------------------------------
119 GLO_INDEX( IDXIBAN, BankAccount.m_IBAN[34], UNIQUE | UNDEFINED );
120 //-------------------------------------------------------------------------
128 GLO_INDEX( IDXCustomer, BankAccount.m_BankCustomer[32], UNDEFINED );
129 //-------------------------------------------------------------------------
137 GLO_INDEX( IDXBank, BankAccount.m_Bank[32], UNDEFINED );
138 //-------------------------------------------------------------------------
146 GLO_INDEX( IDXBankAndCustomer, BankAccount.m_Bank[32] & BankAccount.m_BankCustomer[32], USE_DELIMITER | UNDEFINED );
147 //-------------------------------------------------------------------------
148 private:
149 //-------------------------------------------------------------------------
164 std::string m_IBAN; // TableName:BankAccount FieldPos:1 TypeInfo:34
165 //-------------------------------------------------------------------------
174 glo::TOndemand< Person > m_BankCustomer; // TableName:BankAccount FieldPos:2
175 //-------------------------------------------------------------------------
184 glo::TOndemand< Bank > m_Bank; // TableName:BankAccount FieldPos:3
185 //-------------------------------------------------------------------------
186 private transient:
188 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
189
190 public:
191 //============== Constructors, destructor
192 //-------------------------------------------------------------------------
203 //-------------------------------------------------------------------------
219 BankAccount( const std::string & rsIBAN, const glo::ObjID & objIdBank, const glo::ObjID & objIdCustomer );
220 //-------------------------------------------------------------------------
231 //-------------------------------------------------------------------------
232
233 private:
234 //============== Copy-Konstruktor
235 //-------------------------------------------------------------------------
246 //-------------------------------------------------------------------------
247
248 public:
249 //============== methods
250 //-----------------------------------------------------------------------
252
261 void setIBAN( const std::string & rsIBAN ) { m_IBAN = rsIBAN; };
262 std::string getIBAN() const { return m_IBAN; };
263 void setBankCustomerObjID( const glo::ObjID & rObjID ) { m_BankCustomer.setReference( rObjID ); };
264 glo::ObjID getBankCustomerObjID( ) const { return m_BankCustomer.getObjID(); };
265 int getBankCustomer( std::shared_ptr< Person > & rRetVal );
266 void setBankObjID( const glo::ObjID & rObjID ) { m_Bank.setReference(rObjID); };
267 glo::ObjID getBankObjID( ) const { return m_Bank.getObjID(); };
268 int getBank( std::shared_ptr< Bank > & rRetVal );
270 //-----------------------------------------------------------------------
271
272 private:
273 //============== Operatoren
274 //-------------------------------------------------------------------------
285 //-------------------------------------------------------------------------
286};
287//-----------------------------------------------------------------------------
288//@@gloNamespaceCurlyBracketsBEGIN
289//@@gloNamespaceCurlyBracketsEND
290//-----------------------------------------------------------------------------
291#endif
Header für Bank
Header für Persistent
#define transient
Definition GloPersistent.h:181
#define persistent
Definition GloPersistent.h:166
#define GLO_OBJECT(...)
Definition GloPersistent.h:82
#define GLO_INDEX(...)
Definition GloPersistent.h:134
Header für Person
Das Bankkonto eines Bankkunden bei einer Bank.
Definition BankAccount.h:105
BankAccount(const std::string &rsIBAN, const glo::ObjID &objIdBank, const glo::ObjID &objIdCustomer)
void setBankObjID(const glo::ObjID &rObjID)
Set- und Get-Methode.
Definition BankAccount.h:266
BankAccount(const BankAccount &)
int getBank(std::shared_ptr< Bank > &rRetVal)
Set- und Get-Methode.
int getBankCustomer(std::shared_ptr< Person > &rRetVal)
Set- und Get-Methode.
BankAccount & operator=(const BankAccount &)
void setBankCustomerObjID(const glo::ObjID &rObjID)
Set- und Get-Methode.
Definition BankAccount.h:263
void setIBAN(const std::string &rsIBAN)
Set- und Get-Methode.
Definition BankAccount.h:261
glo::ObjID getBankObjID() const
Set- und Get-Methode.
Definition BankAccount.h:267
glo::ObjID getBankCustomerObjID() const
Set- und Get-Methode.
Definition BankAccount.h:264
std::string getIBAN() const
Set- und Get-Methode.
Definition BankAccount.h:262
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
Ein Objekt-ID besteht aus der Klassen-ID, einer Datenbank-ID und der eigentlichen eindeutigen ObjektZ...
Definition GloObjID.h:84
Die Basisklasse der persistenten Klassen. Von dieser Klasse müssen alle persistenten Klassen abgeleit...
Definition GloPersistent.h:242
ObjID getObjID() const
Referenz (als Attribut) eines persistenten Objekte auf ein anderes persistentes Objekt in der Datenba...
Definition GloTOndemand.h:102
virtual int setReference(const ObjID &rObjID) override
Definition GloTOndemand.h:518
Definition GloBasePersistent.h:60