View Javadoc
1   // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
2   
3   package org.melati.admin.test.generated;
4   
5   
6   import org.melati.poem.PoemDatabase;
7   import org.melati.poem.DefinitionSource;
8   import org.melati.poem.Group;
9   import org.melati.poem.GroupTable;
10  import org.melati.poem.Capability;
11  import org.melati.poem.CapabilityTable;
12  import org.melati.poem.GroupMembership;
13  import org.melati.poem.GroupMembershipTable;
14  import org.melati.poem.GroupCapability;
15  import org.melati.poem.GroupCapabilityTable;
16  import org.melati.poem.TableCategory;
17  import org.melati.poem.TableCategoryTable;
18  import org.melati.poem.TableInfo;
19  import org.melati.poem.TableInfoTable;
20  import org.melati.poem.ColumnInfo;
21  import org.melati.poem.ColumnInfoTable;
22  import org.melati.poem.Setting;
23  import org.melati.poem.SettingTable;
24  import org.melati.admin.test.UploadedFile;
25  import org.melati.admin.test.UploadedFileTable;
26  import org.melati.admin.test.UploadedImage;
27  import org.melati.admin.test.UploadedImageTable;
28  import org.melati.admin.test.Parent;
29  import org.melati.admin.test.ParentTable;
30  import org.melati.admin.test.Child;
31  import org.melati.admin.test.ChildTable;
32  import org.melati.admin.test.Specialised;
33  import org.melati.admin.test.SpecialisedTable;
34  import org.melati.admin.test.Markup;
35  import org.melati.admin.test.MarkupTable;
36  import org.melati.admin.test.User;
37  import org.melati.admin.test.UserTable;
38  
39  /**
40   * Melati POEM generated Database base class.
41   */
42  public class AdminTestDatabaseBase extends PoemDatabase {
43  
44    private GroupTable<Group> tab_group = null;
45    private CapabilityTable<Capability> tab_capability = null;
46    private GroupMembershipTable<GroupMembership> tab_groupmembership = null;
47    private GroupCapabilityTable<GroupCapability> tab_groupcapability = null;
48    private TableCategoryTable<TableCategory> tab_tablecategory = null;
49    private TableInfoTable<TableInfo> tab_tableinfo = null;
50    private ColumnInfoTable<ColumnInfo> tab_columninfo = null;
51    private SettingTable<Setting> tab_setting = null;
52    private UploadedFileTable<UploadedFile> tab_uploadedfile = null;
53    private UploadedImageTable<UploadedImage> tab_uploadedimage = null;
54    private ParentTable<Parent> tab_parent = null;
55    private ChildTable<Child> tab_child = null;
56    private SpecialisedTable<Specialised> tab_specialised = null;
57    private MarkupTable<Markup> tab_markup = null;
58    private UserTable<User> tab_user = null;
59  
60    @SuppressWarnings({ "unchecked", "rawtypes" })
61    protected AdminTestDatabaseBase() {
62      redefineTable(tab_group = new GroupTable<Group>(this, "group", DefinitionSource.dsd));
63      redefineTable(tab_capability = new CapabilityTable<Capability>(this, "capability", DefinitionSource.dsd));
64      redefineTable(tab_groupmembership = new GroupMembershipTable<GroupMembership>(this, "groupMembership", DefinitionSource.dsd));
65      redefineTable(tab_groupcapability = new GroupCapabilityTable<GroupCapability>(this, "groupCapability", DefinitionSource.dsd));
66      redefineTable(tab_tablecategory = new TableCategoryTable<TableCategory>(this, "tableCategory", DefinitionSource.dsd));
67      redefineTable(tab_tableinfo = new TableInfoTable<TableInfo>(this, "tableInfo", DefinitionSource.dsd));
68      redefineTable(tab_columninfo = new ColumnInfoTable<ColumnInfo>(this, "columnInfo", DefinitionSource.dsd));
69      redefineTable(tab_setting = new SettingTable<Setting>(this, "setting", DefinitionSource.dsd));
70      redefineTable(tab_uploadedfile = new UploadedFileTable<UploadedFile>(this, "UploadedFile", DefinitionSource.dsd));
71      redefineTable(tab_uploadedimage = new UploadedImageTable<UploadedImage>(this, "UploadedImage", DefinitionSource.dsd));
72      redefineTable(tab_parent = new ParentTable<Parent>(this, "Parent", DefinitionSource.dsd));
73      redefineTable(tab_child = new ChildTable<Child>(this, "Child", DefinitionSource.dsd));
74      redefineTable(tab_specialised = new SpecialisedTable<Specialised>(this, "Specialised", DefinitionSource.dsd));
75      redefineTable(tab_markup = new MarkupTable<Markup>(this, "Markup", DefinitionSource.dsd));
76      redefineTable(tab_user = new org.melati.admin.test.UserTable(this, "User", DefinitionSource.dsd));
77    }
78  
79  
80   /**
81    * Retrieves the GroupTable table.
82    *
83    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
84    * @return the GroupTable from this database
85    */
86    public GroupTable<Group> getGroupTable() {
87      return tab_group;
88    }
89  
90  
91   /**
92    * Retrieves the CapabilityTable table.
93    *
94    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
95    * @return the CapabilityTable from this database
96    */
97    public CapabilityTable<Capability> getCapabilityTable() {
98      return tab_capability;
99    }
100 
101 
102  /**
103   * Retrieves the GroupMembershipTable table.
104   *
105   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
106   * @return the GroupMembershipTable from this database
107   */
108   public GroupMembershipTable<GroupMembership> getGroupMembershipTable() {
109     return tab_groupmembership;
110   }
111 
112 
113  /**
114   * Retrieves the GroupCapabilityTable table.
115   *
116   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
117   * @return the GroupCapabilityTable from this database
118   */
119   public GroupCapabilityTable<GroupCapability> getGroupCapabilityTable() {
120     return tab_groupcapability;
121   }
122 
123 
124  /**
125   * Retrieves the TableCategoryTable table.
126   *
127   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
128   * @return the TableCategoryTable from this database
129   */
130   public TableCategoryTable<TableCategory> getTableCategoryTable() {
131     return tab_tablecategory;
132   }
133 
134 
135  /**
136   * Retrieves the TableInfoTable table.
137   *
138   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
139   * @return the TableInfoTable from this database
140   */
141   public TableInfoTable<TableInfo> getTableInfoTable() {
142     return tab_tableinfo;
143   }
144 
145 
146 
147  /**
148   * Retrieves the ColumnInfoTable table.
149   *
150   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
151   * @return the ColumnInfoTable from this database
152   */
153   public ColumnInfoTable<ColumnInfo> getColumnInfoTable() {
154     return tab_columninfo;
155   }
156 
157 
158  /**
159   * Retrieves the SettingTable table.
160   *
161   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
162   * @return the SettingTable from this database
163   */
164   public SettingTable<Setting> getSettingTable() {
165     return tab_setting;
166   }
167 
168 
169  /**
170   * Retrieves the UploadedFileTable table.
171   *
172   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
173   * @return the UploadedFileTable from this database
174   */
175   public UploadedFileTable<UploadedFile> getUploadedFileTable() {
176     return tab_uploadedfile;
177   }
178 
179 
180  /**
181   * Retrieves the UploadedImageTable table.
182   *
183   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
184   * @return the UploadedImageTable from this database
185   */
186   public UploadedImageTable<UploadedImage> getUploadedImageTable() {
187     return tab_uploadedimage;
188   }
189 
190 
191  /**
192   * Retrieves the ParentTable table.
193   *
194   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
195   * @return the ParentTable from this database
196   */
197   public ParentTable<Parent> getParentTable() {
198     return tab_parent;
199   }
200 
201 
202  /**
203   * Retrieves the ChildTable table.
204   *
205   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
206   * @return the ChildTable from this database
207   */
208   public ChildTable<Child> getChildTable() {
209     return tab_child;
210   }
211 
212 
213  /**
214   * Retrieves the SpecialisedTable table.
215   *
216   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
217   * @return the SpecialisedTable from this database
218   */
219   public SpecialisedTable<Specialised> getSpecialisedTable() {
220     return tab_specialised;
221   }
222 
223 
224  /**
225   * Retrieves the MarkupTable table.
226   *
227   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
228   * @return the MarkupTable from this database
229   */
230   public MarkupTable<Markup> getMarkupTable() {
231     return tab_markup;
232   }
233 
234 
235  /**
236   * Retrieves the UserTable table.
237   *
238   * Deprecated: use getAdminTestUserTable
239   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
240   * @return the org.melati.poem.UserTable from this database
241   */
242   @SuppressWarnings({ "rawtypes", "unchecked" })
243   public org.melati.poem.UserTable<org.melati.poem.User> getUserTable() {
244     return (org.melati.poem.UserTable)tab_user;
245   }
246 
247  /**
248   * Retrieves our (AdminTest) UserTable table.
249   *
250   * See org.melati.poem.prepro.TableDef#generateSubclassedTableAccessorDeclaration 
251   * @return the org.melati.poem.UserTable from this database
252   */
253   public UserTable<User> getAdminTestUserTable() {
254     return tab_user;
255   }
256 }
257 
258