| 2263 |
kivins |
1 |
//## begin module%1.7%.codegen_version preserve=yes
|
|
|
2 |
// Read the documentation to learn more about C++ code generator
|
|
|
3 |
// versioning.
|
|
|
4 |
//## end module%1.7%.codegen_version
|
|
|
5 |
|
|
|
6 |
//## begin module%4200A1030116.cm preserve=no
|
|
|
7 |
//## end module%4200A1030116.cm
|
|
|
8 |
|
|
|
9 |
//## begin module%4200A1030116.cp preserve=no
|
|
|
10 |
// C O P Y R I G H T N O T I C E
|
|
|
11 |
// This material is confidential to ERG and may not be disclosed in whole
|
|
|
12 |
// or in part to any third party nor used in any manner whatsoever other
|
|
|
13 |
// than for the purposes expressly consented to by ERG in writing.
|
|
|
14 |
//
|
|
|
15 |
// This material is also copyright and may not be reproduced, stored in a
|
|
|
16 |
// retrieval system or transmitted in any form or by any means in whole or
|
|
|
17 |
// in part without the express written consent of ERG.
|
|
|
18 |
//## end module%4200A1030116.cp
|
|
|
19 |
|
|
|
20 |
//## Module: TransactionCache%4200A1030116; Pseudo Package specification
|
|
|
21 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
22 |
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TransactionCache.h
|
|
|
23 |
|
|
|
24 |
#ifndef TransactionCache_h
|
|
|
25 |
#define TransactionCache_h 1
|
|
|
26 |
|
|
|
27 |
//## begin module%4200A1030116.additionalIncludes preserve=no
|
|
|
28 |
//## end module%4200A1030116.additionalIncludes
|
|
|
29 |
|
|
|
30 |
//## begin module%4200A1030116.includes preserve=yes
|
|
|
31 |
#include <map>
|
|
|
32 |
//## end module%4200A1030116.includes
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
class TransactionSpecification;
|
|
|
36 |
|
|
|
37 |
//## begin module%4200A1030116.additionalDeclarations preserve=yes
|
|
|
38 |
//## end module%4200A1030116.additionalDeclarations
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
//## begin TransactionCache%4200A1030116.preface preserve=yes
|
|
|
42 |
//## end TransactionCache%4200A1030116.preface
|
|
|
43 |
|
|
|
44 |
//## Class: TransactionCache%4200A1030116
|
|
|
45 |
// This class is a cache of those transactions that have been rebuilt. It is
|
|
|
46 |
// used to keep transactions up-to-date with the schema.
|
|
|
47 |
//## Category: TransactionTestManager::Transaction Cache%4200A0D50377
|
|
|
48 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
49 |
//## Persistence: Transient
|
|
|
50 |
//## Cardinality/Multiplicity: n
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
class TransactionCache
|
|
|
55 |
{
|
|
|
56 |
//## begin TransactionCache%4200A1030116.initialDeclarations preserve=yes
|
|
|
57 |
//## end TransactionCache%4200A1030116.initialDeclarations
|
|
|
58 |
|
|
|
59 |
public:
|
|
|
60 |
//## Constructors (generated)
|
|
|
61 |
TransactionCache();
|
|
|
62 |
|
|
|
63 |
//## Destructor (generated)
|
|
|
64 |
virtual ~TransactionCache();
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
//## Other Operations (specified)
|
|
|
68 |
//## Operation: clear%4200A24E0286
|
|
|
69 |
// Clear the cache.
|
|
|
70 |
void clear ();
|
|
|
71 |
|
|
|
72 |
//## Operation: deleteTransactionSpecification%4200A5AC0008
|
|
|
73 |
// Delete the given transaction specification from the cache.
|
|
|
74 |
void deleteTransactionSpecification (const int &transaction // The primary key of the transaction.
|
|
|
75 |
);
|
|
|
76 |
|
|
|
77 |
//## Operation: getTransactionSpecification%4200A222003B
|
|
|
78 |
// Evaluate to the given transaction. When the transaction doesn't already
|
|
|
79 |
// exist, create it.
|
|
|
80 |
TransactionSpecification & getTransactionSpecification (const int &transaction // The primary key of the transaction.
|
|
|
81 |
);
|
|
|
82 |
|
|
|
83 |
//## Operation: isContained%4200A2850361
|
|
|
84 |
// Evaluate to true when the given transaction is contained, and to false
|
|
|
85 |
// otherwise.
|
|
|
86 |
const bool isContained (const int &transaction // The primary key of the transaction.
|
|
|
87 |
) const;
|
|
|
88 |
|
|
|
89 |
// Additional Public Declarations
|
|
|
90 |
//## begin TransactionCache%4200A1030116.public preserve=yes
|
|
|
91 |
//## end TransactionCache%4200A1030116.public
|
|
|
92 |
|
|
|
93 |
protected:
|
|
|
94 |
// Additional Protected Declarations
|
|
|
95 |
//## begin TransactionCache%4200A1030116.protected preserve=yes
|
|
|
96 |
//## end TransactionCache%4200A1030116.protected
|
|
|
97 |
|
|
|
98 |
private:
|
|
|
99 |
//## Constructors (generated)
|
|
|
100 |
TransactionCache(const TransactionCache &right);
|
|
|
101 |
|
|
|
102 |
//## Assignment Operation (generated)
|
|
|
103 |
TransactionCache & operator=(const TransactionCache &right);
|
|
|
104 |
|
|
|
105 |
// Data Members for Associations
|
|
|
106 |
|
|
|
107 |
//## Association: TransactionTestManager::Transaction Cache::<unnamed>%4200A1B3004B
|
|
|
108 |
//## Role: TransactionCache::transaction%4200A1B30193
|
|
|
109 |
// The collection of transactions contained in the cache.
|
|
|
110 |
//## Qualifier: transaction%4200A1BF01B2; int
|
|
|
111 |
// The primary key of the transaction.
|
|
|
112 |
//## begin TransactionCache::transaction%4200A1B30193.role preserve=no private: TransactionSpecification {1 -> 1RFHgAN}
|
|
|
113 |
std::map<int, TransactionSpecification *> m_transaction;
|
|
|
114 |
//## end TransactionCache::transaction%4200A1B30193.role
|
|
|
115 |
|
|
|
116 |
// Additional Private Declarations
|
|
|
117 |
//## begin TransactionCache%4200A1030116.private preserve=yes
|
|
|
118 |
//## end TransactionCache%4200A1030116.private
|
|
|
119 |
|
|
|
120 |
private: //## implementation
|
|
|
121 |
// Additional Implementation Declarations
|
|
|
122 |
//## begin TransactionCache%4200A1030116.implementation preserve=yes
|
|
|
123 |
//## end TransactionCache%4200A1030116.implementation
|
|
|
124 |
|
|
|
125 |
};
|
|
|
126 |
|
|
|
127 |
//## begin TransactionCache%4200A1030116.postscript preserve=yes
|
|
|
128 |
//## end TransactionCache%4200A1030116.postscript
|
|
|
129 |
|
|
|
130 |
// Class TransactionCache
|
|
|
131 |
|
|
|
132 |
//## begin module%4200A1030116.epilog preserve=yes
|
|
|
133 |
//## end module%4200A1030116.epilog
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
#endif
|