1 64 65 package com.jcorporate.expresso.core.dbobj.tests; 66 67 import com.jcorporate.expresso.core.db.DBConnection; 68 import com.jcorporate.expresso.core.db.DBException; 69 import com.jcorporate.expresso.core.dbobj.DBObject; 70 71 72 78 public class Test2 79 extends DBObject { 80 84 public Test2() 85 throws DBException { 86 super(); 87 } 88 89 90 97 public Test2(DBConnection oneConnection) throws DBException { 98 super(oneConnection); 99 } 100 101 105 public void setupFields() 106 throws DBException { 107 setTargetTable("TEST2"); 108 setDescription("Test Two"); 109 setCharset("ISO-8859-1"); 110 addField("TestKey", "int", 0, false, "Test Table Key"); 111 addField("Descrip", "varchar", 30, true, "Description"); 112 this.setDefaultValue("Descrip", "This is a test"); 113 addKey("TestKey"); 114 } 115 116 117 } 118 119 | Popular Tags |