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.RowSecuredDBObject; 70 71 72 77 public class RowSecuredDBObjectTest1 78 extends RowSecuredDBObject { 79 83 public RowSecuredDBObjectTest1() 84 throws DBException { 85 super(); 86 } 87 88 96 public RowSecuredDBObjectTest1(DBConnection oneConnection, int securityUid) 97 throws DBException { 98 super(oneConnection, securityUid); 99 } 100 101 102 109 public void setupFields() 110 throws DBException { 111 setTargetTable("ROWSECTEST1"); 112 setDescription("Test One"); 113 setCharset("ISO-8859-1"); 114 addField("TestKey", "int", 0, false, "Test Table Key"); 115 addField("BigIntTest", "bigint", 0, true, "Big Int Test"); 116 addField("BinaryTest", "binary", 0, true, "Binary Test"); 117 addField("BitTest", "bit", 0, true, "Bit Test"); 118 addField("BooleanTest", "boolean", 0, true, "Boolean Test"); 119 addField("BlobTest", "blob", 0, true, "Blob Test"); 120 addField("CharTest", "char", 30, true, "Char Test"); 121 addField("ClobTest", "clob", 0, true, "Clob Test"); 122 addField("DateTest", "date", 0, true, "Date Test"); 123 addField("DecimalTest", "decimal", 0, true, "Decimal Test"); 124 addField("DoubleTest", "double", 0, true, "Double Test"); 125 addField("FloatTest", "float", 9, 3, true, "Float Test"); 126 addField("IntTest", "int", 0, true, "Int Test"); 127 addField("NumericTest", "numeric", 0, true, "Numeric Test"); 128 addField("RealTest", "real", 9, true, "Real Test"); 129 addField("SmallIntTest", "smallint", 0, true, "Smallint Test"); 130 addField("TimeTest", "time", 0, true, "Time Test"); 131 addField("TimeStampTest", "timestamp", 0, true, "Time Stampt Test"); 132 addField("DateTimeTest", "datetime", 0, true, "Date Time Test"); 133 addField("TinyIntTest", "tinyint", 0, true, "Tiny Int Test"); 134 addField("VarCharTest", "varchar", 30, true, "Varchar Test"); 135 addField("TextTest", "text", 0, true, "Text Test"); 136 addField("AutoIncTest", "auto-inc", 0, true, "AutoIncrement Test"); 137 138 addKey("TestKey"); 139 } 140 141 142 } 143 | Popular Tags |