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_C_DunningRunEntry extends PO 11 { 12 13 public X_C_DunningRunEntry (Properties ctx, int C_DunningRunEntry_ID) 14 { 15 super (ctx, C_DunningRunEntry_ID); 16 25 } 26 27 public X_C_DunningRunEntry (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 527; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_C_DunningRunEntry[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 public void setAmt (BigDecimal Amt) 44 { 45 if (Amt == null) throw new IllegalArgumentException ("Amt is mandatory"); 46 setValue ("Amt", Amt); 47 } 48 public BigDecimal getAmt() 49 { 50 BigDecimal bd = (BigDecimal)getValue("Amt"); 51 if (bd == null) return Env.ZERO; 52 return bd; 53 } 54 public void setC_BPartner_ID (int C_BPartner_ID) 55 { 56 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 57 } 58 public int getC_BPartner_ID() 59 { 60 Integer ii = (Integer )getValue("C_BPartner_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID) 65 { 66 setValueNoCheck ("C_DunningRunEntry_ID", new Integer (C_DunningRunEntry_ID)); 67 } 68 public int getC_DunningRunEntry_ID() 69 { 70 Integer ii = (Integer )getValue("C_DunningRunEntry_ID"); 71 if (ii == null) return 0; 72 return ii.intValue(); 73 } 74 public void setC_DunningRun_ID (int C_DunningRun_ID) 75 { 76 setValue ("C_DunningRun_ID", new Integer (C_DunningRun_ID)); 77 } 78 public int getC_DunningRun_ID() 79 { 80 Integer ii = (Integer )getValue("C_DunningRun_ID"); 81 if (ii == null) return 0; 82 return ii.intValue(); 83 } 84 public void setQty (BigDecimal Qty) 85 { 86 if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory"); 87 setValue ("Qty", Qty); 88 } 89 public BigDecimal getQty() 90 { 91 BigDecimal bd = (BigDecimal)getValue("Qty"); 92 if (bd == null) return Env.ZERO; 93 return bd; 94 } 95 } 96 | Popular Tags |