BankAndCustomer
Alle Klassen Namensbereiche Dateien Funktionen Variablen Freundbeziehungen Makrodefinitionen Seiten
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}
68//@@gloForwardsEND
69
70//@@gloSuperClassIncludesBEGIN
71#include <GloPersistent.h>
72//@@gloSuperClassIncludesEND
73
74//@@gloReferencesIncludesBEGIN
75#include "Bank.h"
76#include "Person.h"
77//@@gloReferencesIncludesEnd
78
79//-----------------------------------------------------------------------------
80//@@gloNamespaceNamesBEGIN
81//@@gloNamespaceNamesEND
82//-----------------------------------------------------------------------------
83//@@gloClassDeclarationBEGIN
84// Glo-BaseVersion:1742044181
99//@@gloClassDeclarationEND
100{
101 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
102 //@@gloBeforeKeywordPersistentBEGIN
104 //@@gloBeforeKeywordPersistentEND
105 private persistent:
106 //@@gloBehindKeywordPersistentBEGIN
108 //@@gloBehindKeywordPersistentEND
109 //-------------------------------------------------------------------------
111 //-------------------------------------------------------------------------
120 GLO_INDEX( IDXIBAN, BankAccount.m_IBAN[34], UNIQUE | UNDEFINED );
121 //-------------------------------------------------------------------------
130 GLO_INDEX( IDXCustomer, BankAccount.m_BankCustomer[32], UNDEFINED );
131 //-------------------------------------------------------------------------
139 GLO_INDEX( IDXBank, BankAccount.m_Bank[32], UNDEFINED );
140 //-------------------------------------------------------------------------
148 GLO_INDEX( IDXBankAndCustomer, BankAccount.m_Bank[32] & BankAccount.m_BankCustomer[32], USE_DELIMITER | UNDEFINED );
149 //-------------------------------------------------------------------------
150 private:
151 //-------------------------------------------------------------------------
167 std::string m_IBAN; // TableName:BankAccount FieldPos:1 TypeInfo:34
168 //-------------------------------------------------------------------------
178 glo::TOndemand< Person > m_BankCustomer; // TableName:BankAccount FieldPos:2
179 //-------------------------------------------------------------------------
189 glo::TOndemand< Bank > m_Bank; // TableName:BankAccount FieldPos:3
190 //-------------------------------------------------------------------------
191 private transient:
192 //@@gloBehindKeywordPersistentBEGIN
194 //@@gloBehindKeywordPersistentEND
195 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
196
197 public:
198 //============== Constructors, destructor
199 //-------------------------------------------------------------------------
209 BankAccount();
210 //-------------------------------------------------------------------------
226 BankAccount( const std::string & rsIBAN, const glo::ObjID & objIdBank, const glo::ObjID & objIdCustomer );
227 //-------------------------------------------------------------------------
238 //-------------------------------------------------------------------------
239
240 private:
241 //============== Copy-Konstruktor
242 //-------------------------------------------------------------------------
253 //-------------------------------------------------------------------------
254
255 public:
256 //============== methods
257 //-----------------------------------------------------------------------
259
268 void setIBAN( const std::string & rsIBAN ) { m_IBAN = rsIBAN; };
269 std::string getIBAN() const { return m_IBAN; };
270 void setBankCustomerObjID( const glo::ObjID & rObjID ) { m_BankCustomer.setReference( rObjID ); };
271 glo::ObjID getBankCustomerObjID( ) const { return m_BankCustomer.getObjID(); };
272 int getBankCustomer( std::shared_ptr< Person > & rRetVal );
273 void setBankObjID( const glo::ObjID & rObjID ) { m_Bank.setReference(rObjID); };
274 glo::ObjID getBankObjID( ) const { return m_Bank.getObjID(); };
275 int getBank( std::shared_ptr< Bank > & rRetVal );
277 //-----------------------------------------------------------------------
278
279 private:
280 //============== Operatoren
281 //-------------------------------------------------------------------------
292 //-------------------------------------------------------------------------
293};
294//-----------------------------------------------------------------------------
295//@@gloNamespaceCurlyBracketsBEGIN
296//@@gloNamespaceCurlyBracketsEND
297//-----------------------------------------------------------------------------
298#endif
Header für Bank
Header für Persistent
#define transient
Definition GloPersistent.h:184
#define persistent
Definition GloPersistent.h:169
Header für Person
GLO_INDEX(IDXIBAN, BankAccount.m_IBAN[34], UNIQUE|UNDEFINED)
GLO_INDEX(IDXCustomer, BankAccount.m_BankCustomer[32], UNDEFINED)
GLO_INDEX(IDXBank, BankAccount.m_Bank[32], UNDEFINED)
GLO_INDEX(IDXBankAndCustomer, BankAccount.m_Bank[32] &BankAccount.m_BankCustomer[32], USE_DELIMITER|UNDEFINED)
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:273
glo::TOndemand< Bank > m_Bank
Definition BankAccount.h:189
GLO_OBJECT(BankAccount:glo::Persistent)
BankAccount(const BankAccount &)
int getBank(std::shared_ptr< Bank > &rRetVal)
Set- und Get-Methode.
std::string m_IBAN
Definition BankAccount.h:167
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:270
void setIBAN(const std::string &rsIBAN)
Set- und Get-Methode.
Definition BankAccount.h:268
glo::ObjID getBankObjID() const
Set- und Get-Methode.
Definition BankAccount.h:274
glo::ObjID getBankCustomerObjID() const
Set- und Get-Methode.
Definition BankAccount.h:271
glo::TOndemand< Person > m_BankCustomer
Definition BankAccount.h:178
std::string getIBAN() const
Set- und Get-Methode.
Definition BankAccount.h:269
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:245
Definition GloBasePersistent.h:60