1 package de.webman.acl.db; 2 3 import de.webman.acl.db.queries.*; 4 5 14 public class RoleDBInterface 15 extends ObjectDBInterface 16 { 17 18 20 23 public static final String TABLE_NAME = "WM_ROLE"; 24 25 28 public static final String PRIMARY_KEY_NAME = "WM_ROLE_ID"; 29 30 33 public static final Class WM_ROLE_SELECT_ALL = RoleSelectAll.class; 34 35 38 public static final Class WM_ROLE_TASK_SELECT_BY_ROLE = RoleTaskSelectByRole.class; 39 40 43 public static final Class WM_ROLE_TASK_SELECT_BY_TASK = RoleTaskSelectByTask.class; 44 45 48 public static final Class WM_ROLE_TASK_INSERT = RoleTaskInsert.class; 49 50 53 private static final RoleDBInterface INSTANCE = new RoleDBInterface(); 54 55 56 58 61 private RoleDBInterface () 62 { 63 super(RoleInsert.class, 64 RoleUpdate.class, 65 RoleSelect.class, 66 RoleDelete.class, 67 new Class [1], 68 new Class [1], 69 RoleDeleteDependent.class); 70 } 71 72 73 75 80 public static final RoleDBInterface getInstance () 81 { 82 return INSTANCE; 83 } 84 85 86 88 93 public final String getTableName () 94 { 95 return TABLE_NAME; 96 } 97 98 103 public final String getPrimaryKeyName () 104 { 105 return PRIMARY_KEY_NAME; 106 } 107 108 113 public final String getDependentKeyName () 114 { 115 return TaskDBInterface.PRIMARY_KEY_NAME; 116 } 117 118 123 public final Class getSelectAllQuery () 124 { 125 return WM_ROLE_SELECT_ALL; 126 } 127 128 133 public final Class getSelectDependentQuery () 134 { 135 return WM_ROLE_TASK_SELECT_BY_ROLE; 136 } 137 138 143 public final Class getInsertDependentQuery () 144 { 145 return WM_ROLE_TASK_INSERT; 146 } 147 148 } 149 | Popular Tags |