BankAndCustomer
Loading...
Searching...
No Matches
BankAccount Class Reference

A bank customer's bank account at a bank. More...

#include <BankAccount.h>

Inheritance diagram for BankAccount:
Collaboration diagram for BankAccount:

Public Member Functions

void setIBAN (const std::string &rsIBAN)
 Set and get method.
std::string getIBAN () const
 Set and get method.
void setBankCustomerObjID (const glo::ObjID &rObjID)
 Set and get method.
glo::ObjID getBankCustomerObjID () const
 Set and get method.
int getBankCustomer (std::shared_ptr< Person > &rRetVal)
 Set and get method.
void setBankObjID (const glo::ObjID &rObjID)
 Set and get method.
glo::ObjID getBankObjID () const
 Set and get method.
int getBank (std::shared_ptr< Bank > &rRetVal)
 Set and get method.
Public Member Functions inherited from glo::Persistent
 Persistent ()
 Persistent (const Persistent &rT)
virtual void activate ()
virtual int assign (Base &rBase) override
virtual void removeBase () override
virtual ObjID getObjID () const override
virtual std::time_t getCreateDate () const override
virtual std::time_t getLastChangeDate () const override
virtual void takeOverRecord (Record *pRecord) override
virtual int preStore (EnDeepMode eDeepMode, void *&prData)
virtual int store (EnDeepMode eDeepMode=DM_SHALLOW) override
virtual void postStore (int iStoreErr, EnDeepMode eDeepMode, void *pData)
virtual int preDeleteInBase (EnDeepMode eDeepMode, void *&prData)
virtual int deleteInBase (EnDeepMode eDeepMode=DM_SHALLOW) override
virtual void postDeleteInBase (int iDeleteErr, EnDeepMode eDeepMode, void *pData)
virtual int preRefresh (void *&prData)
virtual int refresh () override
virtual void postRefresh (int iRefreshErr, void *pData)
virtual int preLock (EnLockMode eLockMode, EnDeepMode eDeepMode, void *&prData)
virtual int lock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) override
virtual int lock (const LockSpecification &rLockSpecification) override
virtual int lockAndRefresh (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) override
virtual int lockAndRefresh (const LockSpecification &rLockSpecification) override
virtual void postLock (int iLockErr, EnLockMode eLockMode, EnDeepMode eDeepMode, void *pData)
virtual int preRelock (EnLockMode eLockMode, EnDeepMode eDeepMode, void *&prData)
virtual int relock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) override
virtual int relock (const LockSpecification &rLockSpecification) override
virtual int relockAndRefresh (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) override
virtual int relockAndRefresh (const LockSpecification &rLockSpecification) override
virtual void postRelock (int iLockErr, EnLockMode eLockMode, EnDeepMode eDeepMode, void *pData)
virtual int preUnlock (EnLockMode eLockMode, EnDeepMode eDeepMode, void *&prData)
virtual int unlock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) override
virtual int unlock (const LockSpecification &rLockSpecification) override
virtual void postUnlock (int iUnlockErr, EnLockMode eLockMode, EnDeepMode eDeepMode, void *pData)
virtual int preSetWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack, void *&prData)
virtual int setWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) override
virtual void postSetWatch (int iSetWatchErr, TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack, void *pData)
virtual int preUnsetWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack, void *&prData)
virtual int unsetWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) override
virtual void postUnsetWatch (int iUnsetWatchErr, TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack, void *pData)
virtual unsigned long getGloClassID () const override
virtual int getTypeAsString (std::string &rsTypeName) override
virtual int setGloAttribute (const AttributeID &rAttributeID, void *pPara)
virtual void * getGloAttribute (const AttributeID &rAttributeID)
virtual int setGloAttribute (const std::string &rstrAttributName, void *pPara)
virtual void * getGloAttribute (const std::string &rstrAttributName)
virtual bool isSameOrSuperClassFrom (const glo::Persistent *pPersistent) const
 Checks if passed object can be cast to this.
virtual bool isSameOrSuperClassFrom (const std::shared_ptr< glo::Persistent > pPersistent) const
 Checks if passed object can be cast to this.
Public Member Functions inherited from glo::BasePersistent
 BasePersistent ()
 BasePersistent (const BasePersistent &rT)
