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
53//@@gloFileDescriptionEND
54//-----------------------------------------------------------------------------
55//@@gloForwardsBEGIN
56namespace glo
57{
58 class Base;
59}
60//@@gloForwardsEND
61
62class Bank;
63class Person;
64
65//@@gloSuperClassIncludesBEGIN
66#include <GloPersistent.h>
67//@@gloSuperClassIncludesEND
68
69//@@gloReferencesIncludesBEGIN
70//@@gloReferencesIncludesEnd
71
72//-----------------------------------------------------------------------------
73//@@gloNamespaceNamesBEGIN
74//@@gloNamespaceNamesEND
75//-----------------------------------------------------------------------------
76//@@gloClassDeclarationBEGIN
77// Glo-BaseVersion:1718706516
92//@@gloClassDeclarationEND
93{
94 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
96 private persistent:
97 //-------------------------------------------------------------------------
99 //-------------------------------------------------------------------------
107 GLO_INDEX( IDXIBAN, BankAccount.m_IBAN[34], UNIQUE | UNDEFINED );
108 //-------------------------------------------------------------------------
116 GLO_INDEX( IDXCustomer, BankAccount.m_BankCustomer[32], UNDEFINED );
117 //-------------------------------------------------------------------------
125 GLO_INDEX( IDXBank, BankAccount.m_Bank[32], UNDEFINED );
126 //-------------------------------------------------------------------------
134 GLO_INDEX( IDXBankAndCustomer, BankAccount.m_Bank[32] & BankAccount.m_BankCustomer[32], USE_DELIMITER | UNDEFINED );
135 //-------------------------------------------------------------------------
136 private:
137 //-------------------------------------------------------------------------
152 std::string m_IBAN; // TableName:BankAccount FieldPos:1 TypeInfo:34
153 //-------------------------------------------------------------------------
162 glo::ObjID m_BankCustomer; // TableName:BankAccount FieldPos:2
163 //-------------------------------------------------------------------------
172 glo::ObjID m_Bank; // TableName:BankAccount FieldPos:3
173 //-------------------------------------------------------------------------
174 private transient:
176 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
177
178 public:
179 //============== Constructors, destructor
180 //-------------------------------------------------------------------------
191 //-------------------------------------------------------------------------
207 BankAccount( const std::string & rsIBAN, const glo::ObjID & objIdBank, const glo::ObjID & objIdCustomer );
208 //-------------------------------------------------------------------------
219 //-------------------------------------------------------------------------
220
221 private:
222 //============== Copy-Konstruktor
223 //-------------------------------------------------------------------------
234 //-------------------------------------------------------------------------
235
236 public:
237 //============== methods
238 //-----------------------------------------------------------------------
240
249 void setIBAN( const std::string & rsIBAN ) { m_IBAN = rsIBAN; };
250 std::string getIBAN() const { return m_IBAN; };
251 void setBankCustomerObjID( const glo::ObjID & rObjID ) { m_BankCustomer = rObjID; };
252 glo::ObjID getBankCustomerObjID( ) const { return m_BankCustomer; };
253 int getBankCustomer( std::shared_ptr< Person > & rRetVal ) const;
254 void setBankObjID( const glo::ObjID & rObjID ) { m_Bank = rObjID; };
255 glo::ObjID getBankObjID( ) const { return m_Bank; };
256 int getBank( std::shared_ptr< Bank > & rRetVal ) const;
258 //-----------------------------------------------------------------------
259
260 private:
261 //============== Operatoren
262 //-------------------------------------------------------------------------
273 //-------------------------------------------------------------------------
274};
275//-----------------------------------------------------------------------------
276//@@gloNamespaceCurlyBracketsBEGIN
277//@@gloNamespaceCurlyBracketsEND
278//-----------------------------------------------------------------------------
279#endif
Header for Persistent
#define transient
Definition GloPersistent.h:174
#define persistent
Definition GloPersistent.h:159
#define GLO_OBJECT(...)
Definition GloPersistent.h:75
#define GLO_INDEX(...)
Definition GloPersistent.h:127
A bank customer's bank account at a bank.
Definition BankAccount.h:93
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:254
BankAccount(const BankAccount &)
BankAccount & operator=(const BankAccount &)
void setBankCustomerObjID(const glo::ObjID &rObjID)
Set and get method.
Definition BankAccount.h:251
void setIBAN(const std::string &rsIBAN)
Set and get method.
Definition BankAccount.h:249
glo::ObjID getBankObjID() const
Set and get method.
Definition BankAccount.h:255
glo::ObjID getBankCustomerObjID() const
Set and get method.
Definition BankAccount.h:252
std::string getIBAN() const
Set and get method.
Definition BankAccount.h:250
int getBank(std::shared_ptr< Bank > &rRetVal) const
Set and get method.
int getBankCustomer(std::shared_ptr< Person > &rRetVal) const
Set and get method.
A bank or other money management organization.
Definition Bank.h:90
An abstract person from which natural and legal persons can be derived.
Definition Person.h:91
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:77
The base class of the persistent classes. All persistent classes must be derived from this class to b...
Definition GloPersistent.h:235
Definition GloBasePersistent.h:52