BankAndCustomer
Loading...
Searching...
No Matches
Bank.h
Go to the documentation of this file.
1// ****************************************************************************
2// Created by GlobalObjects source code generator version 1.0.9
3// Creation date: 2024.06.16 - 21:51:20
4// Database: "BankAndCustomer"
5// ****************************************************************************
6//-----------------------------------------------------------------------------
7//@@gloIncludeGuardBEGIN
8#ifndef INC_BANK_H
9#define INC_BANK_H
10//@@gloIncludeGuardEND
11//-----------------------------------------------------------------------------
12//@@gloFileDescriptionBEGIN
61//@@gloFileDescriptionEND
62//-----------------------------------------------------------------------------
63//@@gloForwardsBEGIN
64namespace glo
65{
66 class Base;
67}
68//@@gloForwardsEND
69
70//@@gloSuperClassIncludesBEGIN
71#include "LegalEntity.h"
72//@@gloSuperClassIncludesEND
73
74//@@gloReferencesIncludesBEGIN
75//@@gloReferencesIncludesEnd
76
77//-----------------------------------------------------------------------------
78//@@gloNamespaceNamesBEGIN
79//@@gloNamespaceNamesEND
80//-----------------------------------------------------------------------------
81//@@gloClassDeclarationBEGIN
82// Glo-BaseVersion:1730810247
96class Bank : public LegalEntity
97//@@gloClassDeclarationEND
98{
99 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
100 //@@gloBeforeKeywordPersistentBEGIN
102 //@@gloBeforeKeywordPersistentEND
103 private persistent:
104 //@@gloBehindKeywordPersistentBEGIN
106 //@@gloBehindKeywordPersistentEND
107 //-------------------------------------------------------------------------
109 //-------------------------------------------------------------------------
117 GLO_INDEX( IDXBIC, Bank.m_BIC[11], UNIQUE | UNDEFINED );
118 //-------------------------------------------------------------------------
119 private:
120 //-------------------------------------------------------------------------
133 std::string m_BIC; // TableName:Bank FieldPos:1 TypeInfo:11
134 //-------------------------------------------------------------------------
135 //@@gloBeforeKeywordTransientBEGIN
137 //@@gloBeforeKeywordTransientEND
138 private transient:
139 //@@gloBehindKeywordTransientBEGIN
141 //@@gloBehindKeywordTransientEND
142 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
143 //-------------------------------------------------------------------------
159 //-------------------------------------------------------------------------
160
161 public:
162 //============== Constructors, destructor
163 //-------------------------------------------------------------------------
174 //-------------------------------------------------------------------------
188 Bank( const std::string & rsName, const std::string & rsBIC );
189 //-------------------------------------------------------------------------
200 //-------------------------------------------------------------------------
201
202 private:
203 //============== Copy-Konstruktor
204 //-------------------------------------------------------------------------
214 Bank( const Bank & );
215 //-------------------------------------------------------------------------
216
217 public:
218 //============== Methoden
219 //-------------------------------------------------------------------------
232 //-----------------------------------------------------------------------
254 virtual int preDeleteInBase( glo::EnDeepMode eDeepMode, void *& prData ) override;
255 //-----------------------------------------------------------------------
281 virtual void postDeleteInBase( int iDeleteErr, glo::EnDeepMode eDeepMode, void * pData ) override;
282 //-----------------------------------------------------------------------
294 void setBIC( const std::string & rsBIC );
295 //-----------------------------------------------------------------------
307 std::string getBIC() const;
308 //-----------------------------------------------------------------------
310
329 int setBankAccount( Person & rBankCustomer, const std::string & rsIBAN );
330 int setBankAccount( std::shared_ptr< Person> rBankCustomer, const std::string & rsIBAN );
332 //-----------------------------------------------------------------------
350 int removeBankAccount( const std::string & rsIBAN );
351 //-----------------------------------------------------------------------
387 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, glo::EnSeekMode eMode );
388 //-----------------------------------------------------------------------
404 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, const std::string & rsIBAN );
405 //-----------------------------------------------------------------------
423 int getBankAccounts( std::vector< std::shared_ptr< BankAccount > > & rRetVal,
424 std::shared_ptr< Person> rBankCustomer );
425 //-----------------------------------------------------------------------
441 int getBankCustomer( std::shared_ptr< Person > & rRetVal, const std::string & rsIBAN );
442 //-----------------------------------------------------------------------
443
444 private:
445 //============== Operatoren
446 //-------------------------------------------------------------------------
456 Bank & operator= ( const Bank & );
457 //-------------------------------------------------------------------------
458};
459//-----------------------------------------------------------------------------
460//@@gloNamespaceCurlyBracketsBEGIN
461//@@gloNamespaceCurlyBracketsEND
462//-----------------------------------------------------------------------------
463#endif
#define transient
Definition GloPersistent.h:181
#define persistent
Definition GloPersistent.h:166
A bank or other money management organization.
Definition Bank.h:98
Bank & operator=(const Bank &)
int getBankAccount(std::shared_ptr< BankAccount > &rRetVal, const std::string &rsIBAN)
GLO_OBJECT(Bank:LegalEntity)
Bank(const Bank &)
glo::TAllSet< BankAccount > m_AllBankAccounts
Definition Bank.h:158
virtual int preDeleteInBase(glo::EnDeepMode eDeepMode, void *&prData) override
int getBankAccounts(std::vector< std::shared_ptr< BankAccount > > &rRetVal, std::shared_ptr< Person > rBankCustomer)
Bank(const std::string &rsName, const std::string &rsBIC)
virtual void postDeleteInBase(int iDeleteErr, glo::EnDeepMode eDeepMode, void *pData) override
GLO_INDEX(IDXBIC, Bank.m_BIC[11], UNIQUE|UNDEFINED)
int initBankAccounts()
void setBIC(const std::string &rsBIC)
int getBankAccount(std::shared_ptr< BankAccount > &rRetVal, glo::EnSeekMode eMode)
int removeBankAccount(const std::string &rsIBAN)
std::string m_BIC
Definition Bank.h:133
std::string getBIC() const
int setBankAccount(Person &rBankCustomer, const std::string &rsIBAN)
Creates a bank account with a passed IBAN for the person passed.
int getBankCustomer(std::shared_ptr< Person > &rRetVal, const std::string &rsIBAN)
int setBankAccount(std::shared_ptr< Person > rBankCustomer, const std::string &rsIBAN)
Creates a bank account with a passed IBAN for the person passed.
An abstract person from which natural and legal persons can be derived.
Definition Person.h:99
Definition GloBasePersistent.h:60