virtual int setBase (Base *pBase) override
virtual Base * getBase () const override
virtual int getClassInfo (ClassInfo *&prClassInfo)
virtual unsigned int remember ()
virtual unsigned int forget ()
virtual bool isAssigned () const
unsigned int getLinkCount () const
int getRecord (Record *&prRecord) const
int getRecord (std::shared_ptr< Record > &rRetVal) const
int getAllPersAttributeNames (std::list< std::string > &rRetValList, const std::vector< unsigned long > *pClassIdVector=nullptr) const
int getAllPersAttributeNamesSortByID (std::map< AttributeID, std::string > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=nullptr) const
int getPersAttribute (BaseRecordAttribute *&prRetVal, const std::string &sName) const
int getPersAttribute (std::shared_ptr< BaseRecordAttribute > &rRetVal, const std::string &sName) const
int getPersAttribute (BaseRecordAttribute *&prRetVal, const AttributeID &rAttributeID) const
int getPersAttribute (std::shared_ptr< BaseRecordAttribute > &rRetVal, const AttributeID &rAttributeID) const
int getAllPersAttributes (std::list< BaseRecordAttribute * > &rRetValList, const std::vector< unsigned long > *pClassIdVector=nullptr) const
int getAllPersAttributes (std::list< std::shared_ptr< BaseRecordAttribute > > &rRetValList, const std::vector< unsigned long > *pClassIdVector=nullptr) const
int getAllPersAttributesSortByName (std::map< std::string, BaseRecordAttribute *, std::less< std::string > > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=nullptr) const
int getAllPersAttributesSortByName (std::map< std::string, std::shared_ptr< BaseRecordAttribute >, std::less< std::string > > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=nullptr) const
int getAllPersAttributesSortByID (std::map< AttributeID, BaseRecordAttribute *, std::less< AttributeID > > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=nullptr) const
int getAllPersAttributesSortByID (std::map< AttributeID, std::shared_ptr< BaseRecordAttribute >, std::less< AttributeID > > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=nullptr) const
virtual bool isStored ()
virtual bool isDeletedInBase ()
virtual int isLocked (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) const
virtual int isLocked (const LockSpecification &rLockSpecification) const
virtual int isPossible (bool bRead, bool bWrite, bool bDelete, EnDeepMode eDeepMode=DM_SHALLOW) const
virtual int isPossible (const LockPossibleSpecification &rLockPossibleSpec, EnDeepMode eDeepMode=DM_SHALLOW) const
virtual int getProcessingPossibilities (LockPossibleSpecification &rLockPossibleSpec, EnDeepMode eDeepMode=DM_SHALLOW) const
virtual int setWatch (const WatchSpecification &rWatchSpec)
virtual int unsetWatch (const WatchSpecification &rWatchSpec)
BasePersistentoperator= (const BasePersistent &rT)
bool operator== (const BasePersistent &rT) const
 Comparison operator, all attributes are compared.
bool operator!= (const BasePersistent &rT) const
 Comparison operator, all attributes are compared.
Public Member Functions inherited from glo::CallBack
 CallBack ()
virtual ~CallBack ()
virtual void notify (NotifyNote &rNote)
CallBackoperator= (const CallBack &rT)
bool operator== (const CallBack &rT) const
 Comparison operator, all attributes are compared.
bool operator!= (const CallBack &rT) const
 Comparison operator, all attributes are compared.

Private Member Functions

 GLO_OBJECT (BankAccount:glo::Persistent)
 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)
 ~BankAccount ()
 BankAccount (const BankAccount &)
BankAccountoperator= (const BankAccount &)

Private Attributes

std::string m_IBAN
glo::TOndemand< Personm_BankCustomer
glo::TOndemand< Bankm_Bank
transient : public: BankAccount()

Additional Inherited Members

Static Public Member Functions inherited from glo::Persistent
static unsigned long getStaticGloClassID ()
static bool isStaticSubClassID (unsigned long ulSubClassID)
static bool isStaticSuperClassID (unsigned long ulSuperClassID)
Public Attributes inherited from glo::CallBack
std::string m_strDebugInfo
Protected Member Functions inherited from glo::Persistent
virtual ~Persistent ()
virtual void insertInObjectSpy () const override
virtual void removeInObjectSpy () const override
virtual void setCreateDate () override
virtual void _postAssign (Base &rBase)
Persistentoperator= (const Persistent &rT)
bool operator== (const Persistent &rT) const
 Comparison operator.
