Add a filter-by-from/to-chunk in ExitManager::List.
[UnsignedByte.git] / src / DB / Generated / FieldImpls.cpp
blob0ea697a2d0ee00f75d6c8d5308b9c0c667bc6f92
1 /***************************************************************************
2 * Copyright (C) 2008 by Sverre Rabbelier *
3 * sverre@rabbelier.nl *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 /* NOTE: This file was generated automatically. Do not edit. */
23 #include "FieldImpls.h"
24 #include "TableImpl.h"
25 #include "TableImpls.h"
26 #include "Tables.h"
27 #include "FieldImpl.h"
28 #include "KeyImpl.h"
30 using namespace db;
32 void Accounts::Initialize()
34 ACCOUNTID = KeyImplPtr(new KeyImpl(TableImpls::Get()->ACCOUNTS, TableImpls::Get()->ACCOUNTS, "accountid", true, true));
35 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->ACCOUNTS, "name", true, true));
36 PASSWORD = FieldImplPtr(new FieldImpl(TableImpls::Get()->ACCOUNTS, "password", true, false));
38 m_fields.push_back(ACCOUNTID);
39 m_fields.push_back(NAME);
40 m_fields.push_back(PASSWORD);
42 updateFieldCount();
45 void Areas::Initialize()
47 AREAID = KeyImplPtr(new KeyImpl(TableImpls::Get()->AREAS, TableImpls::Get()->AREAS, "areaid", true, true));
48 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->AREAS, "name", true, true));
49 DESCRIPTION = FieldImplPtr(new FieldImpl(TableImpls::Get()->AREAS, "description", true, false));
50 HEIGHT = FieldImplPtr(new FieldImpl(TableImpls::Get()->AREAS, "height", false, false));
51 WIDTH = FieldImplPtr(new FieldImpl(TableImpls::Get()->AREAS, "width", false, false));
52 LENGTH = FieldImplPtr(new FieldImpl(TableImpls::Get()->AREAS, "length", false, false));
54 m_fields.push_back(AREAID);
55 m_fields.push_back(NAME);
56 m_fields.push_back(DESCRIPTION);
57 m_fields.push_back(HEIGHT);
58 m_fields.push_back(WIDTH);
59 m_fields.push_back(LENGTH);
61 updateFieldCount();
64 void Branches::Initialize()
66 BRANCHID = KeyImplPtr(new KeyImpl(TableImpls::Get()->BRANCHES, TableImpls::Get()->BRANCHES, "branchid", true, true));
67 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->BRANCHES, "name", true, true));
68 FKTREES = KeyImplPtr(new KeyImpl(TableImpls::Get()->BRANCHES, TableImpls::Get()->TREES, "fkTrees", false, false));
69 FKSTATSPRIMARY = KeyImplPtr(new KeyImpl(TableImpls::Get()->BRANCHES, TableImpls::Get()->STATS, "fkStatsPrimary", false, false));
70 FKSTATSSECONDARY = KeyImplPtr(new KeyImpl(TableImpls::Get()->BRANCHES, TableImpls::Get()->STATS, "fkStatsSecondary", false, false));
72 m_fields.push_back(BRANCHID);
73 m_fields.push_back(NAME);
74 m_fields.push_back(FKTREES);
75 m_fields.push_back(FKSTATSPRIMARY);
76 m_fields.push_back(FKSTATSSECONDARY);
78 updateFieldCount();
81 void Channels::Initialize()
83 CHANNELID = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHANNELS, TableImpls::Get()->CHANNELS, "channelid", true, true));
84 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHANNELS, "name", true, true));
85 DESCRIPTION = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHANNELS, "description", true, false));
86 NEEDLOGIN = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHANNELS, "needLogin", false, std::string("1")));
88 m_fields.push_back(CHANNELID);
89 m_fields.push_back(NAME);
90 m_fields.push_back(DESCRIPTION);
91 m_fields.push_back(NEEDLOGIN);
93 updateFieldCount();
96 void ChannelLogs::Initialize()
98 CHANNELLOGID = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHANNELLOGS, TableImpls::Get()->CHANNELLOGS, "channellogid", true, true));
99 FKCHANNELS = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHANNELLOGS, TableImpls::Get()->CHANNELS, "fkChannels", false, false));
100 FKACCOUNTS = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHANNELLOGS, TableImpls::Get()->ACCOUNTS, "fkAccounts", false, false));
101 TIME = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHANNELLOGS, "time", false, false));
102 CONTENT = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHANNELLOGS, "content", true, false));
104 m_fields.push_back(CHANNELLOGID);
105 m_fields.push_back(FKCHANNELS);
106 m_fields.push_back(FKACCOUNTS);
107 m_fields.push_back(TIME);
108 m_fields.push_back(CONTENT);
110 updateFieldCount();
113 void CharacterAccount::Initialize()
115 FKENTITIES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERACCOUNT, TableImpls::Get()->ENTITIES, "fkEntities", true, false));
116 FKACCOUNTS = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERACCOUNT, TableImpls::Get()->ACCOUNTS, "fkAccounts", true, false));
118 m_fields.push_back(FKENTITIES);
119 m_fields.push_back(FKACCOUNTS);
121 updateFieldCount();
124 void CharacterBranch::Initialize()
126 FKENTITIES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERBRANCH, TableImpls::Get()->ENTITIES, "fkEntities", true, false));
127 FKBRANCHES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERBRANCH, TableImpls::Get()->BRANCHES, "fkBranches", true, false));
128 XP = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHARACTERBRANCH, "xp", false, false));
130 m_fields.push_back(FKENTITIES);
131 m_fields.push_back(FKBRANCHES);
132 m_fields.push_back(XP);
134 updateFieldCount();
137 void CharacterCluster::Initialize()
139 FKENTITIES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERCLUSTER, TableImpls::Get()->ENTITIES, "fkEntities", true, false));
140 FKCLUSTERS = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERCLUSTER, TableImpls::Get()->CLUSTERS, "fkClusters", true, false));
141 XP = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHARACTERCLUSTER, "xp", false, false));
143 m_fields.push_back(FKENTITIES);
144 m_fields.push_back(FKCLUSTERS);
145 m_fields.push_back(XP);
147 updateFieldCount();
150 void CharacterSkill::Initialize()
152 FKENTITIES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERSKILL, TableImpls::Get()->ENTITIES, "fkEntities", true, false));
153 FKBRANCHES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERSKILL, TableImpls::Get()->BRANCHES, "fkBranches", true, false));
154 XP = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHARACTERSKILL, "xp", false, false));
156 m_fields.push_back(FKENTITIES);
157 m_fields.push_back(FKBRANCHES);
158 m_fields.push_back(XP);
160 updateFieldCount();
163 void CharacterStat::Initialize()
165 FKENTITIES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERSTAT, TableImpls::Get()->ENTITIES, "fkEntities", true, false));
166 FKSTATS = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERSTAT, TableImpls::Get()->STATS, "fkStats", true, false));
167 XP = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHARACTERSTAT, "xp", false, false));
169 m_fields.push_back(FKENTITIES);
170 m_fields.push_back(FKSTATS);
171 m_fields.push_back(XP);
173 updateFieldCount();
176 void CharacterTree::Initialize()
178 FKENTITIES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERTREE, TableImpls::Get()->ENTITIES, "fkEntities", true, false));
179 FKTREES = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHARACTERTREE, TableImpls::Get()->TREES, "fkTrees", true, false));
180 XP = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHARACTERTREE, "xp", false, false));
182 m_fields.push_back(FKENTITIES);
183 m_fields.push_back(FKTREES);
184 m_fields.push_back(XP);
186 updateFieldCount();
189 void Clusters::Initialize()
191 CLUSTERID = KeyImplPtr(new KeyImpl(TableImpls::Get()->CLUSTERS, TableImpls::Get()->CLUSTERS, "clusterid", true, true));
192 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->CLUSTERS, "name", true, true));
193 DESCRIPTION = FieldImplPtr(new FieldImpl(TableImpls::Get()->CLUSTERS, "description", true, false));
194 FKAREAS = KeyImplPtr(new KeyImpl(TableImpls::Get()->CLUSTERS, TableImpls::Get()->AREAS, "fkAreas", false, false));
196 m_fields.push_back(CLUSTERID);
197 m_fields.push_back(NAME);
198 m_fields.push_back(DESCRIPTION);
199 m_fields.push_back(FKAREAS);
201 updateFieldCount();
204 void Chunks::Initialize()
206 CHUNKID = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHUNKS, TableImpls::Get()->CHUNKS, "chunkid", true, true));
207 FKROOMS = KeyImplPtr(new KeyImpl(TableImpls::Get()->CHUNKS, TableImpls::Get()->ROOMS, "fkRooms", false, false));
208 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHUNKS, "name", true, false));
209 DESCRIPTION = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHUNKS, "description", true, false));
210 TAGS = FieldImplPtr(new FieldImpl(TableImpls::Get()->CHUNKS, "tags", true, false));
212 m_fields.push_back(CHUNKID);
213 m_fields.push_back(FKROOMS);
214 m_fields.push_back(NAME);
215 m_fields.push_back(DESCRIPTION);
216 m_fields.push_back(TAGS);
218 updateFieldCount();
221 void Colours::Initialize()
223 COLOURID = KeyImplPtr(new KeyImpl(TableImpls::Get()->COLOURS, TableImpls::Get()->COLOURS, "colourid", true, true));
224 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->COLOURS, "name", true, true));
225 CODE = FieldImplPtr(new FieldImpl(TableImpls::Get()->COLOURS, "code", true, true));
226 COLOURSTRING = FieldImplPtr(new FieldImpl(TableImpls::Get()->COLOURS, "colourstring", true, false));
227 ANSI = FieldImplPtr(new FieldImpl(TableImpls::Get()->COLOURS, "ansi", false, false));
229 m_fields.push_back(COLOURID);
230 m_fields.push_back(NAME);
231 m_fields.push_back(CODE);
232 m_fields.push_back(COLOURSTRING);
233 m_fields.push_back(ANSI);
235 updateFieldCount();
238 void Commands::Initialize()
240 COMMANDID = KeyImplPtr(new KeyImpl(TableImpls::Get()->COMMANDS, TableImpls::Get()->COMMANDS, "commandid", true, true));
241 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->COMMANDS, "name", true, true));
242 GRANTGROUP = FieldImplPtr(new FieldImpl(TableImpls::Get()->COMMANDS, "grantgroup", false, std::string("1")));
243 HIGHFORCE = FieldImplPtr(new FieldImpl(TableImpls::Get()->COMMANDS, "highforce", false, std::string("1")));
244 FORCE = FieldImplPtr(new FieldImpl(TableImpls::Get()->COMMANDS, "force", false, std::string("1")));
245 LOWFORCE = FieldImplPtr(new FieldImpl(TableImpls::Get()->COMMANDS, "lowforce", false, std::string("0")));
246 HELP = FieldImplPtr(new FieldImpl(TableImpls::Get()->COMMANDS, "help", true, false));
248 m_fields.push_back(COMMANDID);
249 m_fields.push_back(NAME);
250 m_fields.push_back(GRANTGROUP);
251 m_fields.push_back(HIGHFORCE);
252 m_fields.push_back(FORCE);
253 m_fields.push_back(LOWFORCE);
254 m_fields.push_back(HELP);
256 updateFieldCount();
259 void Details::Initialize()
261 DETAILID = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILS, TableImpls::Get()->DETAILS, "detailid", true, true));
262 KEY = FieldImplPtr(new FieldImpl(TableImpls::Get()->DETAILS, "key", true, true));
263 DESCRIPTION = FieldImplPtr(new FieldImpl(TableImpls::Get()->DETAILS, "description", true, false));
265 m_fields.push_back(DETAILID);
266 m_fields.push_back(KEY);
267 m_fields.push_back(DESCRIPTION);
269 updateFieldCount();
272 void DetailArea::Initialize()
274 FKDETAILS = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILAREA, TableImpls::Get()->DETAILS, "fkDetails", true, false));
275 FKAREAS = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILAREA, TableImpls::Get()->AREAS, "fkAreas", true, false));
277 m_fields.push_back(FKDETAILS);
278 m_fields.push_back(FKAREAS);
280 updateFieldCount();
283 void DetailRoom::Initialize()
285 FKDETAILS = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILROOM, TableImpls::Get()->DETAILS, "fkDetails", true, false));
286 FKROOMS = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILROOM, TableImpls::Get()->ROOMS, "fkRooms", true, false));
288 m_fields.push_back(FKDETAILS);
289 m_fields.push_back(FKROOMS);
291 updateFieldCount();
294 void DetailChunk::Initialize()
296 FKDETAILS = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILCHUNK, TableImpls::Get()->DETAILS, "fkDetails", true, false));
297 FKCHUNKS = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILCHUNK, TableImpls::Get()->CHUNKS, "fkChunks", true, false));
299 m_fields.push_back(FKDETAILS);
300 m_fields.push_back(FKCHUNKS);
302 updateFieldCount();
305 void DetailCharacter::Initialize()
307 FKDETAILS = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILCHARACTER, TableImpls::Get()->DETAILS, "fkDetails", true, false));
308 FKENTITIES = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILCHARACTER, TableImpls::Get()->ENTITIES, "fkEntities", true, false));
310 m_fields.push_back(FKDETAILS);
311 m_fields.push_back(FKENTITIES);
313 updateFieldCount();
316 void DetailDetail::Initialize()
318 FKDETAILSPRIMARY = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILDETAIL, TableImpls::Get()->DETAILS, "fkDetailsPrimary", true, false));
319 FKDETAILSSECONDARY = KeyImplPtr(new KeyImpl(TableImpls::Get()->DETAILDETAIL, TableImpls::Get()->DETAILS, "fkDetailsSecondary", true, false));
321 m_fields.push_back(FKDETAILSPRIMARY);
322 m_fields.push_back(FKDETAILSSECONDARY);
324 updateFieldCount();
327 void Echos::Initialize()
329 ECHOID = KeyImplPtr(new KeyImpl(TableImpls::Get()->ECHOS, TableImpls::Get()->ECHOS, "echoid", true, true));
330 MESSAGE = FieldImplPtr(new FieldImpl(TableImpls::Get()->ECHOS, "message", true, false));
331 VISIBILITY = FieldImplPtr(new FieldImpl(TableImpls::Get()->ECHOS, "visibility", false, false));
332 AUDIBILITY = FieldImplPtr(new FieldImpl(TableImpls::Get()->ECHOS, "audibility", false, false));
334 m_fields.push_back(ECHOID);
335 m_fields.push_back(MESSAGE);
336 m_fields.push_back(VISIBILITY);
337 m_fields.push_back(AUDIBILITY);
339 updateFieldCount();
342 void Entities::Initialize()
344 ENTITYID = KeyImplPtr(new KeyImpl(TableImpls::Get()->ENTITIES, TableImpls::Get()->ENTITIES, "entityid", true, true));
345 FKRACES = KeyImplPtr(new KeyImpl(TableImpls::Get()->ENTITIES, TableImpls::Get()->RACES, "fkRaces", false, false));
346 FKCHUNKS = KeyImplPtr(new KeyImpl(TableImpls::Get()->ENTITIES, TableImpls::Get()->CHUNKS, "fkChunks", false, false));
347 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->ENTITIES, "name", true, true));
348 DESCRIPTION = FieldImplPtr(new FieldImpl(TableImpls::Get()->ENTITIES, "description", true, false));
350 m_fields.push_back(ENTITYID);
351 m_fields.push_back(FKRACES);
352 m_fields.push_back(FKCHUNKS);
353 m_fields.push_back(NAME);
354 m_fields.push_back(DESCRIPTION);
356 updateFieldCount();
359 void Exits::Initialize()
361 EXITID = KeyImplPtr(new KeyImpl(TableImpls::Get()->EXITS, TableImpls::Get()->EXITS, "exitid", true, true));
362 FKCHUNKSFROM = KeyImplPtr(new KeyImpl(TableImpls::Get()->EXITS, TableImpls::Get()->CHUNKS, "fkChunksfrom", false, false));
363 FKCHUNKSTO = KeyImplPtr(new KeyImpl(TableImpls::Get()->EXITS, TableImpls::Get()->CHUNKS, "fkChunksto", false, false));
364 X = FieldImplPtr(new FieldImpl(TableImpls::Get()->EXITS, "x", false, false));
365 Y = FieldImplPtr(new FieldImpl(TableImpls::Get()->EXITS, "y", false, false));
366 Z = FieldImplPtr(new FieldImpl(TableImpls::Get()->EXITS, "z", false, false));
368 m_fields.push_back(EXITID);
369 m_fields.push_back(FKCHUNKSFROM);
370 m_fields.push_back(FKCHUNKSTO);
371 m_fields.push_back(X);
372 m_fields.push_back(Y);
373 m_fields.push_back(Z);
375 updateFieldCount();
378 void GrantGroups::Initialize()
380 GRANTGROUPID = KeyImplPtr(new KeyImpl(TableImpls::Get()->GRANTGROUPS, TableImpls::Get()->GRANTGROUPS, "grantgroupid", true, true));
381 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->GRANTGROUPS, "name", true, true));
382 DEFAULTGRANT = FieldImplPtr(new FieldImpl(TableImpls::Get()->GRANTGROUPS, "defaultgrant", false, false));
383 DEFAULTLOG = FieldImplPtr(new FieldImpl(TableImpls::Get()->GRANTGROUPS, "defaultlog", false, false));
384 IMPLIES = FieldImplPtr(new FieldImpl(TableImpls::Get()->GRANTGROUPS, "implies", false, false));
386 m_fields.push_back(GRANTGROUPID);
387 m_fields.push_back(NAME);
388 m_fields.push_back(DEFAULTGRANT);
389 m_fields.push_back(DEFAULTLOG);
390 m_fields.push_back(IMPLIES);
392 updateFieldCount();
395 void Logs::Initialize()
397 LOGID = KeyImplPtr(new KeyImpl(TableImpls::Get()->LOGS, TableImpls::Get()->LOGS, "logid", true, true));
398 TYPE = FieldImplPtr(new FieldImpl(TableImpls::Get()->LOGS, "type", true, false));
399 TIME = FieldImplPtr(new FieldImpl(TableImpls::Get()->LOGS, "time", false, false));
400 CONTENT = FieldImplPtr(new FieldImpl(TableImpls::Get()->LOGS, "content", true, false));
402 m_fields.push_back(LOGID);
403 m_fields.push_back(TYPE);
404 m_fields.push_back(TIME);
405 m_fields.push_back(CONTENT);
407 updateFieldCount();
410 void Permissions::Initialize()
412 FKACCOUNTS = KeyImplPtr(new KeyImpl(TableImpls::Get()->PERMISSIONS, TableImpls::Get()->ACCOUNTS, "fkAccounts", true, false));
413 FKGRANTGROUPS = KeyImplPtr(new KeyImpl(TableImpls::Get()->PERMISSIONS, TableImpls::Get()->GRANTGROUPS, "fkGrantGroups", true, false));
414 GRANT = FieldImplPtr(new FieldImpl(TableImpls::Get()->PERMISSIONS, "grant", false, false));
415 LOG = FieldImplPtr(new FieldImpl(TableImpls::Get()->PERMISSIONS, "log", false, false));
417 m_fields.push_back(FKACCOUNTS);
418 m_fields.push_back(FKGRANTGROUPS);
419 m_fields.push_back(GRANT);
420 m_fields.push_back(LOG);
422 updateFieldCount();
425 void Races::Initialize()
427 RACEID = KeyImplPtr(new KeyImpl(TableImpls::Get()->RACES, TableImpls::Get()->RACES, "raceid", true, true));
428 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->RACES, "name", true, true));
430 m_fields.push_back(RACEID);
431 m_fields.push_back(NAME);
433 updateFieldCount();
436 void Rooms::Initialize()
438 ROOMID = KeyImplPtr(new KeyImpl(TableImpls::Get()->ROOMS, TableImpls::Get()->ROOMS, "roomid", true, true));
439 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->ROOMS, "name", true, false));
440 DESCRIPTION = FieldImplPtr(new FieldImpl(TableImpls::Get()->ROOMS, "description", true, false));
441 FKCLUSTERS = KeyImplPtr(new KeyImpl(TableImpls::Get()->ROOMS, TableImpls::Get()->CLUSTERS, "fkClusters", false, false));
442 FKSECTORS = KeyImplPtr(new KeyImpl(TableImpls::Get()->ROOMS, TableImpls::Get()->SECTORS, "fkSectors", false, false));
443 WIDTH = FieldImplPtr(new FieldImpl(TableImpls::Get()->ROOMS, "width", false, false));
444 LENGTH = FieldImplPtr(new FieldImpl(TableImpls::Get()->ROOMS, "length", false, false));
445 HEIGHT = FieldImplPtr(new FieldImpl(TableImpls::Get()->ROOMS, "height", false, false));
447 m_fields.push_back(ROOMID);
448 m_fields.push_back(NAME);
449 m_fields.push_back(DESCRIPTION);
450 m_fields.push_back(FKCLUSTERS);
451 m_fields.push_back(FKSECTORS);
452 m_fields.push_back(WIDTH);
453 m_fields.push_back(LENGTH);
454 m_fields.push_back(HEIGHT);
456 updateFieldCount();
459 void Sectors::Initialize()
461 SECTORID = KeyImplPtr(new KeyImpl(TableImpls::Get()->SECTORS, TableImpls::Get()->SECTORS, "sectorid", true, true));
462 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->SECTORS, "name", true, true));
463 SYMBOL = FieldImplPtr(new FieldImpl(TableImpls::Get()->SECTORS, "symbol", true, false));
464 MOVECOST = FieldImplPtr(new FieldImpl(TableImpls::Get()->SECTORS, "movecost", false, false));
465 WATER = FieldImplPtr(new FieldImpl(TableImpls::Get()->SECTORS, "water", false, false));
467 m_fields.push_back(SECTORID);
468 m_fields.push_back(NAME);
469 m_fields.push_back(SYMBOL);
470 m_fields.push_back(MOVECOST);
471 m_fields.push_back(WATER);
473 updateFieldCount();
476 void Skills::Initialize()
478 SKILLID = KeyImplPtr(new KeyImpl(TableImpls::Get()->SKILLS, TableImpls::Get()->SKILLS, "skillid", true, true));
479 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->SKILLS, "name", true, true));
480 FKBRANCHES = KeyImplPtr(new KeyImpl(TableImpls::Get()->SKILLS, TableImpls::Get()->BRANCHES, "fkBranches", false, false));
482 m_fields.push_back(SKILLID);
483 m_fields.push_back(NAME);
484 m_fields.push_back(FKBRANCHES);
486 updateFieldCount();
489 void Stats::Initialize()
491 STATID = KeyImplPtr(new KeyImpl(TableImpls::Get()->STATS, TableImpls::Get()->STATS, "statid", true, true));
492 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->STATS, "name", true, true));
493 SHORTNAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->STATS, "shortname", true, true));
495 m_fields.push_back(STATID);
496 m_fields.push_back(NAME);
497 m_fields.push_back(SHORTNAME);
499 updateFieldCount();
502 void Traces::Initialize()
504 TRACEID = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACES, TableImpls::Get()->TRACES, "traceid", true, true));
505 FKACCOUNTS = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACES, TableImpls::Get()->ACCOUNTS, "fkAccounts", false, false));
506 TIME = FieldImplPtr(new FieldImpl(TableImpls::Get()->TRACES, "time", false, false));
507 DESCRIPTION = FieldImplPtr(new FieldImpl(TableImpls::Get()->TRACES, "description", true, false));
508 DIFF = FieldImplPtr(new FieldImpl(TableImpls::Get()->TRACES, "diff", true, false));
510 m_fields.push_back(TRACEID);
511 m_fields.push_back(FKACCOUNTS);
512 m_fields.push_back(TIME);
513 m_fields.push_back(DESCRIPTION);
514 m_fields.push_back(DIFF);
516 updateFieldCount();
519 void TraceChunk::Initialize()
521 FKTRACES = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACECHUNK, TableImpls::Get()->TRACES, "fkTraces", true, false));
522 FKCHUNKS = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACECHUNK, TableImpls::Get()->CHUNKS, "fkChunks", true, false));
524 m_fields.push_back(FKTRACES);
525 m_fields.push_back(FKCHUNKS);
527 updateFieldCount();
530 void TraceDetail::Initialize()
532 FKTRACES = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACEDETAIL, TableImpls::Get()->TRACES, "fkTraces", true, false));
533 FKDETAILS = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACEDETAIL, TableImpls::Get()->DETAILS, "fkDetails", true, false));
535 m_fields.push_back(FKTRACES);
536 m_fields.push_back(FKDETAILS);
538 updateFieldCount();
541 void TraceEntity::Initialize()
543 FKTRACES = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACEENTITY, TableImpls::Get()->TRACES, "fkTraces", true, false));
544 FKENTITIES = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACEENTITY, TableImpls::Get()->ENTITIES, "fkEntities", true, false));
546 m_fields.push_back(FKTRACES);
547 m_fields.push_back(FKENTITIES);
549 updateFieldCount();
552 void TraceRoom::Initialize()
554 FKTRACES = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACEROOM, TableImpls::Get()->TRACES, "fkTraces", true, false));
555 FKROOMS = KeyImplPtr(new KeyImpl(TableImpls::Get()->TRACEROOM, TableImpls::Get()->ROOMS, "fkRooms", true, false));
557 m_fields.push_back(FKTRACES);
558 m_fields.push_back(FKROOMS);
560 updateFieldCount();
563 void Trees::Initialize()
565 TREEID = KeyImplPtr(new KeyImpl(TableImpls::Get()->TREES, TableImpls::Get()->TREES, "treeid", true, true));
566 NAME = FieldImplPtr(new FieldImpl(TableImpls::Get()->TREES, "name", true, true));
567 FKCLUSTERS = KeyImplPtr(new KeyImpl(TableImpls::Get()->TREES, TableImpls::Get()->CLUSTERS, "fkClusters", false, false));
568 FKSTATSPRIMARY = KeyImplPtr(new KeyImpl(TableImpls::Get()->TREES, TableImpls::Get()->STATS, "fkStatsPrimary", false, false));
569 FKSTATSSECONDARY = KeyImplPtr(new KeyImpl(TableImpls::Get()->TREES, TableImpls::Get()->STATS, "fkStatsSecondary", false, false));
571 m_fields.push_back(TREEID);
572 m_fields.push_back(NAME);
573 m_fields.push_back(FKCLUSTERS);
574 m_fields.push_back(FKSTATSPRIMARY);
575 m_fields.push_back(FKSTATSSECONDARY);
577 updateFieldCount();
580 void Version::Initialize()
582 VERSIONID = KeyImplPtr(new KeyImpl(TableImpls::Get()->VERSION, TableImpls::Get()->VERSION, "versionid", true, true));
583 VERSIONTEXT = FieldImplPtr(new FieldImpl(TableImpls::Get()->VERSION, "versiontext", true, false));
584 MAJOR = FieldImplPtr(new FieldImpl(TableImpls::Get()->VERSION, "major", false, false));
585 MINOR = FieldImplPtr(new FieldImpl(TableImpls::Get()->VERSION, "minor", false, false));
586 MICRO = FieldImplPtr(new FieldImpl(TableImpls::Get()->VERSION, "micro", false, false));
588 m_fields.push_back(VERSIONID);
589 m_fields.push_back(VERSIONTEXT);
590 m_fields.push_back(MAJOR);
591 m_fields.push_back(MINOR);
592 m_fields.push_back(MICRO);
594 updateFieldCount();