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 72 77 public class PerfTestStat 78 extends SecuredDBObject { 79 82 public PerfTestStat() 83 throws DBException { 84 super(); 85 } 86 87 88 95 public PerfTestStat(int uid) 96 throws DBException { 97 super(uid); 98 } 99 100 106 public PerfTestStat(ControllerRequest request) 107 throws DBException { 108 super(request); 109 } 110 111 114 public void setupFields() 115 throws DBException { 116 setTargetTable("PTESTSTAT"); 117 setDescription("DBptestStat"); 118 setCharset("ISO-8859-1"); 119 addField("TestNumber", "int", 0, false, "testNumber"); 120 addField("RunWhen", "datetime", 0, false, "dateTimeRun"); 121 addField("RunTime", "int", 0, false, "runTimeMillis"); 122 addField("UserCount", "int", 0, true, "userCount"); 123 addKey("TestNumber"); 124 addKey("RunWhen"); 125 setReadOnly("TestNumber"); 126 setReadOnly("RunWhen"); 127 setReadOnly("RunTime"); 128 setLookupObject("TestNumber", 129 "com.jcorporate.expresso.ext.dbobj.PerfTests"); 130 } 131 132 133 } 134 135 | Popular Tags |