KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_A_Asset extends PO
11 {
12 /** Standard Constructor **/
13 public X_A_Asset (Properties ctx, int A_Asset_ID)
14 {
15 super (ctx, A_Asset_ID);
16 /** if (A_Asset_ID == 0)
17 {
18 setA_Asset_Group_ID (0);
19 setA_Asset_ID (0);
20 setIsDepreciated (false);
21 setIsDisposed (false);
22 setIsFullyDepreciated (false);
23 setIsInPosession (false);
24 setIsOwned (false);
25 setName (null);
26 setValue (null);
27 }
28  **/

29 }
30 /** Load Constructor **/
31 public X_A_Asset (Properties ctx, ResultSet rs)
32 {
33 super (ctx, rs);
34 }
35 /** Load Meta Data **/
36 protected POInfo initPO (Properties ctx)
37 {
38 int AD_Table_ID = 539;
39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
40 return poi;
41 }
42 public String JavaDoc toString()
43 {
44 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_A_Asset[").append(getID()).append("]");
45 return sb.toString();
46 }
47 public void setAD_User_ID (int AD_User_ID)
48 {
49 if (AD_User_ID == 0) setValue ("AD_User_ID", null);
50  else
51 setValue ("AD_User_ID", new Integer JavaDoc(AD_User_ID));
52 }
53 public int getAD_User_ID()
54 {
55 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_User_ID");
56 if (ii == null) return 0;
57 return ii.intValue();
58 }
59 public void setA_Asset_Group_ID (int A_Asset_Group_ID)
60 {
61 setValue ("A_Asset_Group_ID", new Integer JavaDoc(A_Asset_Group_ID));
62 }
63 public int getA_Asset_Group_ID()
64 {
65 Integer JavaDoc ii = (Integer JavaDoc)getValue("A_Asset_Group_ID");
66 if (ii == null) return 0;
67 return ii.intValue();
68 }
69 void setA_Asset_ID (int A_Asset_ID)
70 {
71 setValueNoCheck ("A_Asset_ID", new Integer JavaDoc(A_Asset_ID));
72 }
73 public int getA_Asset_ID()
74 {
75 Integer JavaDoc ii = (Integer JavaDoc)getValue("A_Asset_ID");
76 if (ii == null) return 0;
77 return ii.intValue();
78 }
79 public void setAssetDepreciationDate (Timestamp AssetDepreciationDate)
80 {
81 setValue ("AssetDepreciationDate", AssetDepreciationDate);
82 }
83 public Timestamp getAssetDepreciationDate()
84 {
85 return (Timestamp)getValue("AssetDepreciationDate");
86 }
87 public void setAssetDisposalDate (Timestamp AssetDisposalDate)
88 {
89 setValue ("AssetDisposalDate", AssetDisposalDate);
90 }
91 public Timestamp getAssetDisposalDate()
92 {
93 return (Timestamp)getValue("AssetDisposalDate");
94 }
95 public void setAssetServiceDate (Timestamp AssetServiceDate)
96 {
97 setValue ("AssetServiceDate", AssetServiceDate);
98 }
99 public Timestamp getAssetServiceDate()
100 {
101 return (Timestamp)getValue("AssetServiceDate");
102 }
103 public void setC_BPartner_ID (int C_BPartner_ID)
104 {
105 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null);
106  else
107 setValue ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
108 }
109 public int getC_BPartner_ID()
110 {
111 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
112 if (ii == null) return 0;
113 return ii.intValue();
114 }
115 public void setC_BPartner_Location_ID (int C_BPartner_Location_ID)
116 {
117 if (C_BPartner_Location_ID == 0) setValue ("C_BPartner_Location_ID", null);
118  else
119 setValue ("C_BPartner_Location_ID", new Integer JavaDoc(C_BPartner_Location_ID));
120 }
121 public int getC_BPartner_Location_ID()
122 {
123 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_Location_ID");
124 if (ii == null) return 0;
125 return ii.intValue();
126 }
127 public void setC_Location_ID (int C_Location_ID)
128 {
129 if (C_Location_ID == 0) setValue ("C_Location_ID", null);
130  else
131 setValue ("C_Location_ID", new Integer JavaDoc(C_Location_ID));
132 }
133 public int getC_Location_ID()
134 {
135 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Location_ID");
136 if (ii == null) return 0;
137 return ii.intValue();
138 }
139 public void setDescription (String JavaDoc Description)
140 {
141 setValue ("Description", Description);
142 }
143 public String JavaDoc getDescription()
144 {
145 return (String JavaDoc)getValue("Description");
146 }
147 public void setGuaranteeDate (Timestamp GuaranteeDate)
148 {
149 setValue ("GuaranteeDate", GuaranteeDate);
150 }
151 public Timestamp getGuaranteeDate()
152 {
153 return (Timestamp)getValue("GuaranteeDate");
154 }
155 public void setHelp (String JavaDoc Help)
156 {
157 setValue ("Help", Help);
158 }
159 public String JavaDoc getHelp()
160 {
161 return (String JavaDoc)getValue("Help");
162 }
163 public void setIsDepreciated (boolean IsDepreciated)
164 {
165 setValue ("IsDepreciated", new Boolean JavaDoc(IsDepreciated));
166 }
167 public boolean isDepreciated()
168 {
169 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDepreciated");
170 if (bb != null) return bb.booleanValue();
171 return false;
172 }
173 public void setIsDisposed (boolean IsDisposed)
174 {
175 setValue ("IsDisposed", new Boolean JavaDoc(IsDisposed));
176 }
177 public boolean isDisposed()
178 {
179 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDisposed");
180 if (bb != null) return bb.booleanValue();
181 return false;
182 }
183 void setIsFullyDepreciated (boolean IsFullyDepreciated)
184 {
185 setValueNoCheck ("IsFullyDepreciated", new Boolean JavaDoc(IsFullyDepreciated));
186 }
187 public boolean isFullyDepreciated()
188 {
189 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsFullyDepreciated");
190 if (bb != null) return bb.booleanValue();
191 return false;
192 }
193 public void setIsInPosession (boolean IsInPosession)
194 {
195 setValue ("IsInPosession", new Boolean JavaDoc(IsInPosession));
196 }
197 public boolean isInPosession()
198 {
199 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsInPosession");
200 if (bb != null) return bb.booleanValue();
201 return false;
202 }
203 public void setIsOwned (boolean IsOwned)
204 {
205 setValue ("IsOwned", new Boolean JavaDoc(IsOwned));
206 }
207 public boolean isOwned()
208 {
209 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsOwned");
210 if (bb != null) return bb.booleanValue();
211 return false;
212 }
213 public void setLifeUseUnits (int LifeUseUnits)
214 {
215 setValue ("LifeUseUnits", new Integer JavaDoc(LifeUseUnits));
216 }
217 public int getLifeUseUnits()
218 {
219 Integer JavaDoc ii = (Integer JavaDoc)getValue("LifeUseUnits");
220 if (ii == null) return 0;
221 return ii.intValue();
222 }
223 public void setLocationComment (String JavaDoc LocationComment)
224 {
225 setValue ("LocationComment", LocationComment);
226 }
227 public String JavaDoc getLocationComment()
228 {
229 return (String JavaDoc)getValue("LocationComment");
230 }
231 public void setLot (String JavaDoc Lot)
232 {
233 setValue ("Lot", Lot);
234 }
235 public String JavaDoc getLot()
236 {
237 return (String JavaDoc)getValue("Lot");
238 }
239 void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
240 {
241 if (M_AttributeSetInstance_ID == 0) setValueNoCheck ("M_AttributeSetInstance_ID", null);
242  else
243 setValueNoCheck ("M_AttributeSetInstance_ID", new Integer JavaDoc(M_AttributeSetInstance_ID));
244 }
245 public int getM_AttributeSetInstance_ID()
246 {
247 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_AttributeSetInstance_ID");
248 if (ii == null) return 0;
249 return ii.intValue();
250 }
251 public void setM_Locator_ID (int M_Locator_ID)
252 {
253 if (M_Locator_ID == 0) setValue ("M_Locator_ID", null);
254  else
255 setValue ("M_Locator_ID", new Integer JavaDoc(M_Locator_ID));
256 }
257 public int getM_Locator_ID()
258 {
259 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Locator_ID");
260 if (ii == null) return 0;
261 return ii.intValue();
262 }
263 void setM_Product_ID (int M_Product_ID)
264 {
265 if (M_Product_ID == 0) setValueNoCheck ("M_Product_ID", null);
266  else
267 setValueNoCheck ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
268 }
269 public int getM_Product_ID()
270 {
271 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
272 if (ii == null) return 0;
273 return ii.intValue();
274 }
275 public void setName (String JavaDoc Name)
276 {
277 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
278 setValue ("Name", Name);
279 }
280 public String JavaDoc getName()
281 {
282 return (String JavaDoc)getValue("Name");
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 setSerNo (String JavaDoc SerNo)
293 {
294 setValue ("SerNo", SerNo);
295 }
296 public String JavaDoc getSerNo()
297 {
298 return (String JavaDoc)getValue("SerNo");
299 }
300 public void setUseLifeMonths (int UseLifeMonths)
301 {
302 setValue ("UseLifeMonths", new Integer JavaDoc(UseLifeMonths));
303 }
304 public int getUseLifeMonths()
305 {
306 Integer JavaDoc ii = (Integer JavaDoc)getValue("UseLifeMonths");
307 if (ii == null) return 0;
308 return ii.intValue();
309 }
310 public void setUseLifeYears (int UseLifeYears)
311 {
312 setValue ("UseLifeYears", new Integer JavaDoc(UseLifeYears));
313 }
314 public int getUseLifeYears()
315 {
316 Integer JavaDoc ii = (Integer JavaDoc)getValue("UseLifeYears");
317 if (ii == null) return 0;
318 return ii.intValue();
319 }
320 void setUseUnits (int UseUnits)
321 {
322 setValueNoCheck ("UseUnits", new Integer JavaDoc(UseUnits));
323 }
324 public int getUseUnits()
325 {
326 Integer JavaDoc ii = (Integer JavaDoc)getValue("UseUnits");
327 if (ii == null) return 0;
328 return ii.intValue();
329 }
330 public void setValue (String JavaDoc Value)
331 {
332 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
333 setValue ("Value", Value);
334 }
335 public String JavaDoc getValue()
336 {
337 return (String JavaDoc)getValue("Value");
338 }
339 public void setVersionNo (String JavaDoc VersionNo)
340 {
341 setValue ("VersionNo", VersionNo);
342 }
343 public String JavaDoc getVersionNo()
344 {
345 return (String JavaDoc)getValue("VersionNo");
346 }
347 }
348
Popular Tags