KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_R_Request extends PO
11 {
12 /** Standard Constructor **/
13 public X_R_Request (Properties ctx, int R_Request_ID)
14 {
15 super (ctx, R_Request_ID);
16 /** if (R_Request_ID == 0)
17 {
18 setDocumentNo (null);
19 setDueType (null);
20 setIsEscalated (false);
21 setIsSelfService (false);
22 setPriority (null);
23 setProcessed (false);
24 setR_RequestType_ID (0);
25 setR_Request_ID (0);
26 setRequestAmt (Env.ZERO);
27 setSalesRep_ID (0);
28 setSummary (null);
29 }
30  **/

31 }
32 /** Load Constructor **/
33 public X_R_Request (Properties ctx, ResultSet rs)
34 {
35 super (ctx, rs);
36 }
37 /** Load Meta Data **/
38 protected POInfo initPO (Properties ctx)
39 {
40 int AD_Table_ID = 417;
41 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
42 return poi;
43 }
44 public String JavaDoc toString()
45 {
46 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_R_Request[").append(getID()).append("]");
47 return sb.toString();
48 }
49 public void setAD_User_ID (int AD_User_ID)
50 {
51 if (AD_User_ID == 0) setValue ("AD_User_ID", null);
52  else
53 setValue ("AD_User_ID", new Integer JavaDoc(AD_User_ID));
54 }
55 public int getAD_User_ID()
56 {
57 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_User_ID");
58 if (ii == null) return 0;
59 return ii.intValue();
60 }
61 public static final String JavaDoc ACTIONTYPE_Call = "C";
62 public static final String JavaDoc ACTIONTYPE_EMail = "E";
63 public static final String JavaDoc ACTIONTYPE_Close = "X";
64 public static final String JavaDoc ACTIONTYPE_Mail = "M";
65 public static final String JavaDoc ACTIONTYPE_OfferQuote = "Q";
66 public static final String JavaDoc ACTIONTYPE_Invoice = "I";
67 public static final String JavaDoc ACTIONTYPE_Order = "O";
68 public static final String JavaDoc ACTIONTYPE_Credit = "R";
69 public static final String JavaDoc ACTIONTYPE_Reminder = "A";
70 public static final String JavaDoc ACTIONTYPE_Transfer = "T";
71 public void setActionType (String JavaDoc ActionType)
72 {
73 if (ActionType.equals("C") || ActionType.equals("E") || ActionType.equals("X") || ActionType.equals("M") || ActionType.equals("Q") || ActionType.equals("I") || ActionType.equals("O") || ActionType.equals("R") || ActionType.equals("A") || ActionType.equals("T"));
74  else throw new IllegalArgumentException JavaDoc ("ActionType Invalid value - Reference_ID=220 - C - E - X - M - Q - I - O - R - A - T");
75 setValue ("ActionType", ActionType);
76 }
77 public String JavaDoc getActionType()
78 {
79 return (String JavaDoc)getValue("ActionType");
80 }
81 public void setC_BPartner_ID (int C_BPartner_ID)
82 {
83 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null);
84  else
85 setValue ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
86 }
87 public int getC_BPartner_ID()
88 {
89 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
90 if (ii == null) return 0;
91 return ii.intValue();
92 }
93 public void setC_Campaign_ID (int C_Campaign_ID)
94 {
95 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null);
96  else
97 setValue ("C_Campaign_ID", new Integer JavaDoc(C_Campaign_ID));
98 }
99 public int getC_Campaign_ID()
100 {
101 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Campaign_ID");
102 if (ii == null) return 0;
103 return ii.intValue();
104 }
105 public void setC_Invoice_ID (int C_Invoice_ID)
106 {
107 if (C_Invoice_ID == 0) setValue ("C_Invoice_ID", null);
108  else
109 setValue ("C_Invoice_ID", new Integer JavaDoc(C_Invoice_ID));
110 }
111 public int getC_Invoice_ID()
112 {
113 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Invoice_ID");
114 if (ii == null) return 0;
115 return ii.intValue();
116 }
117 public void setC_Order_ID (int C_Order_ID)
118 {
119 if (C_Order_ID == 0) setValue ("C_Order_ID", null);
120  else
121 setValue ("C_Order_ID", new Integer JavaDoc(C_Order_ID));
122 }
123 public int getC_Order_ID()
124 {
125 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Order_ID");
126 if (ii == null) return 0;
127 return ii.intValue();
128 }
129 public void setC_Payment_ID (int C_Payment_ID)
130 {
131 if (C_Payment_ID == 0) setValue ("C_Payment_ID", null);
132  else
133 setValue ("C_Payment_ID", new Integer JavaDoc(C_Payment_ID));
134 }
135 public int getC_Payment_ID()
136 {
137 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Payment_ID");
138 if (ii == null) return 0;
139 return ii.intValue();
140 }
141 public void setC_Project_ID (int C_Project_ID)
142 {
143 if (C_Project_ID == 0) setValue ("C_Project_ID", null);
144  else
145 setValue ("C_Project_ID", new Integer JavaDoc(C_Project_ID));
146 }
147 public int getC_Project_ID()
148 {
149 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Project_ID");
150 if (ii == null) return 0;
151 return ii.intValue();
152 }
153 void setDateLastAction (Timestamp DateLastAction)
154 {
155 setValueNoCheck ("DateLastAction", DateLastAction);
156 }
157 public Timestamp getDateLastAction()
158 {
159 return (Timestamp)getValue("DateLastAction");
160 }
161 public void setDateNextAction (Timestamp DateNextAction)
162 {
163 setValue ("DateNextAction", DateNextAction);
164 }
165 public Timestamp getDateNextAction()
166 {
167 return (Timestamp)getValue("DateNextAction");
168 }
169 public void setDocumentNo (String JavaDoc DocumentNo)
170 {
171 if (DocumentNo == null) throw new IllegalArgumentException JavaDoc ("DocumentNo is mandatory");
172 setValue ("DocumentNo", DocumentNo);
173 }
174 public String JavaDoc getDocumentNo()
175 {
176 return (String JavaDoc)getValue("DocumentNo");
177 }
178 public static final String JavaDoc DUETYPE_Overdue = "3";
179 public static final String JavaDoc DUETYPE_Due = "5";
180 public static final String JavaDoc DUETYPE_Scheduled = "7";
181 public void setDueType (String JavaDoc DueType)
182 {
183 if (DueType.equals("3") || DueType.equals("5") || DueType.equals("7"));
184  else throw new IllegalArgumentException JavaDoc ("DueType Invalid value - Reference_ID=222 - 3 - 5 - 7");
185 if (DueType == null) throw new IllegalArgumentException JavaDoc ("DueType is mandatory");
186 setValue ("DueType", DueType);
187 }
188 public String JavaDoc getDueType()
189 {
190 return (String JavaDoc)getValue("DueType");
191 }
192 public void setIsEscalated (boolean IsEscalated)
193 {
194 setValue ("IsEscalated", new Boolean JavaDoc(IsEscalated));
195 }
196 public boolean isEscalated()
197 {
198 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsEscalated");
199 if (bb != null) return bb.booleanValue();
200 return false;
201 }
202 void setIsSelfService (boolean IsSelfService)
203 {
204 setValueNoCheck ("IsSelfService", new Boolean JavaDoc(IsSelfService));
205 }
206 public boolean isSelfService()
207 {
208 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSelfService");
209 if (bb != null) return bb.booleanValue();
210 return false;
211 }
212 public void setLastResult (String JavaDoc LastResult)
213 {
214 setValue ("LastResult", LastResult);
215 }
216 public String JavaDoc getLastResult()
217 {
218 return (String JavaDoc)getValue("LastResult");
219 }
220 public void setM_Product_ID (int M_Product_ID)
221 {
222 if (M_Product_ID == 0) setValue ("M_Product_ID", null);
223  else
224 setValue ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
225 }
226 public int getM_Product_ID()
227 {
228 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
229 if (ii == null) return 0;
230 return ii.intValue();
231 }
232 public void setMailSubject (String JavaDoc MailSubject)
233 {
234 setValue ("MailSubject", MailSubject);
235 }
236 public String JavaDoc getMailSubject()
237 {
238 return (String JavaDoc)getValue("MailSubject");
239 }
240 public void setMailText (String JavaDoc MailText)
241 {
242 setValue ("MailText", MailText);
243 }
244 public String JavaDoc getMailText()
245 {
246 return (String JavaDoc)getValue("MailText");
247 }
248 public static final String JavaDoc NEXTACTION_None = "N";
249 public static final String JavaDoc NEXTACTION_FollowUp = "F";
250 public void setNextAction (String JavaDoc NextAction)
251 {
252 if (NextAction.equals("N") || NextAction.equals("F"));
253  else throw new IllegalArgumentException JavaDoc ("NextAction Invalid value - Reference_ID=219 - N - F");
254 setValue ("NextAction", NextAction);
255 }
256 public String JavaDoc getNextAction()
257 {
258 return (String JavaDoc)getValue("NextAction");
259 }
260 public static final String JavaDoc PRIORITY_High = "3";
261 public static final String JavaDoc PRIORITY_Medium = "5";
262 public static final String JavaDoc PRIORITY_Low = "7";
263 public void setPriority (String JavaDoc Priority)
264 {
265 if (Priority.equals("3") || Priority.equals("5") || Priority.equals("7"));
266  else throw new IllegalArgumentException JavaDoc ("Priority Invalid value - Reference_ID=154 - 3 - 5 - 7");
267 if (Priority == null) throw new IllegalArgumentException JavaDoc ("Priority is mandatory");
268 setValue ("Priority", Priority);
269 }
270 public String JavaDoc getPriority()
271 {
272 return (String JavaDoc)getValue("Priority");
273 }
274 public void setProcessed (boolean Processed)
275 {
276 setValue ("Processed", new Boolean JavaDoc(Processed));
277 }
278 public boolean isProcessed()
279 {
280 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("Processed");
281 if (bb != null) return bb.booleanValue();
282 return false;
283 }
284 public void setProcessing (String JavaDoc Processing)
285 {
286 setValue ("Processing", Processing);
287 }
288 public String JavaDoc getProcessing()
289 {
290 return (String JavaDoc)getValue("Processing");
291 }
292 public void setR_MailText_ID (int R_MailText_ID)
293 {
294 if (R_MailText_ID == 0) setValue ("R_MailText_ID", null);
295  else
296 setValue ("R_MailText_ID", new Integer JavaDoc(R_MailText_ID));
297 }
298 public int getR_MailText_ID()
299 {
300 Integer JavaDoc ii = (Integer JavaDoc)getValue("R_MailText_ID");
301 if (ii == null) return 0;
302 return ii.intValue();
303 }
304 public void setR_RequestType_ID (int R_RequestType_ID)
305 {
306 setValue ("R_RequestType_ID", new Integer JavaDoc(R_RequestType_ID));
307 }
308 public int getR_RequestType_ID()
309 {
310 Integer JavaDoc ii = (Integer JavaDoc)getValue("R_RequestType_ID");
311 if (ii == null) return 0;
312 return ii.intValue();
313 }
314 void setR_Request_ID (int R_Request_ID)
315 {
316 setValueNoCheck ("R_Request_ID", new Integer JavaDoc(R_Request_ID));
317 }
318 public int getR_Request_ID()
319 {
320 Integer JavaDoc ii = (Integer JavaDoc)getValue("R_Request_ID");
321 if (ii == null) return 0;
322 return ii.intValue();
323 }
324 public void setRequestAmt (BigDecimal RequestAmt)
325 {
326 if (RequestAmt == null) throw new IllegalArgumentException JavaDoc ("RequestAmt is mandatory");
327 setValue ("RequestAmt", RequestAmt);
328 }
329 public BigDecimal getRequestAmt()
330 {
331 BigDecimal bd = (BigDecimal)getValue("RequestAmt");
332 if (bd == null) return Env.ZERO;
333 return bd;
334 }
335 public void setResult (String JavaDoc Result)
336 {
337 setValue ("Result", Result);
338 }
339 public String JavaDoc getResult()
340 {
341 return (String JavaDoc)getValue("Result");
342 }
343 public void setSalesRep_ID (int SalesRep_ID)
344 {
345 setValue ("SalesRep_ID", new Integer JavaDoc(SalesRep_ID));
346 }
347 public int getSalesRep_ID()
348 {
349 Integer JavaDoc ii = (Integer JavaDoc)getValue("SalesRep_ID");
350 if (ii == null) return 0;
351 return ii.intValue();
352 }
353 public void setSummary (String JavaDoc Summary)
354 {
355 if (Summary == null) throw new IllegalArgumentException JavaDoc ("Summary is mandatory");
356 setValue ("Summary", Summary);
357 }
358 public String JavaDoc getSummary()
359 {
360 return (String JavaDoc)getValue("Summary");
361 }
362 }
363
Popular Tags