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 81 public class JobQueueParam 82 extends SecuredDBObject { 83 84 public static final String FLD_JOB_NUMBER = "JobNumber"; 85 public static final String FLD_PARAM_NUMBER = "ParamNumber"; 86 public static final String FLD_PARAM_CODE = "ParamCode"; 87 public static final String FLD_PARAM_VALUE = "ParamValue"; 88 89 90 93 public JobQueueParam() 94 throws DBException { 95 super(); 96 } 97 98 99 105 public JobQueueParam(int uid) 106 throws DBException { 107 super(uid); 108 } 109 110 117 public JobQueueParam(RequestContext request) 118 throws DBException { 119 super(request); 120 } 121 122 125 protected synchronized void setupFields() 126 throws DBException { 127 setTargetTable("JOBQUEUEPARAM"); 128 setDescription("DBjobQueueParams"); 129 setCharset("ISO-8859-1"); 130 addField(FLD_JOB_NUMBER, "int", 0, false, "jobSerial"); 131 addField(FLD_PARAM_NUMBER, "smallint", 0, false, "paramNumber"); 132 addField(FLD_PARAM_VALUE, "text", 0, true, "paramValue"); 133 addField(FLD_PARAM_CODE, "varchar", 80, true, "paramCode"); 134 setStringFilter(FLD_PARAM_VALUE, "rawFilter"); 135 setStringFilter(FLD_PARAM_CODE, "stripFilter"); 136 addKey(FLD_JOB_NUMBER); 137 setLookupObject(FLD_JOB_NUMBER, 138 "com.jcorporate.expresso.services.dbobj.JobQueue"); 139 addKey(FLD_PARAM_NUMBER); 140 } 141 142 143 } 144 145 | Popular Tags |