KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_A_Asset_Retirement extends PO
11 {
12 /** Standard Constructor **/
13 public X_A_Asset_Retirement (Properties ctx, int A_Asset_Retirement_ID)
14 {
15 super (ctx, A_Asset_Retirement_ID);
16 /** if (A_Asset_Retirement_ID == 0)
17 {
18 setA_Asset_ID (0);
19 setA_Asset_Retirement_ID (0);
20 setAssetMarketValueAmt (Env.ZERO);
21 setAssetValueAmt (Env.ZERO);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_A_Asset_Retirement (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 = 540;
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_A_Asset_Retirement[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setA_Asset_ID (int A_Asset_ID)
43 {
44 setValueNoCheck ("A_Asset_ID", new Integer JavaDoc(A_Asset_ID));
45 }
46 public int getA_Asset_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("A_Asset_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 void setA_Asset_Retirement_ID (int A_Asset_Retirement_ID)
53 {
54 setValueNoCheck ("A_Asset_Retirement_ID", new Integer JavaDoc(A_Asset_Retirement_ID));
55 }
56 public int getA_Asset_Retirement_ID()
57 {
58 Integer JavaDoc ii = (Integer JavaDoc)getValue("A_Asset_Retirement_ID");
59 if (ii == null) return 0;
60 return ii.intValue();
61 }
62 public void setAssetMarketValueAmt (BigDecimal AssetMarketValueAmt)
63 {
64 if (AssetMarketValueAmt == null) throw new IllegalArgumentException JavaDoc ("AssetMarketValueAmt is mandatory");
65 setValue ("AssetMarketValueAmt", AssetMarketValueAmt);
66 }
67 public BigDecimal getAssetMarketValueAmt()
68 {
69 BigDecimal bd = (BigDecimal)getValue("AssetMarketValueAmt");
70 if (bd == null) return Env.ZERO;
71 return bd;
72 }
73 public void setAssetValueAmt (BigDecimal AssetValueAmt)
74 {
75 if (AssetValueAmt == null) throw new IllegalArgumentException JavaDoc ("AssetValueAmt is mandatory");
76 setValue ("AssetValueAmt", AssetValueAmt);
77 }
78 public BigDecimal getAssetValueAmt()
79 {
80 BigDecimal bd = (BigDecimal)getValue("AssetValueAmt");
81 if (bd == null) return Env.ZERO;
82 return bd;
83 }
84 public void setC_InvoiceLine_ID (int C_InvoiceLine_ID)
85 {
86 if (C_InvoiceLine_ID == 0) setValue ("C_InvoiceLine_ID", null);
87  else
88 setValue ("C_InvoiceLine_ID", new Integer JavaDoc(C_InvoiceLine_ID));
89 }
90 public int getC_InvoiceLine_ID()
91 {
92 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_InvoiceLine_ID");
93 if (ii == null) return 0;
94 return ii.intValue();
95 }
96 }
97
Popular Tags