Coverage Report - org.melati.poem.generated.PoemDatabaseBase
 
Classes in this File Line Coverage Branch Coverage Complexity
PoemDatabaseBase
100%
29/29
N/A
1
 
 1  
 // Do not edit this file!  It was generated by Melati POEM's DSD preprocessor.
 2  
 
 3  
 package org.melati.poem.generated;
 4  
 
 5  
 
 6  
 import org.melati.poem.Database;
 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  
 
 27  
 /**
 28  
  * Melati POEM generated Database base class.
 29  
  */
 30  
 public class PoemDatabaseBase extends Database {
 31  
 
 32  43
   private UserTable<User> tab_user = null;
 33  43
   private GroupTable<Group> tab_group = null;
 34  43
   private CapabilityTable<Capability> tab_capability = null;
 35  43
   private GroupMembershipTable<GroupMembership> tab_groupmembership = null;
 36  43
   private GroupCapabilityTable<GroupCapability> tab_groupcapability = null;
 37  43
   private TableCategoryTable<TableCategory> tab_tablecategory = null;
 38  43
   private TableInfoTable<TableInfo> tab_tableinfo = null;
 39  43
   private ColumnInfoTable<ColumnInfo> tab_columninfo = null;
 40  43
   private SettingTable<Setting> tab_setting = null;
 41  
 
 42  43
   protected PoemDatabaseBase() {
 43  43
     redefineTable(tab_user = new UserTable<User>(this, "user", DefinitionSource.dsd));
 44  43
     redefineTable(tab_group = new GroupTable<Group>(this, "group", DefinitionSource.dsd));
 45  43
     redefineTable(tab_capability = new CapabilityTable<Capability>(this, "capability", DefinitionSource.dsd));
 46  43
     redefineTable(tab_groupmembership = new GroupMembershipTable<GroupMembership>(this, "groupMembership", DefinitionSource.dsd));
 47  43
     redefineTable(tab_groupcapability = new GroupCapabilityTable<GroupCapability>(this, "groupCapability", DefinitionSource.dsd));
 48  43
     redefineTable(tab_tablecategory = new TableCategoryTable<TableCategory>(this, "tableCategory", DefinitionSource.dsd));
 49  43
     redefineTable(tab_tableinfo = new TableInfoTable<TableInfo>(this, "tableInfo", DefinitionSource.dsd));
 50  43
     redefineTable(tab_columninfo = new ColumnInfoTable<ColumnInfo>(this, "columnInfo", DefinitionSource.dsd));
 51  43
     redefineTable(tab_setting = new SettingTable<Setting>(this, "setting", DefinitionSource.dsd));
 52  43
   }
 53  
 
 54  
 
 55  
  /**
 56  
   * Retrieves the UserTable table.
 57  
   *
 58  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 59  
   * @return the UserTable from this database
 60  
   */
 61  
   public UserTable<User> getUserTable() {
 62  1576
     return tab_user;
 63  
   }
 64  
 
 65  
 
 66  
  /**
 67  
   * Retrieves the GroupTable table.
 68  
   *
 69  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 70  
   * @return the GroupTable from this database
 71  
   */
 72  
   public GroupTable<Group> getGroupTable() {
 73  1417
     return tab_group;
 74  
   }
 75  
 
 76  
 
 77  
  /**
 78  
   * Retrieves the CapabilityTable table.
 79  
   *
 80  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 81  
   * @return the CapabilityTable from this database
 82  
   */
 83  
   public CapabilityTable<Capability> getCapabilityTable() {
 84  2639
     return tab_capability;
 85  
   }
 86  
 
 87  
 
 88  
  /**
 89  
   * Retrieves the GroupMembershipTable table.
 90  
   *
 91  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 92  
   * @return the GroupMembershipTable from this database
 93  
   */
 94  
   public GroupMembershipTable<GroupMembership> getGroupMembershipTable() {
 95  1324
     return tab_groupmembership;
 96  
   }
 97  
 
 98  
 
 99  
  /**
 100  
   * Retrieves the GroupCapabilityTable table.
 101  
   *
 102  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 103  
   * @return the GroupCapabilityTable from this database
 104  
   */
 105  
   public GroupCapabilityTable<GroupCapability> getGroupCapabilityTable() {
 106  1319
     return tab_groupcapability;
 107  
   }
 108  
 
 109  
 
 110  
  /**
 111  
   * Retrieves the TableCategoryTable table.
 112  
   *
 113  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 114  
   * @return the TableCategoryTable from this database
 115  
   */
 116  
   public TableCategoryTable<TableCategory> getTableCategoryTable() {
 117  1561
     return tab_tablecategory;
 118  
   }
 119  
 
 120  
 
 121  
  /**
 122  
   * Retrieves the TableInfoTable table.
 123  
   *
 124  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 125  
   * @return the TableInfoTable from this database
 126  
   */
 127  
   public TableInfoTable<TableInfo> getTableInfoTable() {
 128  3104
     return tab_tableinfo;
 129  
   }
 130  
 
 131  
 
 132  
 
 133  
  /**
 134  
   * Retrieves the ColumnInfoTable table.
 135  
   *
 136  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 137  
   * @return the ColumnInfoTable from this database
 138  
   */
 139  
   public ColumnInfoTable<ColumnInfo> getColumnInfoTable() {
 140  4442
     return tab_columninfo;
 141  
   }
 142  
 
 143  
 
 144  
  /**
 145  
   * Retrieves the SettingTable table.
 146  
   *
 147  
   * See org.melati.poem.prepro.TableDef#generateTableAccessorJava 
 148  
   * @return the SettingTable from this database
 149  
   */
 150  
   public SettingTable<Setting> getSettingTable() {
 151  37
     return tab_setting;
 152  
   }
 153  
 }
 154  
 
 155