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   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   * Melati POEM generated Database base class.
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    * Retrieves the UserTable table.
56    *
57    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
58    * @return the UserTable from this database
59    */
60    public UserTable getUserTable() {
61      return tab_user;
62    }
63  
64  
65   /**
66    * Retrieves the GroupTable table.
67    *
68    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
69    * @return the GroupTable from this database
70    */
71    public GroupTable getGroupTable() {
72      return tab_group;
73    }
74  
75  
76   /**
77    * Retrieves the CapabilityTable table.
78    *
79    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
80    * @return the CapabilityTable from this database
81    */
82    public CapabilityTable getCapabilityTable() {
83      return tab_capability;
84    }
85  
86  
87   /**
88    * Retrieves the GroupMembershipTable table.
89    *
90    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
91    * @return the GroupMembershipTable from this database
92    */
93    public GroupMembershipTable getGroupMembershipTable() {
94      return tab_groupmembership;
95    }
96  
97  
98   /**
99    * Retrieves the GroupCapabilityTable table.
100   *
101   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
102   * @return the GroupCapabilityTable from this database
103   */
104   public GroupCapabilityTable getGroupCapabilityTable() {
105     return tab_groupcapability;
106   }
107 
108 
109  /**
110   * Retrieves the TableCategoryTable table.
111   *
112   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
113   * @return the TableCategoryTable from this database
114   */
115   public TableCategoryTable getTableCategoryTable() {
116     return tab_tablecategory;
117   }
118 
119 
120  /**
121   * Retrieves the TableInfoTable table.
122   *
123   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
124   * @return the TableInfoTable from this database
125   */
126   public TableInfoTable getTableInfoTable() {
127     return tab_tableinfo;
128   }
129 
130 
131 
132  /**
133   * Retrieves the ColumnInfoTable table.
134   *
135   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
136   * @return the ColumnInfoTable from this database
137   */
138   public ColumnInfoTable getColumnInfoTable() {
139     return tab_columninfo;
140   }
141 
142 
143  /**
144   * Retrieves the SettingTable table.
145   *
146   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
147   * @return the SettingTable from this database
148   */
149   public SettingTable getSettingTable() {
150     return tab_setting;
151   }
152 
153 
154  /**
155   * Retrieves the ContactTable table.
156   *
157   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
158   * @return the ContactTable from this database
159   */
160   public ContactTable getContactTable() {
161     return tab_contact;
162   }
163 
164 
165  /**
166   * Retrieves the CategoryTable table.
167   *
168   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
169   * @return the CategoryTable from this database
170   */
171   public CategoryTable getCategoryTable() {
172     return tab_category;
173   }
174 
175 
176  /**
177   * Retrieves the ContactCategoryTable table.
178   *
179   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
180   * @return the ContactCategoryTable from this database
181   */
182   public ContactCategoryTable getContactCategoryTable() {
183     return tab_contactcategory;
184   }
185 }
186 
187