KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_Process extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Process (Properties ctx, int AD_Process_ID)
14 {
15 super (ctx, AD_Process_ID);
16 /** if (AD_Process_ID == 0)
17 {
18 setAD_Process_ID (0);
19 setAccessLevel (null);
20 setEntityType (null);
21 setIsReport (false);
22 setIsUserStartable (false);
23 setName (null);
24 setValue (null);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_AD_Process (Properties ctx, ResultSet rs)
30 {
31 super (ctx, rs);
32 }
33 /** Load Meta Data **/
34 protected POInfo initPO (Properties ctx)
35 {
36 int AD_Table_ID = 284;
37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
38 return poi;
39 }
40 public String JavaDoc toString()
41 {
42 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Process[").append(getID()).append("]");
43 return sb.toString();
44 }
45 public void setAD_PrintFormat_ID (int AD_PrintFormat_ID)
46 {
47 if (AD_PrintFormat_ID == 0) setValue ("AD_PrintFormat_ID", null);
48  else
49 setValue ("AD_PrintFormat_ID", new Integer JavaDoc(AD_PrintFormat_ID));
50 }
51 public int getAD_PrintFormat_ID()
52 {
53 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_PrintFormat_ID");
54 if (ii == null) return 0;
55 return ii.intValue();
56 }
57 void setAD_Process_ID (int AD_Process_ID)
58 {
59 setValueNoCheck ("AD_Process_ID", new Integer JavaDoc(AD_Process_ID));
60 }
61 public int getAD_Process_ID()
62 {
63 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Process_ID");
64 if (ii == null) return 0;
65 return ii.intValue();
66 }
67 public void setAD_ReportView_ID (int AD_ReportView_ID)
68 {
69 if (AD_ReportView_ID == 0) setValue ("AD_ReportView_ID", null);
70  else
71 setValue ("AD_ReportView_ID", new Integer JavaDoc(AD_ReportView_ID));
72 }
73 public int getAD_ReportView_ID()
74 {
75 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_ReportView_ID");
76 if (ii == null) return 0;
77 return ii.intValue();
78 }
79 public static final String JavaDoc ACCESSLEVEL_Organization = "1";
80 public static final String JavaDoc ACCESSLEVEL_ClientPlusOrganization = "3";
81 public static final String JavaDoc ACCESSLEVEL_SystemOnly = "4";
82 public static final String JavaDoc ACCESSLEVEL_All = "7";
83 public static final String JavaDoc ACCESSLEVEL_ClientOnly = "2";
84 public static final String JavaDoc ACCESSLEVEL_SystemPlusClient = "6";
85 public void setAccessLevel (String JavaDoc AccessLevel)
86 {
87 if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("2") || AccessLevel.equals("6"));
88  else throw new IllegalArgumentException JavaDoc ("AccessLevel Invalid value - Reference_ID=5 - 1 - 3 - 4 - 7 - 2 - 6");
89 if (AccessLevel == null) throw new IllegalArgumentException JavaDoc ("AccessLevel is mandatory");
90 setValue ("AccessLevel", AccessLevel);
91 }
92 public String JavaDoc getAccessLevel()
93 {
94 return (String JavaDoc)getValue("AccessLevel");
95 }
96 public void setClassname (String JavaDoc Classname)
97 {
98 setValue ("Classname", Classname);
99 }
100 public String JavaDoc getClassname()
101 {
102 return (String JavaDoc)getValue("Classname");
103 }
104 public void setDescription (String JavaDoc Description)
105 {
106 setValue ("Description", Description);
107 }
108 public String JavaDoc getDescription()
109 {
110 return (String JavaDoc)getValue("Description");
111 }
112 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
113 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
114 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
115 public static final String JavaDoc ENTITYTYPE_Applications = "A";
116 public void setEntityType (String JavaDoc EntityType)
117 {
118 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
119  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
120 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
121 setValue ("EntityType", EntityType);
122 }
123 public String JavaDoc getEntityType()
124 {
125 return (String JavaDoc)getValue("EntityType");
126 }
127 public void setHelp (String JavaDoc Help)
128 {
129 setValue ("Help", Help);
130 }
131 public String JavaDoc getHelp()
132 {
133 return (String JavaDoc)getValue("Help");
134 }
135 public void setIsDirectPrint (boolean IsDirectPrint)
136 {
137 setValue ("IsDirectPrint", new Boolean JavaDoc(IsDirectPrint));
138 }
139 public boolean isDirectPrint()
140 {
141 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDirectPrint");
142 if (bb != null) return bb.booleanValue();
143 return false;
144 }
145 public void setIsReport (boolean IsReport)
146 {
147 setValue ("IsReport", new Boolean JavaDoc(IsReport));
148 }
149 public boolean isReport()
150 {
151 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsReport");
152 if (bb != null) return bb.booleanValue();
153 return false;
154 }
155 public void setIsUserStartable (boolean IsUserStartable)
156 {
157 setValue ("IsUserStartable", new Boolean JavaDoc(IsUserStartable));
158 }
159 public boolean isUserStartable()
160 {
161 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsUserStartable");
162 if (bb != null) return bb.booleanValue();
163 return false;
164 }
165 public void setName (String JavaDoc Name)
166 {
167 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
168 setValue ("Name", Name);
169 }
170 public String JavaDoc getName()
171 {
172 return (String JavaDoc)getValue("Name");
173 }
174 public void setProcedureName (String JavaDoc ProcedureName)
175 {
176 setValue ("ProcedureName", ProcedureName);
177 }
178 public String JavaDoc getProcedureName()
179 {
180 return (String JavaDoc)getValue("ProcedureName");
181 }
182 public void setStatistic_Count (int Statistic_Count)
183 {
184 setValue ("Statistic_Count", new Integer JavaDoc(Statistic_Count));
185 }
186 public int getStatistic_Count()
187 {
188 Integer JavaDoc ii = (Integer JavaDoc)getValue("Statistic_Count");
189 if (ii == null) return 0;
190 return ii.intValue();
191 }
192 public void setStatistic_Seconds (int Statistic_Seconds)
193 {
194 setValue ("Statistic_Seconds", new Integer JavaDoc(Statistic_Seconds));
195 }
196 public int getStatistic_Seconds()
197 {
198 Integer JavaDoc ii = (Integer JavaDoc)getValue("Statistic_Seconds");
199 if (ii == null) return 0;
200 return ii.intValue();
201 }
202 public void setValue (String JavaDoc Value)
203 {
204 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
205 setValue ("Value", Value);
206 }
207 public String JavaDoc getValue()
208 {
209 return (String JavaDoc)getValue("Value");
210 }
211 }
212
Popular Tags