1 64 65 package com.jcorporate.expresso.services.dbobj; 66 67 import com.jcorporate.expresso.core.db.DBException; 68 import com.jcorporate.expresso.core.dbobj.RequestContext; 69 import com.jcorporate.expresso.core.dbobj.SecuredDBObject; 70 71 72 79 public class UserPreferenceVal 80 extends SecuredDBObject { 81 84 public UserPreferenceVal() 85 throws DBException { 86 super(); 87 } 88 89 90 97 public UserPreferenceVal(int uid) 98 throws DBException { 99 super(uid); 100 } 101 102 108 public UserPreferenceVal(RequestContext request) 109 throws DBException { 110 super(request); 111 } 112 113 116 public void setupFields() 117 throws DBException { 118 setTargetTable("USERPREFVAL"); 119 setDescription("DBuserPrefVal"); 120 setCharset("ISO-8859-1"); 121 addField("ClassName", "char", 80, false, "className"); 122 addField("PrefCode", "char", 30, false, "prefCode"); 123 addField("PrefValue", "char", 30, false, "prefValue"); 124 addField("Descrip", "varchar", 128, false, "description"); 125 setStringFilter("ClassName", "stripFilter"); 126 setStringFilter("PrefCode", "stripFilter"); 127 addKey("ClassName"); 128 addKey("PrefCode"); 129 addKey("PrefValue"); 130 } 131 132 133 138 protected void checkAllRefs() 139 throws DBException { 140 checkRef("ClassName;PrefCode", new UserPreferenceDef(), 141 "Invalid Preference Code"); 142 } 143 144 145 } 146 147 | Popular Tags |