1 64 65 package com.jcorporate.expresso.services.dbobj.tests; 66 67 import com.jcorporate.expresso.core.db.DBConnection; 68 import com.jcorporate.expresso.core.db.DBException; 69 70 71 77 public class MediaTest 78 extends com.jcorporate.expresso.services.dbobj.MediaDBObject { 79 82 public MediaTest() 83 throws DBException { 84 super(); 85 } 86 87 88 95 public MediaTest(DBConnection oneConnection) throws DBException { 96 super(oneConnection); 97 } 98 99 100 103 public void setupFields() 104 throws DBException { 105 setTargetTable("TESTMEDIA"); 106 setDescription("Blob Storage Test"); 107 setCharset("ISO-8859-1"); 108 addField("TestKey", "auto-inc", 0, false, "Test Table Key"); 109 this.addBlobField("Data", "Sample Media Field"); 110 addKey("TestKey"); 111 } 112 113 114 } 115 116 | Popular Tags |