1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_AD_Message extends PO 11 { 12 13 public X_AD_Message (Properties ctx, int AD_Message_ID) 14 { 15 super (ctx, AD_Message_ID); 16 25 } 26 27 public X_AD_Message (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 109; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_AD_Message[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setAD_Message_ID (int AD_Message_ID) 44 { 45 setValueNoCheck ("AD_Message_ID", new Integer (AD_Message_ID)); 46 } 47 public int getAD_Message_ID() 48 { 49 Integer ii = (Integer )getValue("AD_Message_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public static final String ENTITYTYPE_Dictionary = "D"; 54 public static final String ENTITYTYPE_Compiere = "C"; 55 public static final String ENTITYTYPE_UserMaintained = "U"; 56 public static final String ENTITYTYPE_Applications = "A"; 57 public void setEntityType (String EntityType) 58 { 59 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A")); 60 else throw new IllegalArgumentException ("EntityType Invalid value - Reference_ID=245 - D - C - U - A"); 61 if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory"); 62 setValue ("EntityType", EntityType); 63 } 64 public String getEntityType() 65 { 66 return (String )getValue("EntityType"); 67 } 68 public void setMsgText (String MsgText) 69 { 70 if (MsgText == null) throw new IllegalArgumentException ("MsgText is mandatory"); 71 setValue ("MsgText", MsgText); 72 } 73 public String getMsgText() 74 { 75 return (String )getValue("MsgText"); 76 } 77 public void setMsgTip (String MsgTip) 78 { 79 setValue ("MsgTip", MsgTip); 80 } 81 public String getMsgTip() 82 { 83 return (String )getValue("MsgTip"); 84 } 85 public static final String MSGTYPE_Error = "E"; 86 public static final String MSGTYPE_Information = "I"; 87 public static final String MSGTYPE_Menu = "M"; 88 public void setMsgType (String MsgType) 89 { 90 if (MsgType.equals("E") || MsgType.equals("I") || MsgType.equals("M")); 91 else throw new IllegalArgumentException ("MsgType Invalid value - Reference_ID=103 - E - I - M"); 92 if (MsgType == null) throw new IllegalArgumentException ("MsgType is mandatory"); 93 setValue ("MsgType", MsgType); 94 } 95 public String getMsgType() 96 { 97 return (String )getValue("MsgType"); 98 } 99 public void setValue (String Value) 100 { 101 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 102 setValue ("Value", Value); 103 } 104 public String getValue() 105 { 106 return (String )getValue("Value"); 107 } 108 } 109 | Popular Tags |