1 64 65 package com.jcorporate.expresso.ext.dbobj; 66 67 import com.jcorporate.expresso.core.controller.ControllerRequest; 68 import com.jcorporate.expresso.core.db.DBException; 69 import com.jcorporate.expresso.core.dbobj.SecuredDBObject; 70 71 import java.util.Vector ; 72 73 74 81 public class PerfTestSet 82 extends SecuredDBObject { 83 86 public PerfTestSet() 87 throws DBException { 88 super(); 89 } 90 91 92 99 public PerfTestSet(int uid) 100 throws DBException { 101 super(uid); 102 } 103 104 111 public PerfTestSet(ControllerRequest request) 112 throws DBException { 113 super(request); 114 } 115 116 public Vector getValues() 117 throws DBException { 118 return getValuesDefault("SetNumber", "Descrip"); 119 } 120 121 124 public void setupFields() 125 throws DBException { 126 setTargetTable("PTESTSET"); 127 setDescription("DBptestSet"); 128 setCharset("ISO-8859-1"); 129 addField("SetNumber", "auto-inc", 0, false, "setNumber"); 130 addField("Descrip", "varchar", 80, false, "descriptionOfTest"); 131 addField("HealthCheck", "char", 1, false, "includedInHealthCheck"); 132 getMetaData().setAttribute("HealthCheck", "checkbox", "Y"); 133 addKey("SetNumber"); 134 setReadOnly("SetNumber"); 135 } 136 137 138 } 139 140 | Popular Tags |