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_DiscountSchemaBreak extends PO 11 { 12 13 public X_M_DiscountSchemaBreak (Properties ctx, int M_DiscountSchemaBreak_ID) 14 { 15 super (ctx, M_DiscountSchemaBreak_ID); 16 25 } 26 27 public X_M_DiscountSchemaBreak (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 476; 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_DiscountSchemaBreak[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 public void setBreakDiscount (BigDecimal BreakDiscount) 44 { 45 if (BreakDiscount == null) throw new IllegalArgumentException ("BreakDiscount is mandatory"); 46 setValue ("BreakDiscount", BreakDiscount); 47 } 48 public BigDecimal getBreakDiscount() 49 { 50 BigDecimal bd = (BigDecimal)getValue("BreakDiscount"); 51 if (bd == null) return Env.ZERO; 52 return bd; 53 } 54 public void setBreakValue (BigDecimal BreakValue) 55 { 56 if (BreakValue == null) throw new IllegalArgumentException ("BreakValue is mandatory"); 57 setValue ("BreakValue", BreakValue); 58 } 59 public BigDecimal getBreakValue() 60 { 61 BigDecimal bd = (BigDecimal)getValue("BreakValue"); 62 if (bd == null) return Env.ZERO; 63 return bd; 64 } 65 void setM_DiscountSchemaBreak_ID (int M_DiscountSchemaBreak_ID) 66 { 67 setValueNoCheck ("M_DiscountSchemaBreak_ID", new Integer (M_DiscountSchemaBreak_ID)); 68 } 69 public int getM_DiscountSchemaBreak_ID() 70 { 71 Integer ii = (Integer )getValue("M_DiscountSchemaBreak_ID"); 72 if (ii == null) return 0; 73 return ii.intValue(); 74 } 75 void setM_DiscountSchema_ID (int M_DiscountSchema_ID) 76 { 77 setValueNoCheck ("M_DiscountSchema_ID", new Integer (M_DiscountSchema_ID)); 78 } 79 public int getM_DiscountSchema_ID() 80 { 81 Integer ii = (Integer )getValue("M_DiscountSchema_ID"); 82 if (ii == null) return 0; 83 return ii.intValue(); 84 } 85 public void setM_Product_Category_ID (int M_Product_Category_ID) 86 { 87 if (M_Product_Category_ID == 0) setValue ("M_Product_Category_ID", null); 88 else 89 setValue ("M_Product_Category_ID", new Integer (M_Product_Category_ID)); 90 } 91 public int getM_Product_Category_ID() 92 { 93 Integer ii = (Integer )getValue("M_Product_Category_ID"); 94 if (ii == null) return 0; 95 return ii.intValue(); 96 } 97 public void setM_Product_ID (int M_Product_ID) 98 { 99 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 100 else 101 setValue ("M_Product_ID", new Integer (M_Product_ID)); 102 } 103 public int getM_Product_ID() 104 { 105 Integer ii = (Integer )getValue("M_Product_ID"); 106 if (ii == null) return 0; 107 return ii.intValue(); 108 } 109 public void setSeqNo (int SeqNo) 110 { 111 setValue ("SeqNo", new Integer (SeqNo)); 112 } 113 public int getSeqNo() 114 { 115 Integer ii = (Integer )getValue("SeqNo"); 116 if (ii == null) return 0; 117 return ii.intValue(); 118 } 119 } 120
| Popular Tags
|