1 package de.webman.acl.db; 2 3 import de.webman.acl.db.queries.*; 4 5 14 public class PolicyDBInterface 15 extends ObjectDBInterface 16 { 17 18 20 23 public static final String TABLE_NAME = "WM_POLICY"; 24 25 28 public static final String PRIMARY_KEY_NAME = "WM_POLICY_ID"; 29 30 33 public static final String MODE_ALLOW = "A"; 34 35 38 public static final String MODE_DENY = "D"; 39 40 43 public static final Class WM_POLICY_SELECT_ALL = PolicySelectAll.class; 44 45 48 public static final Class WM_POLICY_SELECT_BY_USER = PolicySelectByUser.class; 49 50 53 public static final Class WM_POLICY_SELECT_BY_USER_CONTEXT = PolicySelectByUserContext.class; 54 55 58 public static final Class WM_POLICY_SELECT_BY_USER_CONTEXT_TYPE = PolicySelectByUserContextType.class; 59 60 63 public static final Class WM_POLICY_SELECT_BY_USER_CONTEXT_TYPE_REFERENCE = PolicySelectByUserContextTypeReference.class; 64 65 68 public static final Class WM_POLICY_SELECT_BY_USER_ROLE_CONTEXT_TYPE_REFERENCE = PolicySelectByUserRoleContextTypeReference.class; 69 70 73 public static final Class WM_POLICY_SELECT_BY_CONTENT_TREE = PolicySelectByContentTree.class; 74 75 78 public static final Class WM_POLICY_SELECT_BY_SITE_TREE = PolicySelectBySiteTree.class; 79 80 83 public static final Class WM_POLICY_SELECT_BY_ATOMIC_EVENT = PolicySelectByAtomicEvent.class; 84 85 88 public static final Class WM_POLICY_SELECT_BY_CONTENT_TREE_EVENT = PolicySelectByContentTreeEvent.class; 89 90 93 public static final Class WM_POLICY_SELECT_BY_SITE_TREE_EVENT = PolicySelectBySiteTreeEvent.class; 94 95 98 private static final PolicyDBInterface INSTANCE = new PolicyDBInterface(); 99 100 101 103 106 private PolicyDBInterface () 107 { 108 super(PolicyInsert.class, 109 PolicyUpdate.class, 110 PolicySelect.class, 111 PolicyDelete.class, 112 new Class [1], 113 new Class [1], 114 null); 115 } 116 117 118 120 125 public static final PolicyDBInterface getInstance () 126 { 127 return INSTANCE; 128 } 129 130 131 133 138 public final String getTableName () 139 { 140 return TABLE_NAME; 141 } 142 143 148 public final String getPrimaryKeyName () 149 { 150 return PRIMARY_KEY_NAME; 151 } 152 153 158 public final String getDependentKeyName () 159 { 160 return null; 161 } 162 163 168 public final Class getSelectAllQuery () 169 { 170 return WM_POLICY_SELECT_ALL; 171 } 172 173 178 public final Class getSelectDependentQuery () 179 { 180 return null; 181 } 182 183 188 public final Class getInsertDependentQuery () 189 { 190 return null; 191 } 192 193 } 194 | Popular Tags |