View Javadoc
1   // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
2   
3   package org.melati.example.odmg.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.odmg.Parent;
27  import org.melati.example.odmg.ParentTable;
28  import org.melati.example.odmg.Child;
29  import org.melati.example.odmg.ChildTable;
30  
31  /**
32   * Melati POEM generated Database base class.
33   */
34  public class OdmgDatabaseBase extends PoemDatabase {
35  
36    private UserTable<User> tab_user = null;
37    private GroupTable<Group> tab_group = null;
38    private CapabilityTable<Capability> tab_capability = null;
39    private GroupMembershipTable<GroupMembership> tab_groupmembership = null;
40    private GroupCapabilityTable<GroupCapability> tab_groupcapability = null;
41    private TableCategoryTable<TableCategory> tab_tablecategory = null;
42    private TableInfoTable<TableInfo> tab_tableinfo = null;
43    private ColumnInfoTable<ColumnInfo> tab_columninfo = null;
44    private SettingTable<Setting> tab_setting = null;
45    private ParentTable<Parent> tab_parent = null;
46    private ChildTable<Child> tab_child = null;
47  
48    protected OdmgDatabaseBase() {
49      redefineTable(tab_user = new UserTable<User>(this, "user", DefinitionSource.dsd));
50      redefineTable(tab_group = new GroupTable<Group>(this, "group", DefinitionSource.dsd));
51      redefineTable(tab_capability = new CapabilityTable<Capability>(this, "capability", DefinitionSource.dsd));
52      redefineTable(tab_groupmembership = new GroupMembershipTable<GroupMembership>(this, "groupMembership", DefinitionSource.dsd));
53      redefineTable(tab_groupcapability = new GroupCapabilityTable<GroupCapability>(this, "groupCapability", DefinitionSource.dsd));
54      redefineTable(tab_tablecategory = new TableCategoryTable<TableCategory>(this, "tableCategory", DefinitionSource.dsd));
55      redefineTable(tab_tableinfo = new TableInfoTable<TableInfo>(this, "tableInfo", DefinitionSource.dsd));
56      redefineTable(tab_columninfo = new ColumnInfoTable<ColumnInfo>(this, "columnInfo", DefinitionSource.dsd));
57      redefineTable(tab_setting = new SettingTable<Setting>(this, "setting", DefinitionSource.dsd));
58      redefineTable(tab_parent = new ParentTable<Parent>(this, "Parent", DefinitionSource.dsd));
59      redefineTable(tab_child = new ChildTable<Child>(this, "Child", DefinitionSource.dsd));
60    }
61  
62  
63   /**
64    * Retrieves the UserTable table.
65    *
66    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
67    * @return the UserTable from this database
68    */
69    public UserTable<User> getUserTable() {
70      return tab_user;
71    }
72  
73  
74   /**
75    * Retrieves the GroupTable table.
76    *
77    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
78    * @return the GroupTable from this database
79    */
80    public GroupTable<Group> getGroupTable() {
81      return tab_group;
82    }
83  
84  
85   /**
86    * Retrieves the CapabilityTable table.
87    *
88    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
89    * @return the CapabilityTable from this database
90    */
91    public CapabilityTable<Capability> getCapabilityTable() {
92      return tab_capability;
93    }
94  
95  
96   /**
97    * Retrieves the GroupMembershipTable table.
98    *
99    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
100   * @return the GroupMembershipTable from this database
101   */
102   public GroupMembershipTable<GroupMembership> getGroupMembershipTable() {
103     return tab_groupmembership;
104   }
105 
106 
107  /**
108   * Retrieves the GroupCapabilityTable table.
109   *
110   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
111   * @return the GroupCapabilityTable from this database
112   */
113   public GroupCapabilityTable<GroupCapability> getGroupCapabilityTable() {
114     return tab_groupcapability;
115   }
116 
117 
118  /**
119   * Retrieves the TableCategoryTable table.
120   *
121   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
122   * @return the TableCategoryTable from this database
123   */
124   public TableCategoryTable<TableCategory> getTableCategoryTable() {
125     return tab_tablecategory;
126   }
127 
128 
129  /**
130   * Retrieves the TableInfoTable table.
131   *
132   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
133   * @return the TableInfoTable from this database
134   */
135   public TableInfoTable<TableInfo> getTableInfoTable() {
136     return tab_tableinfo;
137   }
138 
139 
140 
141  /**
142   * Retrieves the ColumnInfoTable table.
143   *
144   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
145   * @return the ColumnInfoTable from this database
146   */
147   public ColumnInfoTable<ColumnInfo> getColumnInfoTable() {
148     return tab_columninfo;
149   }
150 
151 
152  /**
153   * Retrieves the SettingTable table.
154   *
155   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
156   * @return the SettingTable from this database
157   */
158   public SettingTable<Setting> getSettingTable() {
159     return tab_setting;
160   }
161 
162 
163  /**
164   * Retrieves the ParentTable table.
165   *
166   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
167   * @return the ParentTable from this database
168   */
169   public ParentTable<Parent> getParentTable() {
170     return tab_parent;
171   }
172 
173 
174  /**
175   * Retrieves the ChildTable table.
176   *
177   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
178   * @return the ChildTable from this database
179   */
180   public ChildTable<Child> getChildTable() {
181     return tab_child;
182   }
183 }
184 
185