bool operator!= (const Persistent &rT) const
 Comparison operator.
Protected Member Functions inherited from glo::BasePersistent
virtual ~BasePersistent ()
void setSpyaction (bool bSpyaction)
Protected Member Functions inherited from glo::CallBack
 CallBack (const CallBack &rT)
void init ()
void deinit ()
Protected Attributes inherited from glo::BasePersistent
Base * m_pBase
unsigned int m_uiReferenceCount
eut::CriticalSection m_LocalCriticalSection
Record * m_pRecord
bool m_bSpyaction

Detailed Description

A bank customer's bank account at a bank.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ BankAccount() [1/2]

BankAccount::BankAccount ( const std::string & rsIBAN,
const glo::ObjID & objIdBank,
const glo::ObjID & objIdCustomer )
private

Constructor with parameter passing.

Parameters
[in]rsIBANThe IBAN of the account.
[in]objIdBankObject ID of the bank.
[in]objIdCustomerObject ID of the bank customer.
Exceptions
eut::ErrorNExceptionAn exception will be thrown if an error occurs.

◆ ~BankAccount()

BankAccount::~BankAccount ( )
private

Destructor.

◆ BankAccount() [2/2]

BankAccount::BankAccount ( const BankAccount & )
private

The copy constructor is not available.

Member Function Documentation

◆ getBank()

int BankAccount::getBank ( std::shared_ptr< Bank > & rRetVal)

Set and get method.

◆ getBankCustomer()

int BankAccount::getBankCustomer ( std::shared_ptr< Person > & rRetVal)

Set and get method.

◆ getBankCustomerObjID()

glo::ObjID BankAccount::getBankCustomerObjID ( ) const
inline

Set and get method.

◆ getBankObjID()

glo::ObjID BankAccount::getBankObjID ( ) const
inline

Set and get method.

◆ getIBAN()

std::string BankAccount::getIBAN ( ) const
inline

Set and get method.

◆ GLO_INDEX() [1/4]

BankAccount::GLO_INDEX ( IDXBank ,
BankAccount. m_Bank[32],
UNDEFINED  )
private

The reference (object ID) to the bank is indexed.

◆ GLO_INDEX() [2/4]

BankAccount::GLO_INDEX ( IDXBankAndCustomer ,
BankAccount.m_Bank &BankAccount. m_BankCustomer[32][32],
USE_DELIMITER| UNDEFINED )
private

The reference (object ID) to the bank and the customer is indexed.

◆ GLO_INDEX() [3/4]

BankAccount::GLO_INDEX ( IDXCustomer ,
BankAccount. m_BankCustomer[32],
UNDEFINED  )
private

The reference (object ID) to the bank customer is indexed.

◆ GLO_INDEX() [4/4]

BankAccount::GLO_INDEX ( IDXIBAN ,
BankAccount. m_IBAN[34],
UNIQUE| UNDEFINED )
private

The IBAN is a unique index.

◆ GLO_OBJECT()

BankAccount::GLO_OBJECT ( BankAccount:glo::Persistent )
private

◆ operator=()

BankAccount & BankAccount::operator= ( const BankAccount & )
private

The assignment operator is not available.

◆ setBankCustomerObjID()

void BankAccount::setBankCustomerObjID ( const glo::ObjID & rObjID)
inline

Set and get method.

◆ setBankObjID()

void BankAccount::setBankObjID ( const glo::ObjID & rObjID)
inline

Set and get method.

◆ setIBAN()

void BankAccount::setIBAN ( const std::string & rsIBAN)
inline

Set and get method.

Member Data Documentation

◆ __pad0__

transient BankAccount::__pad0__
private

◆ m_Bank

glo::TOndemand< Bank > BankAccount::m_Bank
private

Reference to the bank.

◆ m_BankCustomer

glo::TOndemand< Person > BankAccount::m_BankCustomer
private

Reference to the bank customer.

◆ m_IBAN

std::string BankAccount::m_IBAN
private

IBAN means International Bank Account Number. It is a globally valid current account number and was developed to standardize payment systems between different countries. It is valid worldwide.


The documentation for this class was generated from the following file: