KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_AD_Message


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for AD_Message
9  ** @version $Id: X_AD_Message.java,v 1.27 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_AD_Message extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Message (Properties ctx, int AD_Message_ID)
14 {
15 super (ctx, AD_Message_ID);
16 /** if (AD_Message_ID == 0)
17 {
18 setAD_Message_ID (0);
19 setEntityType (null);
20 setMsgText (null);
21 setMsgType (null);
22 setValue (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_AD_Message (Properties ctx, ResultSet rs)
28 {
29 super (ctx, rs);
30 }
31 /** Load Meta Data **/
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 JavaDoc toString()
39 {
40 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(AD_Message_ID));
46 }
47 public int getAD_Message_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Message_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
54 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
55 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
56 public static final String JavaDoc ENTITYTYPE_Applications = "A";
57 public void setEntityType (String JavaDoc EntityType)
58 {
59 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
60  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
61 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
62 setValue ("EntityType", EntityType);
63 }
64 public String JavaDoc getEntityType()
65 {
66 return (String JavaDoc)getValue("EntityType");
67 }
68 public void setMsgText (String JavaDoc MsgText)
69 {
70 if (MsgText == null) throw new IllegalArgumentException JavaDoc ("MsgText is mandatory");
71 setValue ("MsgText", MsgText);
72 }
73 public String JavaDoc getMsgText()
74 {
75 return (String JavaDoc)getValue("MsgText");
76 }
77 public void setMsgTip (String JavaDoc MsgTip)
78 {
79 setValue ("MsgTip", MsgTip);
80 }
81 public String JavaDoc getMsgTip()
82 {
83 return (String JavaDoc)getValue("MsgTip");
84 }
85 public static final String JavaDoc MSGTYPE_Error = "E";
86 public static final String JavaDoc MSGTYPE_Information = "I";
87 public static final String JavaDoc MSGTYPE_Menu = "M";
88 public void setMsgType (String JavaDoc MsgType)
89 {
90 if (MsgType.equals("E") || MsgType.equals("I") || MsgType.equals("M"));
91  else throw new IllegalArgumentException JavaDoc ("MsgType Invalid value - Reference_ID=103 - E - I - M");
92 if (MsgType == null) throw new IllegalArgumentException JavaDoc ("MsgType is mandatory");
93 setValue ("MsgType", MsgType);
94 }
95 public String JavaDoc getMsgType()
96 {
97 return (String JavaDoc)getValue("MsgType");
98 }
99 public void setValue (String JavaDoc Value)
100 {
101 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
102 setValue ("Value", Value);
103 }
104 public String JavaDoc getValue()
105 {
106 return (String JavaDoc)getValue("Value");
107 }
108 }
109
Popular Tags