1
2
3 package org.melati.example.contacts.generated;
4
5
6 import org.melati.poem.PoemDatabase;
7 import org.melati.poem.DefinitionSource;
8 import org.melati.poem.User;
9 import org.melati.poem.UserTable;
10 import org.melati.poem.Group;
11 import org.melati.poem.GroupTable;
12 import org.melati.poem.Capability;
13 import org.melati.poem.CapabilityTable;
14 import org.melati.poem.GroupMembership;
15 import org.melati.poem.GroupMembershipTable;
16 import org.melati.poem.GroupCapability;
17 import org.melati.poem.GroupCapabilityTable;
18 import org.melati.poem.TableCategory;
19 import org.melati.poem.TableCategoryTable;
20 import org.melati.poem.TableInfo;
21 import org.melati.poem.TableInfoTable;
22 import org.melati.poem.ColumnInfo;
23 import org.melati.poem.ColumnInfoTable;
24 import org.melati.poem.Setting;
25 import org.melati.poem.SettingTable;
26 import org.melati.example.contacts.Contact;
27 import org.melati.example.contacts.ContactTable;
28 import org.melati.example.contacts.Category;
29 import org.melati.example.contacts.CategoryTable;
30 import org.melati.example.contacts.ContactCategory;
31 import org.melati.example.contacts.ContactCategoryTable;
32
33
34
35
36 public class ContactsDatabaseBase extends PoemDatabase {
37
38 private UserTable<User> tab_user = null;
39 private GroupTable<Group> tab_group = null;
40 private CapabilityTable<Capability> tab_capability = null;
41 private GroupMembershipTable<GroupMembership> tab_groupmembership = null;
42 private GroupCapabilityTable<GroupCapability> tab_groupcapability = null;
43 private TableCategoryTable<TableCategory> tab_tablecategory = null;
44 private TableInfoTable<TableInfo> tab_tableinfo = null;
45 private ColumnInfoTable<ColumnInfo> tab_columninfo = null;
46 private SettingTable<Setting> tab_setting = null;
47 private ContactTable<Contact> tab_contact = null;
48 private CategoryTable<Category> tab_category = null;
49 private ContactCategoryTable<ContactCategory> tab_contactcategory = null;
50
51 protected ContactsDatabaseBase() {
52 redefineTable(tab_user = new UserTable<User>(this, "user", DefinitionSource.dsd));
53 redefineTable(tab_group = new GroupTable<Group>(this, "group", DefinitionSource.dsd));
54 redefineTable(tab_capability = new CapabilityTable<Capability>(this, "capability", DefinitionSource.dsd));
55 redefineTable(tab_groupmembership = new GroupMembershipTable<GroupMembership>(this, "groupMembership", DefinitionSource.dsd));
56 redefineTable(tab_groupcapability = new GroupCapabilityTable<GroupCapability>(this, "groupCapability", DefinitionSource.dsd));
57 redefineTable(tab_tablecategory = new TableCategoryTable<TableCategory>(this, "tableCategory", DefinitionSource.dsd));
58 redefineTable(tab_tableinfo = new TableInfoTable<TableInfo>(this, "tableInfo", DefinitionSource.dsd));
59 redefineTable(tab_columninfo = new ColumnInfoTable<ColumnInfo>(this, "columnInfo", DefinitionSource.dsd));
60 redefineTable(tab_setting = new SettingTable<Setting>(this, "setting", DefinitionSource.dsd));
61 redefineTable(tab_contact = new ContactTable<Contact>(this, "Contact", DefinitionSource.dsd));
62 redefineTable(tab_category = new CategoryTable<Category>(this, "Category", DefinitionSource.dsd));
63 redefineTable(tab_contactcategory = new ContactCategoryTable<ContactCategory>(this, "ContactCategory", DefinitionSource.dsd));
64 }
65
66
67
68
69
70
71
72
73 public UserTable<User> getUserTable() {
74 return tab_user;
75 }
76
77
78
79
80
81
82
83
84 public GroupTable<Group> getGroupTable() {
85 return tab_group;
86 }
87
88
89
90
91
92
93
94
95 public CapabilityTable<Capability> getCapabilityTable() {
96 return tab_capability;
97 }
98
99
100
101
102
103
104
105
106 public GroupMembershipTable<GroupMembership> getGroupMembershipTable() {
107 return tab_groupmembership;
108 }
109
110
111
112
113
114
115
116
117 public GroupCapabilityTable<GroupCapability> getGroupCapabilityTable() {
118 return tab_groupcapability;
119 }
120
121
122
123
124
125
126
127
128 public TableCategoryTable<TableCategory> getTableCategoryTable() {
129 return tab_tablecategory;
130 }
131
132
133
134
135
136
137
138
139 public TableInfoTable<TableInfo> getTableInfoTable() {
140 return tab_tableinfo;
141 }
142
143
144
145
146
147
148
149
150
151 public ColumnInfoTable<ColumnInfo> getColumnInfoTable() {
152 return tab_columninfo;
153 }
154
155
156
157
158
159
160
161
162 public SettingTable<Setting> getSettingTable() {
163 return tab_setting;
164 }
165
166
167
168
169
170
171
172
173 public ContactTable<Contact> getContactTable() {
174 return tab_contact;
175 }
176
177
178
179
180
181
182
183
184 public CategoryTable<Category> getCategoryTable() {
185 return tab_category;
186 }
187
188
189
190
191
192
193
194
195 public ContactCategoryTable<ContactCategory> getContactCategoryTable() {
196 return tab_contactcategory;
197 }
198 }
199
200