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
53//@@gloFileDescriptionEND
54//-----------------------------------------------------------------------------
55//@@gloForwardsBEGIN
56namespace glo
57{
58 class Base;
59}
60//@@gloForwardsEND
61
62//@@gloSuperClassIncludesBEGIN
63#include "LegalEntity.h"
64//@@gloSuperClassIncludesEND
65
66//@@gloReferencesIncludesBEGIN
67//@@gloReferencesIncludesEnd
68
69//-----------------------------------------------------------------------------
70//@@gloNamespaceNamesBEGIN
71//@@gloNamespaceNamesEND
72//-----------------------------------------------------------------------------
73//@@gloClassDeclarationBEGIN
74// Glo-BaseVersion:1718706516
88class Bank : public LegalEntity
89//@@gloClassDeclarationEND
90{
91 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
92 //@@gloBeforeKeywordPersistentBEGIN
94 //@@gloBeforeKeywordPersistentEND
95 private persistent:
96 //@@gloBehindKeywordPersistentBEGIN
98 //@@gloBehindKeywordPersistentEND
99 //-------------------------------------------------------------------------
101 //-------------------------------------------------------------------------
109 GLO_INDEX( IDXBIC, Bank.m_BIC[11], UNIQUE | UNDEFINED );
110 //-------------------------------------------------------------------------
111 private:
112 //-------------------------------------------------------------------------
125 std::string m_BIC; // TableName:Bank FieldPos:1 TypeInfo:11
126 //-------------------------------------------------------------------------
127 //@@gloBeforeKeywordTransientBEGIN
129 //@@gloBeforeKeywordTransientEND
130 private transient:
131 //@@gloBehindKeywordTransientBEGIN
133 //@@gloBehindKeywordTransientEND
134 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
135 //-------------------------------------------------------------------------
151 //-------------------------------------------------------------------------
152
153 public:
154 //============== Constructors, destructor
155 //-------------------------------------------------------------------------
166 //-------------------------------------------------------------------------
180 Bank( const std::string & rsName, const std::string & rsBIC );
181 //-------------------------------------------------------------------------
192 //-------------------------------------------------------------------------
193
194 private:
195 //============== Copy-Konstruktor
196 //-------------------------------------------------------------------------
206 Bank( const Bank & );
207 //-------------------------------------------------------------------------
208
209 public:
210 //============== Methoden
211 //-------------------------------------------------------------------------
224 //-----------------------------------------------------------------------
246 virtual int preDeleteInBase( glo::EnDeepMode eDeepMode, void *& prData ) override;
247 //-----------------------------------------------------------------------
273 virtual void postDeleteInBase( int iDeleteErr, glo::EnDeepMode eDeepMode, void * pData ) override;
274 //-----------------------------------------------------------------------
286 void setBIC( const std::string & rsBIC );
287 //-----------------------------------------------------------------------
299 std::string getBIC() const;
300 //-----------------------------------------------------------------------
302
321 int setBankAccount( Person & rBankCustomer, const std::string & rsIBAN );
322 int setBankAccount( std::shared_ptr< Person> rBankCustomer, const std::string & rsIBAN );
324 //-----------------------------------------------------------------------
342 int removeBankAccount( const std::string & rsIBAN );
343 //-----------------------------------------------------------------------
379 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, glo::EnSeekMode eMode );
380 //-----------------------------------------------------------------------
396 int getBankAccount( std::shared_ptr< BankAccount > & rRetVal, const std::string & rsIBAN );
397 //-----------------------------------------------------------------------
415 int getBankAccounts( std::vector< std::shared_ptr< BankAccount > > & rRetVal,
416 std::shared_ptr< Person> rBankCustomer );
417 //-----------------------------------------------------------------------
433 int getBankCustomer( std::shared_ptr< Person > & rRetVal, const std::string & rsIBAN );
434 //-----------------------------------------------------------------------
435
436 private:
437 //============== Operatoren
438 //-------------------------------------------------------------------------
448 Bank & operator= ( const Bank & );
449 //-------------------------------------------------------------------------
450};
451//-----------------------------------------------------------------------------
452//@@gloNamespaceCurlyBracketsBEGIN
453//@@gloNamespaceCurlyBracketsEND
454//-----------------------------------------------------------------------------
455#endif
#define transient
Definition GloPersistent.h:174
#define persistent
Definition GloPersistent.h:159
A bank or other money management organization.
Definition Bank.h:90
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:150
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:125
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:91
Definition GloBasePersistent.h:52