BankAndCustomer
Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen 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
78//@@gloFileDescriptionEND
79//-----------------------------------------------------------------------------
80//@@gloForwardsBEGIN
81namespace glo
82{
83 class Base;
84}
85//@@gloForwardsEND
86
87//@@gloSuperClassIncludesBEGIN
88#include <GloPersistent.h>
89//@@gloSuperClassIncludesEND
90
91//@@gloReferencesIncludesBEGIN
92#include "Bank.h"
93#include "Person.h"
94//@@gloReferencesIncludesEnd
95
96//-----------------------------------------------------------------------------
97//@@gloNamespaceNamesBEGIN
98//@@gloNamespaceNamesEND
99//-----------------------------------------------------------------------------
100//@@gloClassDeclarationBEGIN
101// Glo-BaseVersion:1742566122
116//@@gloClassDeclarationEND
117{
118 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
119 //@@gloBeforeKeywordPersistentBEGIN
121 //@@gloBeforeKeywordPersistentEND
122 private persistent:
123 //@@gloBehindKeywordPersistentBEGIN
125 //@@gloBehindKeywordPersistentEND
126 //-------------------------------------------------------------------------
128 //-------------------------------------------------------------------------
137 GLO_INDEX( IDXIBAN, BankAccount.m_IBAN[34], UNIQUE | UNDEFINED );
138 //-------------------------------------------------------------------------
147 GLO_INDEX( IDXCustomer, BankAccount.m_BankCustomer[32], UNDEFINED );
148 //-------------------------------------------------------------------------
156 GLO_INDEX( IDXBank, BankAccount.m_Bank[32], UNDEFINED );
157 //-------------------------------------------------------------------------
165 GLO_INDEX( IDXBankAndCustomer, BankAccount.m_Bank[32] & BankAccount.m_BankCustomer[32], USE_DELIMITER | UNDEFINED );
166 //-------------------------------------------------------------------------
167 private:
168 //-------------------------------------------------------------------------
184 std::string m_IBAN; // TableName:BankAccount FieldPos:1 TypeInfo:34
185 //-------------------------------------------------------------------------
195 glo::TOndemand< Person > m_BankCustomer; // TableName:BankAccount FieldPos:2
196 //-------------------------------------------------------------------------
206 glo::TOndemand< Bank > m_Bank; // TableName:BankAccount FieldPos:3
207 //-------------------------------------------------------------------------
208 private transient:
209 //@@gloBehindKeywordPersistentBEGIN
211 //@@gloBehindKeywordPersistentEND
212 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
213
214 public:
215 //============== Constructors, destructor
216 //-------------------------------------------------------------------------
226 BankAccount();
227 //-------------------------------------------------------------------------
245 BankAccount( const std::string & rsIBAN, const glo::ObjID & objIdBank, const glo::ObjID & objIdCustomer );
246 //-------------------------------------------------------------------------
257 //-------------------------------------------------------------------------
258
259 private:
260 //============== Copy-Konstruktor
261 //-------------------------------------------------------------------------
272 //-------------------------------------------------------------------------
273
274 public:
275 //============== methods
276 //-----------------------------------------------------------------------
278
287 void setIBAN( const std::string & rsIBAN ) { m_IBAN = rsIBAN; };
288 std::string getIBAN() const { return m_IBAN; };
289 void setBankCustomerObjID( const glo::ObjID & rObjID ) { m_BankCustomer.set( rObjID ); };
290 glo::ObjID getBankCustomerObjID( ) const { return m_BankCustomer.getObjID(); };
291 int getBankCustomer( std::shared_ptr< Person > & rRetVal );
292 void setBankObjID( const glo::ObjID & rObjID ) { m_Bank.set(rObjID); };
293 glo::ObjID getBankObjID( ) const { return m_Bank.getObjID(); };
294 int getBank( std::shared_ptr< Bank > & rRetVal );
296 //-----------------------------------------------------------------------
297
298 private:
299 //============== Operatoren
300 //-------------------------------------------------------------------------
311 //-------------------------------------------------------------------------
312};
313//-----------------------------------------------------------------------------
314//@@gloNamespaceCurlyBracketsBEGIN
315//@@gloNamespaceCurlyBracketsEND
316//-----------------------------------------------------------------------------
317#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:292
glo::TOndemand< Bank > m_Bank
Definition BankAccount.h:206
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:184
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:289
void setIBAN(const std::string &rsIBAN)
Set- und Get-Methode.
Definition BankAccount.h:287
glo::ObjID getBankObjID() const
Set- und Get-Methode.
Definition BankAccount.h:293
glo::ObjID getBankCustomerObjID() const
Set- und Get-Methode.
Definition BankAccount.h:290
glo::TOndemand< Person > m_BankCustomer
Definition BankAccount.h:195
std::string getIBAN() const
Set- und Get-Methode.
Definition BankAccount.h:288
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