KickJava   Java API By Example, From Geeks To Geeks.

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


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_Alert
9  ** @version $Id: X_AD_Alert.java,v 1.27 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_AD_Alert extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Alert (Properties ctx, int AD_Alert_ID)
14 {
15 super (ctx, AD_Alert_ID);
16 /** if (AD_Alert_ID == 0)
17 {
18 setAD_Alert_ID (0);
19 setAlertMessage (null);
20 setAlertSubject (null);
21 setEnforceClientSecurity (false);
22 setEnforceRoleSecurity (false);
23 setName (null);
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_AD_Alert (Properties ctx, ResultSet rs)
29 {
30 super (ctx, rs);
31 }
32 /** Load Meta Data **/
33 protected POInfo initPO (Properties ctx)
34 {
35 int AD_Table_ID = 594;
36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
37 return poi;
38 }
39 public String JavaDoc toString()
40 {
41 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Alert[").append(getID()).append("]");
42 return sb.toString();
43 }
44 void setAD_Alert_ID (int AD_Alert_ID)
45 {
46 setValueNoCheck ("AD_Alert_ID", new Integer JavaDoc(AD_Alert_ID));
47 }
48 public int getAD_Alert_ID()
49 {
50 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Alert_ID");
51 if (ii == null) return 0;
52 return ii.intValue();
53 }
54 public void setAlertMessage (String JavaDoc AlertMessage)
55 {
56 if (AlertMessage == null) throw new IllegalArgumentException JavaDoc ("AlertMessage is mandatory");
57 setValue ("AlertMessage", AlertMessage);
58 }
59 public String JavaDoc getAlertMessage()
60 {
61 return (String JavaDoc)getValue("AlertMessage");
62 }
63 public void setAlertSubject (String JavaDoc AlertSubject)
64 {
65 if (AlertSubject == null) throw new IllegalArgumentException JavaDoc ("AlertSubject is mandatory");
66 setValue ("AlertSubject", AlertSubject);
67 }
68 public String JavaDoc getAlertSubject()
69 {
70 return (String JavaDoc)getValue("AlertSubject");
71 }
72 public void setDescription (String JavaDoc Description)
73 {
74 setValue ("Description", Description);
75 }
76 public String JavaDoc getDescription()
77 {
78 return (String JavaDoc)getValue("Description");
79 }
80 public void setEnforceClientSecurity (boolean EnforceClientSecurity)
81 {
82 setValue ("EnforceClientSecurity", new Boolean JavaDoc(EnforceClientSecurity));
83 }
84 public boolean isEnforceClientSecurity()
85 {
86 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("EnforceClientSecurity");
87 if (bb != null) return bb.booleanValue();
88 return false;
89 }
90 public void setEnforceRoleSecurity (boolean EnforceRoleSecurity)
91 {
92 setValue ("EnforceRoleSecurity", new Boolean JavaDoc(EnforceRoleSecurity));
93 }
94 public boolean isEnforceRoleSecurity()
95 {
96 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("EnforceRoleSecurity");
97 if (bb != null) return bb.booleanValue();
98 return false;
99 }
100 public void setHelp (String JavaDoc Help)
101 {
102 setValue ("Help", Help);
103 }
104 public String JavaDoc getHelp()
105 {
106 return (String JavaDoc)getValue("Help");
107 }
108 public void setName (String JavaDoc Name)
109 {
110 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
111 setValue ("Name", Name);
112 }
113 public String JavaDoc getName()
114 {
115 return (String JavaDoc)getValue("Name");
116 }
117 }
118
Popular Tags