1
2
3 package org.melati.example.odmg.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.odmg.ParentTable;
17 import org.melati.example.odmg.ChildTable;
18
19
20
21
22 public class OdmgDatabaseBase extends PoemDatabase {
23
24 private UserTable tab_user = null;
25 private GroupTable tab_group = null;
26 private CapabilityTable tab_capability = null;
27 private GroupMembershipTable tab_groupmembership = null;
28 private GroupCapabilityTable tab_groupcapability = null;
29 private TableCategoryTable tab_tablecategory = null;
30 private TableInfoTable tab_tableinfo = null;
31 private ColumnInfoTable tab_columninfo = null;
32 private SettingTable tab_setting = null;
33 private ParentTable tab_parent = null;
34 private ChildTable tab_child = null;
35
36 protected OdmgDatabaseBase() {
37 redefineTable(tab_user = new UserTable(this, "user", DefinitionSource.dsd));
38 redefineTable(tab_group = new GroupTable(this, "group", DefinitionSource.dsd));
39 redefineTable(tab_capability = new CapabilityTable(this, "capability", DefinitionSource.dsd));
40 redefineTable(tab_groupmembership = new GroupMembershipTable(this, "groupmembership", DefinitionSource.dsd));
41 redefineTable(tab_groupcapability = new GroupCapabilityTable(this, "groupcapability", DefinitionSource.dsd));
42 redefineTable(tab_tablecategory = new TableCategoryTable(this, "tablecategory", DefinitionSource.dsd));
43 redefineTable(tab_tableinfo = new TableInfoTable(this, "tableinfo", DefinitionSource.dsd));
44 redefineTable(tab_columninfo = new ColumnInfoTable(this, "columninfo", DefinitionSource.dsd));
45 redefineTable(tab_setting = new SettingTable(this, "setting", DefinitionSource.dsd));
46 redefineTable(tab_parent = new ParentTable(this, "parent", DefinitionSource.dsd));
47 redefineTable(tab_child = new ChildTable(this, "child", DefinitionSource.dsd));
48 }
49
50
51
52
53
54
55
56
57 public UserTable getUserTable() {
58 return tab_user;
59 }
60
61
62
63
64
65
66
67
68 public GroupTable getGroupTable() {
69 return tab_group;
70 }
71
72
73
74
75
76
77
78
79 public CapabilityTable getCapabilityTable() {
80 return tab_capability;
81 }
82
83
84
85
86
87
88
89
90 public GroupMembershipTable getGroupMembershipTable() {
91 return tab_groupmembership;
92 }
93
94
95
96
97
98
99
100
101 public GroupCapabilityTable getGroupCapabilityTable() {
102 return tab_groupcapability;
103 }
104
105
106
107
108
109
110
111
112 public TableCategoryTable getTableCategoryTable() {
113 return tab_tablecategory;
114 }
115
116
117
118
119
120
121
122
123 public TableInfoTable getTableInfoTable() {
124 return tab_tableinfo;
125 }
126
127
128
129
130
131
132
133
134
135 public ColumnInfoTable getColumnInfoTable() {
136 return tab_columninfo;
137 }
138
139
140
141
142
143
144
145
146 public SettingTable getSettingTable() {
147 return tab_setting;
148 }
149
150
151
152
153
154
155
156
157 public ParentTable getParentTable() {
158 return tab_parent;
159 }
160
161
162
163
164
165
166
167
168 public ChildTable getChildTable() {
169 return tab_child;
170 }
171 }
172
173