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