KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_M_Product_Costing extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_Product_Costing (Properties ctx, int M_Product_Costing_ID)
14 {
15 super (ctx, M_Product_Costing_ID);
16 /** if (M_Product_Costing_ID == 0)
17 {
18 setC_AcctSchema_ID (0);
19 setCostAverage (Env.ZERO);
20 setCostAverageCumAmt (Env.ZERO);
21 setCostAverageCumQty (Env.ZERO);
22 setCostStandard (Env.ZERO);
23 setCostStandardCumAmt (Env.ZERO);
24 setCostStandardCumQty (Env.ZERO);
25 setCostStandardPOAmt (Env.ZERO);
26 setCostStandardPOQty (Env.ZERO);
27 setCurrentCostPrice (Env.ZERO);
28 setFutureCostPrice (Env.ZERO);
29 setM_Product_ID (0);
30 setPriceLastInv (Env.ZERO);
31 setPriceLastPO (Env.ZERO);
32 setTotalInvAmt (Env.ZERO);
33 setTotalInvQty (Env.ZERO);
34 }
35  **/

36 }
37 /** Load Constructor **/
38 public X_M_Product_Costing (Properties ctx, ResultSet rs)
39 {
40 super (ctx, rs);
41 }
42 /** Load Meta Data **/
43 protected POInfo initPO (Properties ctx)
44 {
45 int AD_Table_ID = 327;
46 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
47 return poi;
48 }
49 public String JavaDoc toString()
50 {
51 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_M_Product_Costing[").append(getID()).append("]");
52 return sb.toString();
53 }
54 void setC_AcctSchema_ID (int C_AcctSchema_ID)
55 {
56 setValueNoCheck ("C_AcctSchema_ID", new Integer JavaDoc(C_AcctSchema_ID));
57 }
58 public int getC_AcctSchema_ID()
59 {
60 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_AcctSchema_ID");
61 if (ii == null) return 0;
62 return ii.intValue();
63 }
64 void setCostAverage (BigDecimal CostAverage)
65 {
66 if (CostAverage == null) throw new IllegalArgumentException JavaDoc ("CostAverage is mandatory");
67 setValueNoCheck ("CostAverage", CostAverage);
68 }
69 public BigDecimal getCostAverage()
70 {
71 BigDecimal bd = (BigDecimal)getValue("CostAverage");
72 if (bd == null) return Env.ZERO;
73 return bd;
74 }
75 void setCostAverageCumAmt (BigDecimal CostAverageCumAmt)
76 {
77 if (CostAverageCumAmt == null) throw new IllegalArgumentException JavaDoc ("CostAverageCumAmt is mandatory");
78 setValueNoCheck ("CostAverageCumAmt", CostAverageCumAmt);
79 }
80 public BigDecimal getCostAverageCumAmt()
81 {
82 BigDecimal bd = (BigDecimal)getValue("CostAverageCumAmt");
83 if (bd == null) return Env.ZERO;
84 return bd;
85 }
86 void setCostAverageCumQty (BigDecimal CostAverageCumQty)
87 {
88 if (CostAverageCumQty == null) throw new IllegalArgumentException JavaDoc ("CostAverageCumQty is mandatory");
89 setValueNoCheck ("CostAverageCumQty", CostAverageCumQty);
90 }
91 public BigDecimal getCostAverageCumQty()
92 {
93 BigDecimal bd = (BigDecimal)getValue("CostAverageCumQty");
94 if (bd == null) return Env.ZERO;
95 return bd;
96 }
97 void setCostStandard (BigDecimal CostStandard)
98 {
99 if (CostStandard == null) throw new IllegalArgumentException JavaDoc ("CostStandard is mandatory");
100 setValueNoCheck ("CostStandard", CostStandard);
101 }
102 public BigDecimal getCostStandard()
103 {
104 BigDecimal bd = (BigDecimal)getValue("CostStandard");
105 if (bd == null) return Env.ZERO;
106 return bd;
107 }
108 void setCostStandardCumAmt (BigDecimal CostStandardCumAmt)
109 {
110 if (CostStandardCumAmt == null) throw new IllegalArgumentException JavaDoc ("CostStandardCumAmt is mandatory");
111 setValueNoCheck ("CostStandardCumAmt", CostStandardCumAmt);
112 }
113 public BigDecimal getCostStandardCumAmt()
114 {
115 BigDecimal bd = (BigDecimal)getValue("CostStandardCumAmt");
116 if (bd == null) return Env.ZERO;
117 return bd;
118 }
119 void setCostStandardCumQty (BigDecimal CostStandardCumQty)
120 {
121 if (CostStandardCumQty == null) throw new IllegalArgumentException JavaDoc ("CostStandardCumQty is mandatory");
122 setValueNoCheck ("CostStandardCumQty", CostStandardCumQty);
123 }
124 public BigDecimal getCostStandardCumQty()
125 {
126 BigDecimal bd = (BigDecimal)getValue("CostStandardCumQty");
127 if (bd == null) return Env.ZERO;
128 return bd;
129 }
130 void setCostStandardPOAmt (BigDecimal CostStandardPOAmt)
131 {
132 if (CostStandardPOAmt == null) throw new IllegalArgumentException JavaDoc ("CostStandardPOAmt is mandatory");
133 setValueNoCheck ("CostStandardPOAmt", CostStandardPOAmt);
134 }
135 public BigDecimal getCostStandardPOAmt()
136 {
137 BigDecimal bd = (BigDecimal)getValue("CostStandardPOAmt");
138 if (bd == null) return Env.ZERO;
139 return bd;
140 }
141 void setCostStandardPOQty (BigDecimal CostStandardPOQty)
142 {
143 if (CostStandardPOQty == null) throw new IllegalArgumentException JavaDoc ("CostStandardPOQty is mandatory");
144 setValueNoCheck ("CostStandardPOQty", CostStandardPOQty);
145 }
146 public BigDecimal getCostStandardPOQty()
147 {
148 BigDecimal bd = (BigDecimal)getValue("CostStandardPOQty");
149 if (bd == null) return Env.ZERO;
150 return bd;
151 }
152 public void setCurrentCostPrice (BigDecimal CurrentCostPrice)
153 {
154 if (CurrentCostPrice == null) throw new IllegalArgumentException JavaDoc ("CurrentCostPrice is mandatory");
155 setValue ("CurrentCostPrice", CurrentCostPrice);
156 }
157 public BigDecimal getCurrentCostPrice()
158 {
159 BigDecimal bd = (BigDecimal)getValue("CurrentCostPrice");
160 if (bd == null) return Env.ZERO;
161 return bd;
162 }
163 public void setFutureCostPrice (BigDecimal FutureCostPrice)
164 {
165 if (FutureCostPrice == null) throw new IllegalArgumentException JavaDoc ("FutureCostPrice is mandatory");
166 setValue ("FutureCostPrice", FutureCostPrice);
167 }
168 public BigDecimal getFutureCostPrice()
169 {
170 BigDecimal bd = (BigDecimal)getValue("FutureCostPrice");
171 if (bd == null) return Env.ZERO;
172 return bd;
173 }
174 void setM_Product_ID (int M_Product_ID)
175 {
176 setValueNoCheck ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
177 }
178 public int getM_Product_ID()
179 {
180 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
181 if (ii == null) return 0;
182 return ii.intValue();
183 }
184 void setPriceLastInv (BigDecimal PriceLastInv)
185 {
186 if (PriceLastInv == null) throw new IllegalArgumentException JavaDoc ("PriceLastInv is mandatory");
187 setValueNoCheck ("PriceLastInv", PriceLastInv);
188 }
189 public BigDecimal getPriceLastInv()
190 {
191 BigDecimal bd = (BigDecimal)getValue("PriceLastInv");
192 if (bd == null) return Env.ZERO;
193 return bd;
194 }
195 void setPriceLastPO (BigDecimal PriceLastPO)
196 {
197 if (PriceLastPO == null) throw new IllegalArgumentException JavaDoc ("PriceLastPO is mandatory");
198 setValueNoCheck ("PriceLastPO", PriceLastPO);
199 }
200 public BigDecimal getPriceLastPO()
201 {
202 BigDecimal bd = (BigDecimal)getValue("PriceLastPO");
203 if (bd == null) return Env.ZERO;
204 return bd;
205 }
206 void setTotalInvAmt (BigDecimal TotalInvAmt)
207 {
208 if (TotalInvAmt == null) throw new IllegalArgumentException JavaDoc ("TotalInvAmt is mandatory");
209 setValueNoCheck ("TotalInvAmt", TotalInvAmt);
210 }
211 public BigDecimal getTotalInvAmt()
212 {
213 BigDecimal bd = (BigDecimal)getValue("TotalInvAmt");
214 if (bd == null) return Env.ZERO;
215 return bd;
216 }
217 void setTotalInvQty (BigDecimal TotalInvQty)
218 {
219 if (TotalInvQty == null) throw new IllegalArgumentException JavaDoc ("TotalInvQty is mandatory");
220 setValueNoCheck ("TotalInvQty", TotalInvQty);
221 }
222 public BigDecimal getTotalInvQty()
223 {
224 BigDecimal bd = (BigDecimal)getValue("TotalInvQty");
225 if (bd == null) return Env.ZERO;
226 return bd;
227 }
228 }
229
Popular Tags