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 78 public class ValidationQueueParam 79 extends SecuredDBObject { 80 public static final String FLD_QUEUE_ID = ValidationQueue.FLD_ID; 81 public static final String FLD_PARAM_NUM = "ParamNum"; 82 public static final String FLD_PARAM_VAL = "ParamVal"; 83 public static final String FLD_PARAM_CODE = "ParamCode"; 84 85 93 96 public ValidationQueueParam() 97 throws DBException { 98 super(); 99 } 100 101 108 public ValidationQueueParam(int uid) 109 throws DBException { 110 super(uid); 111 } 112 113 119 public ValidationQueueParam(RequestContext request) 120 throws DBException { 121 super(request); 122 } 123 124 129 protected void checkAllRefs() 130 throws DBException { 131 checkRef(FLD_QUEUE_ID, new ValidationQueue(), 132 "Invalid " + getString(getMetaData().getDescription(FLD_QUEUE_ID))); 133 } 134 135 138 protected synchronized void setupFields() 139 throws DBException { 140 setTargetTable("VALQUEUEPARAM"); 141 setDescription("DBvalQueueParam"); 142 setCharset("ISO-8859-1"); 143 addField(FLD_QUEUE_ID, "int", 0, false, "entryNumber"); 144 addField(FLD_PARAM_NUM, "smallint", 0, false, "paramNumber"); 145 addField(FLD_PARAM_VAL, "text", 0, true, "paramValue"); 146 addField(FLD_PARAM_CODE, "varchar", 80, true, "paramCode"); 147 setStringFilter(FLD_PARAM_VAL, "rawFilter"); 148 setStringFilter(FLD_PARAM_CODE, "stripFilter"); 149 addKey(FLD_QUEUE_ID); 150 setLookupObject(FLD_QUEUE_ID, 151 "com.jcorporate.expresso.services.dbobj.ValidationQueue"); 152 addKey(FLD_PARAM_NUM); 153 } 154 } | Popular Tags |