BankAndCustomer
Loading...
Searching...
No Matches
BankAccount.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_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 for Bank
Header for 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 for Person
A bank customer's bank account at a 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 and get method.
Definition BankAccount.h:266
BankAccount(const BankAccount &)
int getBank(std::shared_ptr< Bank > &rRetVal)
Set and get method.
int getBankCustomer(std::shared_ptr< Person > &rRetVal)
Set and get method.
BankAccount & operator=(const BankAccount &)
void setBankCustomerObjID(const glo::ObjID &rObjID)
Set and get method.
Definition BankAccount.h:263
void setIBAN(const std::string &rsIBAN)
Set and get method.
Definition BankAccount.h:261
glo::ObjID getBankObjID() const
Set and get method.
Definition BankAccount.h:267
glo::ObjID getBankCustomerObjID() const
Set and get method.
Definition BankAccount.h:264
std::string getIBAN() const
Set and get method.
Definition BankAccount.h:262
A bank or other money management organization.
Definition Bank.h:98
An abstract person from which natural and legal persons can be derived.
Definition Person.h:99
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
The base class of the persistent classes. All persistent classes must be derived from this class to b...
Definition GloPersistent.h:242
ObjID getObjID() const
A reference (as attribute) of a persistent object to another persistent object in the database.
Definition GloTOndemand.h:102
virtual int setReference(const ObjID &rObjID) override
Definition GloTOndemand.h:518
Definition GloBasePersistent.h:60