//## begin module%1.7%.codegen_version preserve=yes // Read the documentation to learn more about C++ code generator // versioning. //## end module%1.7%.codegen_version //## begin module%4200A1030116.cm preserve=no //## end module%4200A1030116.cm //## begin module%4200A1030116.cp preserve=no // C O P Y R I G H T N O T I C E // This material is confidential to ERG and may not be disclosed in whole // or in part to any third party nor used in any manner whatsoever other // than for the purposes expressly consented to by ERG in writing. // // This material is also copyright and may not be reproduced, stored in a // retrieval system or transmitted in any form or by any means in whole or // in part without the express written consent of ERG. //## end module%4200A1030116.cp //## Module: TransactionCache%4200A1030116; Pseudo Package specification //## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4 //## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TransactionCache.h #ifndef TransactionCache_h #define TransactionCache_h 1 //## begin module%4200A1030116.additionalIncludes preserve=no //## end module%4200A1030116.additionalIncludes //## begin module%4200A1030116.includes preserve=yes #include //## end module%4200A1030116.includes class TransactionSpecification; //## begin module%4200A1030116.additionalDeclarations preserve=yes //## end module%4200A1030116.additionalDeclarations //## begin TransactionCache%4200A1030116.preface preserve=yes //## end TransactionCache%4200A1030116.preface //## Class: TransactionCache%4200A1030116 // This class is a cache of those transactions that have been rebuilt. It is // used to keep transactions up-to-date with the schema. //## Category: TransactionTestManager::Transaction Cache%4200A0D50377 //## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4 //## Persistence: Transient //## Cardinality/Multiplicity: n class TransactionCache { //## begin TransactionCache%4200A1030116.initialDeclarations preserve=yes //## end TransactionCache%4200A1030116.initialDeclarations public: //## Constructors (generated) TransactionCache(); //## Destructor (generated) virtual ~TransactionCache(); //## Other Operations (specified) //## Operation: clear%4200A24E0286 // Clear the cache. void clear (); //## Operation: deleteTransactionSpecification%4200A5AC0008 // Delete the given transaction specification from the cache. void deleteTransactionSpecification (const int &transaction // The primary key of the transaction. ); //## Operation: getTransactionSpecification%4200A222003B // Evaluate to the given transaction. When the transaction doesn't already // exist, create it. TransactionSpecification & getTransactionSpecification (const int &transaction // The primary key of the transaction. ); //## Operation: isContained%4200A2850361 // Evaluate to true when the given transaction is contained, and to false // otherwise. const bool isContained (const int &transaction // The primary key of the transaction. ) const; // Additional Public Declarations //## begin TransactionCache%4200A1030116.public preserve=yes //## end TransactionCache%4200A1030116.public protected: // Additional Protected Declarations //## begin TransactionCache%4200A1030116.protected preserve=yes //## end TransactionCache%4200A1030116.protected private: //## Constructors (generated) TransactionCache(const TransactionCache &right); //## Assignment Operation (generated) TransactionCache & operator=(const TransactionCache &right); // Data Members for Associations //## Association: TransactionTestManager::Transaction Cache::%4200A1B3004B //## Role: TransactionCache::transaction%4200A1B30193 // The collection of transactions contained in the cache. //## Qualifier: transaction%4200A1BF01B2; int // The primary key of the transaction. //## begin TransactionCache::transaction%4200A1B30193.role preserve=no private: TransactionSpecification {1 -> 1RFHgAN} std::map m_transaction; //## end TransactionCache::transaction%4200A1B30193.role // Additional Private Declarations //## begin TransactionCache%4200A1030116.private preserve=yes //## end TransactionCache%4200A1030116.private private: //## implementation // Additional Implementation Declarations //## begin TransactionCache%4200A1030116.implementation preserve=yes //## end TransactionCache%4200A1030116.implementation }; //## begin TransactionCache%4200A1030116.postscript preserve=yes //## end TransactionCache%4200A1030116.postscript // Class TransactionCache //## begin module%4200A1030116.epilog preserve=yes //## end module%4200A1030116.epilog #endif