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