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_M_ProductPrice extends PO 11 { 12 13 public X_M_ProductPrice (Properties ctx, int M_ProductPrice_ID) 14 { 15 super (ctx, M_ProductPrice_ID); 16 25 } 26 27 public X_M_ProductPrice (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 251; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_M_ProductPrice[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setM_PriceList_Version_ID (int M_PriceList_Version_ID) 44 { 45 setValueNoCheck ("M_PriceList_Version_ID", new Integer (M_PriceList_Version_ID)); 46 } 47 public int getM_PriceList_Version_ID() 48 { 49 Integer ii = (Integer )getValue("M_PriceList_Version_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 void setM_Product_ID (int M_Product_ID) 54 { 55 setValueNoCheck ("M_Product_ID", new Integer (M_Product_ID)); 56 } 57 public int getM_Product_ID() 58 { 59 Integer ii = (Integer )getValue("M_Product_ID"); 60 if (ii == null) return 0; 61 return ii.intValue(); 62 } 63 public void setPriceLimit (BigDecimal PriceLimit) 64 { 65 if (PriceLimit == null) throw new IllegalArgumentException ("PriceLimit is mandatory"); 66 setValue ("PriceLimit", PriceLimit); 67 } 68 public BigDecimal getPriceLimit() 69 { 70 BigDecimal bd = (BigDecimal)getValue("PriceLimit"); 71 if (bd == null) return Env.ZERO; 72 return bd; 73 } 74 public void setPriceList (BigDecimal PriceList) 75 { 76 if (PriceList == null) throw new IllegalArgumentException ("PriceList is mandatory"); 77 setValue ("PriceList", PriceList); 78 } 79 public BigDecimal getPriceList() 80 { 81 BigDecimal bd = (BigDecimal)getValue("PriceList"); 82 if (bd == null) return Env.ZERO; 83 return bd; 84 } 85 public void setPriceStd (BigDecimal PriceStd) 86 { 87 if (PriceStd == null) throw new IllegalArgumentException ("PriceStd is mandatory"); 88 setValue ("PriceStd", PriceStd); 89 } 90 public BigDecimal getPriceStd() 91 { 92 BigDecimal bd = (BigDecimal)getValue("PriceStd"); 93 if (bd == null) return Env.ZERO; 94 return bd; 95 } 96 } 97 | Popular Tags |