1   // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
2   
3   package org.melati.util.test.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.util.test.NodeTable;
17  
18  /**
19   * Melati POEM generated Database base class.
20   */
21  public class TreeDatabaseBase extends PoemDatabase {
22  
23    private UserTable tab_user = null;
24    private GroupTable tab_group = null;
25    private CapabilityTable tab_capability = null;
26    private GroupMembershipTable tab_groupmembership = null;
27    private GroupCapabilityTable tab_groupcapability = null;
28    private TableCategoryTable tab_tablecategory = null;
29    private TableInfoTable tab_tableinfo = null;
30    private ColumnInfoTable tab_columninfo = null;
31    private SettingTable tab_setting = null;
32    private NodeTable tab_node = null;
33  
34    protected TreeDatabaseBase() {
35      redefineTable(tab_user = new UserTable(this, "user", DefinitionSource.dsd));
36      redefineTable(tab_group = new GroupTable(this, "group", DefinitionSource.dsd));
37      redefineTable(tab_capability = new CapabilityTable(this, "capability", DefinitionSource.dsd));
38      redefineTable(tab_groupmembership = new GroupMembershipTable(this, "groupmembership", DefinitionSource.dsd));
39      redefineTable(tab_groupcapability = new GroupCapabilityTable(this, "groupcapability", DefinitionSource.dsd));
40      redefineTable(tab_tablecategory = new TableCategoryTable(this, "tablecategory", DefinitionSource.dsd));
41      redefineTable(tab_tableinfo = new TableInfoTable(this, "tableinfo", DefinitionSource.dsd));
42      redefineTable(tab_columninfo = new ColumnInfoTable(this, "columninfo", DefinitionSource.dsd));
43      redefineTable(tab_setting = new SettingTable(this, "setting", DefinitionSource.dsd));
44      redefineTable(tab_node = new NodeTable(this, "node", DefinitionSource.dsd));
45    }
46  
47  
48   /**
49    * Retrieves the UserTable table.
50    *
51    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
52    * @return the UserTable from this database
53    */
54    public UserTable getUserTable() {
55      return tab_user;
56    }
57  
58  
59   /**
60    * Retrieves the GroupTable table.
61    *
62    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
63    * @return the GroupTable from this database
64    */
65    public GroupTable getGroupTable() {
66      return tab_group;
67    }
68  
69  
70   /**
71    * Retrieves the CapabilityTable table.
72    *
73    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
74    * @return the CapabilityTable from this database
75    */
76    public CapabilityTable getCapabilityTable() {
77      return tab_capability;
78    }
79  
80  
81   /**
82    * Retrieves the GroupMembershipTable table.
83    *
84    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
85    * @return the GroupMembershipTable from this database
86    */
87    public GroupMembershipTable getGroupMembershipTable() {
88      return tab_groupmembership;
89    }
90  
91  
92   /**
93    * Retrieves the GroupCapabilityTable table.
94    *
95    * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
96    * @return the GroupCapabilityTable from this database
97    */
98    public GroupCapabilityTable getGroupCapabilityTable() {
99      return tab_groupcapability;
100   }
101 
102 
103  /**
104   * Retrieves the TableCategoryTable table.
105   *
106   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
107   * @return the TableCategoryTable from this database
108   */
109   public TableCategoryTable getTableCategoryTable() {
110     return tab_tablecategory;
111   }
112 
113 
114  /**
115   * Retrieves the TableInfoTable table.
116   *
117   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
118   * @return the TableInfoTable from this database
119   */
120   public TableInfoTable getTableInfoTable() {
121     return tab_tableinfo;
122   }
123 
124 
125 
126  /**
127   * Retrieves the ColumnInfoTable table.
128   *
129   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
130   * @return the ColumnInfoTable from this database
131   */
132   public ColumnInfoTable getColumnInfoTable() {
133     return tab_columninfo;
134   }
135 
136 
137  /**
138   * Retrieves the SettingTable table.
139   *
140   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
141   * @return the SettingTable from this database
142   */
143   public SettingTable getSettingTable() {
144     return tab_setting;
145   }
146 
147 
148  /**
149   * Retrieves the NodeTable table.
150   *
151   * @generator org.melati.poem.prepro.TableDef#generateTableAccessorJava 
152   * @return the NodeTable from this database
153   */
154   public NodeTable getNodeTable() {
155     return tab_node;
156   }
157 }
158 
159