View Javadoc
1   // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
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   * Melati POEM generated Database base class.
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    * Retrieves the UserTable table.
69    *
70    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
71    * @return the UserTable from this database
72    */
73    public UserTable<User> getUserTable() {
74      return tab_user;
75    }
76  
77  
78   /**
79    * Retrieves the GroupTable table.
80    *
81    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
82    * @return the GroupTable from this database
83    */
84    public GroupTable<Group> getGroupTable() {
85      return tab_group;
86    }
87  
88  
89   /**
90    * Retrieves the CapabilityTable table.
91    *
92    * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
93    * @return the CapabilityTable from this database
94    */
95    public CapabilityTable<Capability> getCapabilityTable() {
96      return tab_capability;
97    }
98  
99  
100  /**
101   * Retrieves the GroupMembershipTable table.
102   *
103   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
104   * @return the GroupMembershipTable from this database
105   */
106   public GroupMembershipTable<GroupMembership> getGroupMembershipTable() {
107     return tab_groupmembership;
108   }
109 
110 
111  /**
112   * Retrieves the GroupCapabilityTable table.
113   *
114   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
115   * @return the GroupCapabilityTable from this database
116   */
117   public GroupCapabilityTable<GroupCapability> getGroupCapabilityTable() {
118     return tab_groupcapability;
119   }
120 
121 
122  /**
123   * Retrieves the TableCategoryTable table.
124   *
125   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
126   * @return the TableCategoryTable from this database
127   */
128   public TableCategoryTable<TableCategory> getTableCategoryTable() {
129     return tab_tablecategory;
130   }
131 
132 
133  /**
134   * Retrieves the TableInfoTable table.
135   *
136   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
137   * @return the TableInfoTable from this database
138   */
139   public TableInfoTable<TableInfo> getTableInfoTable() {
140     return tab_tableinfo;
141   }
142 
143 
144 
145  /**
146   * Retrieves the ColumnInfoTable table.
147   *
148   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
149   * @return the ColumnInfoTable from this database
150   */
151   public ColumnInfoTable<ColumnInfo> getColumnInfoTable() {
152     return tab_columninfo;
153   }
154 
155 
156  /**
157   * Retrieves the SettingTable table.
158   *
159   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
160   * @return the SettingTable from this database
161   */
162   public SettingTable<Setting> getSettingTable() {
163     return tab_setting;
164   }
165 
166 
167  /**
168   * Retrieves the ContactTable table.
169   *
170   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
171   * @return the ContactTable from this database
172   */
173   public ContactTable<Contact> getContactTable() {
174     return tab_contact;
175   }
176 
177 
178  /**
179   * Retrieves the CategoryTable table.
180   *
181   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
182   * @return the CategoryTable from this database
183   */
184   public CategoryTable<Category> getCategoryTable() {
185     return tab_category;
186   }
187 
188 
189  /**
190   * Retrieves the ContactCategoryTable table.
191   *
192   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
193   * @return the ContactCategoryTable from this database
194   */
195   public ContactCategoryTable<ContactCategory> getContactCategoryTable() {
196     return tab_contactcategory;
197   }
198 }
199 
200