1 64 65 package com.jcorporate.expresso.services.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 81 public class DBMessage 82 extends SecuredDBObject { 83 86 public DBMessage() 87 throws DBException { 88 super(); 89 } 90 91 92 96 public DBMessage(int uid) 97 throws DBException { 98 super(uid); 99 } 100 101 108 public DBMessage(ControllerRequest request) 109 throws DBException { 110 super(request); 111 } 112 113 116 public void setupFields() 117 throws DBException { 118 setTargetTable("DBMESSAGE"); 119 setDescription("DBmessageMappings"); 120 setCharset("ISO-8859-1"); 121 addField("MessageNumber", "auto-inc", 0, false, "messageNumber"); 122 addField("InputString", "varchar", 255, false, "messageFromDB"); 123 addField("OutputString", "varchar", 80, false, "messageForUser"); 124 setStringFilter("InputString", "stripFilter"); 125 126 addKey("MessageNumber"); 128 setReadOnly("MessageNumber"); 129 } 130 131 132 } 133 134 | Popular Tags |