| 136 | }; |
| 137 | |
| 138 | class Cache : public MapHash, public Firebird::GlobalStorage, public Firebird::RefCounted |
| 139 | { |
| 140 | public: |
| 141 | Cache(const Firebird::NoCaseString& aliasDb, const Firebird::NoCaseString& db); |
| 142 | ~Cache(); |
| 143 | |
| 144 | bool populate(Firebird::IAttachment *att); |
| 145 | void map(bool flagWild, ExtInfo& info, AuthWriter& newBlock); |
| 146 | void search(ExtInfo& info, const Map& from, AuthWriter& newBlock, |
| 147 | const Firebird::NoCaseString& originalUserName); |
| 148 | void varPlugin(ExtInfo& info, Map from, AuthWriter& newBlock); |
| 149 | void varDb(ExtInfo& info, Map from, AuthWriter& newBlock); |
| 150 | void varFrom(ExtInfo& info, Map from, AuthWriter& newBlock); |
| 151 | void varUsing(ExtInfo& info, Map from, AuthWriter& newBlock); |
| 152 | bool map4(bool flagWild, unsigned flagSet, Firebird::AuthReader& rdr, |
| 153 | ExtInfo& info, AuthWriter& newBlock); |
| 154 | static void eraseEntry(Map* m); |
| 155 | |
| 156 | public: |
| 157 | Firebird::Mutex populateMutex; |
| 158 | Firebird::NoCaseString alias, name; |
| 159 | bool dataFlag; |
| 160 | }; |
| 161 | |
| 162 | private: |
| 163 | Firebird::PathName secExpanded; |