1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_A_Asset_Retirement extends PO 11 { 12 13 public X_A_Asset_Retirement (Properties ctx, int A_Asset_Retirement_ID) 14 { 15 super (ctx, A_Asset_Retirement_ID); 16 24 } 25 26 public X_A_Asset_Retirement (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 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 toString() 38 { 39 StringBuffer sb = new StringBuffer ("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 (A_Asset_ID)); 45 } 46 public int getA_Asset_ID() 47 { 48 Integer ii = (Integer )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 (A_Asset_Retirement_ID)); 55 } 56 public int getA_Asset_Retirement_ID() 57 { 58 Integer ii = (Integer )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 ("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 ("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 (C_InvoiceLine_ID)); 89 } 90 public int getC_InvoiceLine_ID() 91 { 92 Integer ii = (Integer )getValue("C_InvoiceLine_ID"); 93 if (ii == null) return 0; 94 return ii.intValue(); 95 } 96 } 97 | Popular Tags |