KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_InvoiceLine extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_InvoiceLine (Properties ctx, int C_InvoiceLine_ID)
14 {
15 super (ctx, C_InvoiceLine_ID);
16 /** if (C_InvoiceLine_ID == 0)
17 {
18 setC_InvoiceLine_ID (0);
19 setC_Invoice_ID (0);
20 setC_Tax_ID (0);
21 setC_UOM_ID (0);
22 setChargeAmt (Env.ZERO);
23 setIsDescription (false);
24 setIsPrinted (false);
25 setLine (0);
26 setLineNetAmt (Env.ZERO);
27 setPriceActual (Env.ZERO);
28 setPriceLimit (Env.ZERO);
29 setPriceList (Env.ZERO);
30 setQtyInvoiced (Env.ZERO);
31 }
32  **/

33 }
34 /** Load Constructor **/
35 public X_C_InvoiceLine (Properties ctx, ResultSet rs)
36 {
37 super (ctx, rs);
38 }
39 /** Load Meta Data **/
40 protected POInfo initPO (Properties ctx)
41 {
42 int AD_Table_ID = 333;
43 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
44 return poi;
45 }
46 public String JavaDoc toString()
47 {
48 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_InvoiceLine[").append(getID()).append("]");
49 return sb.toString();
50 }
51 public void setA_Asset_ID (int A_Asset_ID)
52 {
53 if (A_Asset_ID == 0) setValue ("A_Asset_ID", null);
54  else
55 setValue ("A_Asset_ID", new Integer JavaDoc(A_Asset_ID));
56 }
57 public int getA_Asset_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("A_Asset_ID");
60 if (ii == null) return 0;
61 return ii.intValue();
62 }
63 public void setC_Charge_ID (int C_Charge_ID)
64 {
65 if (C_Charge_ID == 0) setValue ("C_Charge_ID", null);
66  else
67 setValue ("C_Charge_ID", new Integer JavaDoc(C_Charge_ID));
68 }
69 public int getC_Charge_ID()
70 {
71 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Charge_ID");
72 if (ii == null) return 0;
73 return ii.intValue();
74 }
75 void setC_InvoiceLine_ID (int C_InvoiceLine_ID)
76 {
77 setValueNoCheck ("C_InvoiceLine_ID", new Integer JavaDoc(C_InvoiceLine_ID));
78 }
79 public int getC_InvoiceLine_ID()
80 {
81 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_InvoiceLine_ID");
82 if (ii == null) return 0;
83 return ii.intValue();
84 }
85 void setC_Invoice_ID (int C_Invoice_ID)
86 {
87 setValueNoCheck ("C_Invoice_ID", new Integer JavaDoc(C_Invoice_ID));
88 }
89 public int getC_Invoice_ID()
90 {
91 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Invoice_ID");
92 if (ii == null) return 0;
93 return ii.intValue();
94 }
95 void setC_OrderLine_ID (int C_OrderLine_ID)
96 {
97 if (C_OrderLine_ID == 0) setValueNoCheck ("C_OrderLine_ID", null);
98  else
99 setValueNoCheck ("C_OrderLine_ID", new Integer JavaDoc(C_OrderLine_ID));
100 }
101 public int getC_OrderLine_ID()
102 {
103 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_OrderLine_ID");
104 if (ii == null) return 0;
105 return ii.intValue();
106 }
107 public void setC_Tax_ID (int C_Tax_ID)
108 {
109 setValue ("C_Tax_ID", new Integer JavaDoc(C_Tax_ID));
110 }
111 public int getC_Tax_ID()
112 {
113 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Tax_ID");
114 if (ii == null) return 0;
115 return ii.intValue();
116 }
117 public void setC_UOM_ID (int C_UOM_ID)
118 {
119 setValue ("C_UOM_ID", new Integer JavaDoc(C_UOM_ID));
120 }
121 public int getC_UOM_ID()
122 {
123 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_UOM_ID");
124 if (ii == null) return 0;
125 return ii.intValue();
126 }
127 public void setChargeAmt (BigDecimal ChargeAmt)
128 {
129 if (ChargeAmt == null) throw new IllegalArgumentException JavaDoc ("ChargeAmt is mandatory");
130 setValue ("ChargeAmt", ChargeAmt);
131 }
132 public BigDecimal getChargeAmt()
133 {
134 BigDecimal bd = (BigDecimal)getValue("ChargeAmt");
135 if (bd == null) return Env.ZERO;
136 return bd;
137 }
138 public void setDescription (String JavaDoc Description)
139 {
140 setValue ("Description", Description);
141 }
142 public String JavaDoc getDescription()
143 {
144 return (String JavaDoc)getValue("Description");
145 }
146 public void setIsDescription (boolean IsDescription)
147 {
148 setValue ("IsDescription", new Boolean JavaDoc(IsDescription));
149 }
150 public boolean isDescription()
151 {
152 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDescription");
153 if (bb != null) return bb.booleanValue();
154 return false;
155 }
156 public void setIsPrinted (boolean IsPrinted)
157 {
158 setValue ("IsPrinted", new Boolean JavaDoc(IsPrinted));
159 }
160 public boolean isPrinted()
161 {
162 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPrinted");
163 if (bb != null) return bb.booleanValue();
164 return false;
165 }
166 public void setLine (int Line)
167 {
168 setValue ("Line", new Integer JavaDoc(Line));
169 }
170 public int getLine()
171 {
172 Integer JavaDoc ii = (Integer JavaDoc)getValue("Line");
173 if (ii == null) return 0;
174 return ii.intValue();
175 }
176 void setLineNetAmt (BigDecimal LineNetAmt)
177 {
178 if (LineNetAmt == null) throw new IllegalArgumentException JavaDoc ("LineNetAmt is mandatory");
179 setValueNoCheck ("LineNetAmt", LineNetAmt);
180 }
181 public BigDecimal getLineNetAmt()
182 {
183 BigDecimal bd = (BigDecimal)getValue("LineNetAmt");
184 if (bd == null) return Env.ZERO;
185 return bd;
186 }
187 public void setLineTotalAmt (BigDecimal LineTotalAmt)
188 {
189 setValue ("LineTotalAmt", LineTotalAmt);
190 }
191 public BigDecimal getLineTotalAmt()
192 {
193 BigDecimal bd = (BigDecimal)getValue("LineTotalAmt");
194 if (bd == null) return Env.ZERO;
195 return bd;
196 }
197 public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
198 {
199 if (M_AttributeSetInstance_ID == 0) setValue ("M_AttributeSetInstance_ID", null);
200  else
201 setValue ("M_AttributeSetInstance_ID", new Integer JavaDoc(M_AttributeSetInstance_ID));
202 }
203 public int getM_AttributeSetInstance_ID()
204 {
205 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_AttributeSetInstance_ID");
206 if (ii == null) return 0;
207 return ii.intValue();
208 }
209 void setM_InOutLine_ID (int M_InOutLine_ID)
210 {
211 if (M_InOutLine_ID == 0) setValueNoCheck ("M_InOutLine_ID", null);
212  else
213 setValueNoCheck ("M_InOutLine_ID", new Integer JavaDoc(M_InOutLine_ID));
214 }
215 public int getM_InOutLine_ID()
216 {
217 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_InOutLine_ID");
218 if (ii == null) return 0;
219 return ii.intValue();
220 }
221 public void setM_Product_ID (int M_Product_ID)
222 {
223 if (M_Product_ID == 0) setValue ("M_Product_ID", null);
224  else
225 setValue ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
226 }
227 public int getM_Product_ID()
228 {
229 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
230 if (ii == null) return 0;
231 return ii.intValue();
232 }
233 public void setPriceActual (BigDecimal PriceActual)
234 {
235 if (PriceActual == null) throw new IllegalArgumentException JavaDoc ("PriceActual is mandatory");
236 setValue ("PriceActual", PriceActual);
237 }
238 public BigDecimal getPriceActual()
239 {
240 BigDecimal bd = (BigDecimal)getValue("PriceActual");
241 if (bd == null) return Env.ZERO;
242 return bd;
243 }
244 public void setPriceLimit (BigDecimal PriceLimit)
245 {
246 if (PriceLimit == null) throw new IllegalArgumentException JavaDoc ("PriceLimit is mandatory");
247 setValue ("PriceLimit", PriceLimit);
248 }
249 public BigDecimal getPriceLimit()
250 {
251 BigDecimal bd = (BigDecimal)getValue("PriceLimit");
252 if (bd == null) return Env.ZERO;
253 return bd;
254 }
255 public void setPriceList (BigDecimal PriceList)
256 {
257 if (PriceList == null) throw new IllegalArgumentException JavaDoc ("PriceList is mandatory");
258 setValue ("PriceList", PriceList);
259 }
260 public BigDecimal getPriceList()
261 {
262 BigDecimal bd = (BigDecimal)getValue("PriceList");
263 if (bd == null) return Env.ZERO;
264 return bd;
265 }
266 public void setQtyInvoiced (BigDecimal QtyInvoiced)
267 {
268 if (QtyInvoiced == null) throw new IllegalArgumentException JavaDoc ("QtyInvoiced is mandatory");
269 setValue ("QtyInvoiced", QtyInvoiced);
270 }
271 public BigDecimal getQtyInvoiced()
272 {
273 BigDecimal bd = (BigDecimal)getValue("QtyInvoiced");
274 if (bd == null) return Env.ZERO;
275 return bd;
276 }
277 void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID)
278 {
279 if (S_ResourceAssignment_ID == 0) setValueNoCheck ("S_ResourceAssignment_ID", null);
280  else
281 setValueNoCheck ("S_ResourceAssignment_ID", new Integer JavaDoc(S_ResourceAssignment_ID));
282 }
283 public int getS_ResourceAssignment_ID()
284 {
285 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_ResourceAssignment_ID");
286 if (ii == null) return 0;
287 return ii.intValue();
288 }
289 public void setTaxAmt (BigDecimal TaxAmt)
290 {
291 setValue ("TaxAmt", TaxAmt);
292 }
293 public BigDecimal getTaxAmt()
294 {
295 BigDecimal bd = (BigDecimal)getValue("TaxAmt");
296 if (bd == null) return Env.ZERO;
297 return bd;
298 }
299 }
300
Popular Tags