KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_R_RequestAction extends PO
11 {
12 /** Standard Constructor **/
13 public X_R_RequestAction (Properties ctx, int R_RequestAction_ID)
14 {
15 super (ctx, R_RequestAction_ID);
16 /** if (R_RequestAction_ID == 0)
17 {
18 setActionType (null);
19 setR_RequestAction_ID (0);
20 setR_Request_ID (0);
21 setSalesRep_ID (0);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_R_RequestAction (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
31 protected POInfo initPO (Properties ctx)
32 {
33 int AD_Table_ID = 418;
34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
35 return poi;
36 }
37 public String JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_R_RequestAction[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setAD_User_ID (int AD_User_ID)
43 {
44 if (AD_User_ID == 0) setValueNoCheck ("AD_User_ID", null);
45  else
46 setValueNoCheck ("AD_User_ID", new Integer JavaDoc(AD_User_ID));
47 }
48 public int getAD_User_ID()
49 {
50 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_User_ID");
51 if (ii == null) return 0;
52 return ii.intValue();
53 }
54 public static final String JavaDoc ACTIONTYPE_Call = "C";
55 public static final String JavaDoc ACTIONTYPE_EMail = "E";
56 public static final String JavaDoc ACTIONTYPE_Close = "X";
57 public static final String JavaDoc ACTIONTYPE_Mail = "M";
58 public static final String JavaDoc ACTIONTYPE_OfferQuote = "Q";
59 public static final String JavaDoc ACTIONTYPE_Invoice = "I";
60 public static final String JavaDoc ACTIONTYPE_Order = "O";
61 public static final String JavaDoc ACTIONTYPE_Credit = "R";
62 public static final String JavaDoc ACTIONTYPE_Reminder = "A";
63 public static final String JavaDoc ACTIONTYPE_Transfer = "T";
64 void setActionType (String JavaDoc ActionType)
65 {
66 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"));
67  else throw new IllegalArgumentException JavaDoc ("ActionType Invalid value - Reference_ID=220 - C - E - X - M - Q - I - O - R - A - T");
68 if (ActionType == null) throw new IllegalArgumentException JavaDoc ("ActionType is mandatory");
69 setValueNoCheck ("ActionType", ActionType);
70 }
71 public String JavaDoc getActionType()
72 {
73 return (String JavaDoc)getValue("ActionType");
74 }
75 void setC_BPartner_ID (int C_BPartner_ID)
76 {
77 if (C_BPartner_ID == 0) setValueNoCheck ("C_BPartner_ID", null);
78  else
79 setValueNoCheck ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
80 }
81 public int getC_BPartner_ID()
82 {
83 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
84 if (ii == null) return 0;
85 return ii.intValue();
86 }
87 void setC_Invoice_ID (int C_Invoice_ID)
88 {
89 if (C_Invoice_ID == 0) setValueNoCheck ("C_Invoice_ID", null);
90  else
91 setValueNoCheck ("C_Invoice_ID", new Integer JavaDoc(C_Invoice_ID));
92 }
93 public int getC_Invoice_ID()
94 {
95 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Invoice_ID");
96 if (ii == null) return 0;
97 return ii.intValue();
98 }
99 void setC_Order_ID (int C_Order_ID)
100 {
101 if (C_Order_ID == 0) setValueNoCheck ("C_Order_ID", null);
102  else
103 setValueNoCheck ("C_Order_ID", new Integer JavaDoc(C_Order_ID));
104 }
105 public int getC_Order_ID()
106 {
107 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Order_ID");
108 if (ii == null) return 0;
109 return ii.intValue();
110 }
111 void setC_Payment_ID (int C_Payment_ID)
112 {
113 if (C_Payment_ID == 0) setValueNoCheck ("C_Payment_ID", null);
114  else
115 setValueNoCheck ("C_Payment_ID", new Integer JavaDoc(C_Payment_ID));
116 }
117 public int getC_Payment_ID()
118 {
119 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Payment_ID");
120 if (ii == null) return 0;
121 return ii.intValue();
122 }
123 void setC_Project_ID (int C_Project_ID)
124 {
125 if (C_Project_ID == 0) setValueNoCheck ("C_Project_ID", null);
126  else
127 setValueNoCheck ("C_Project_ID", new Integer JavaDoc(C_Project_ID));
128 }
129 public int getC_Project_ID()
130 {
131 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Project_ID");
132 if (ii == null) return 0;
133 return ii.intValue();
134 }
135 void setDateNextAction (Timestamp DateNextAction)
136 {
137 setValueNoCheck ("DateNextAction", DateNextAction);
138 }
139 public Timestamp getDateNextAction()
140 {
141 return (Timestamp)getValue("DateNextAction");
142 }
143 void setM_Product_ID (int M_Product_ID)
144 {
145 if (M_Product_ID == 0) setValueNoCheck ("M_Product_ID", null);
146  else
147 setValueNoCheck ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
148 }
149 public int getM_Product_ID()
150 {
151 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
152 if (ii == null) return 0;
153 return ii.intValue();
154 }
155 void setMailText (String JavaDoc MailText)
156 {
157 setValueNoCheck ("MailText", MailText);
158 }
159 public String JavaDoc getMailText()
160 {
161 return (String JavaDoc)getValue("MailText");
162 }
163 void setR_MailText_ID (int R_MailText_ID)
164 {
165 if (R_MailText_ID == 0) setValueNoCheck ("R_MailText_ID", null);
166  else
167 setValueNoCheck ("R_MailText_ID", new Integer JavaDoc(R_MailText_ID));
168 }
169 public int getR_MailText_ID()
170 {
171 Integer JavaDoc ii = (Integer JavaDoc)getValue("R_MailText_ID");
172 if (ii == null) return 0;
173 return ii.intValue();
174 }
175 void setR_RequestAction_ID (int R_RequestAction_ID)
176 {
177 setValueNoCheck ("R_RequestAction_ID", new Integer JavaDoc(R_RequestAction_ID));
178 }
179 public int getR_RequestAction_ID()
180 {
181 Integer JavaDoc ii = (Integer JavaDoc)getValue("R_RequestAction_ID");
182 if (ii == null) return 0;
183 return ii.intValue();
184 }
185 void setR_Request_ID (int R_Request_ID)
186 {
187 setValueNoCheck ("R_Request_ID", new Integer JavaDoc(R_Request_ID));
188 }
189 public int getR_Request_ID()
190 {
191 Integer JavaDoc ii = (Integer JavaDoc)getValue("R_Request_ID");
192 if (ii == null) return 0;
193 return ii.intValue();
194 }
195 void setResult (String JavaDoc Result)
196 {
197 setValueNoCheck ("Result", Result);
198 }
199 public String JavaDoc getResult()
200 {
201 return (String JavaDoc)getValue("Result");
202 }
203 void setSalesRep_ID (int SalesRep_ID)
204 {
205 setValueNoCheck ("SalesRep_ID", new Integer JavaDoc(SalesRep_ID));
206 }
207 public int getSalesRep_ID()
208 {
209 Integer JavaDoc ii = (Integer JavaDoc)getValue("SalesRep_ID");
210 if (ii == null) return 0;
211 return ii.intValue();
212 }
213 }
214
Popular Tags