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_PriceList_Version extends PO 11 { 12 13 public X_M_PriceList_Version (Properties ctx, int M_PriceList_Version_ID) 14 { 15 super (ctx, M_PriceList_Version_ID); 16 25 } 26 27 public X_M_PriceList_Version (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 295; 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_PriceList_Version[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 public void setDescription (String Description) 44 { 45 setValue ("Description", Description); 46 } 47 public String getDescription() 48 { 49 return (String )getValue("Description"); 50 } 51 public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) 52 { 53 setValue ("M_DiscountSchema_ID", new Integer (M_DiscountSchema_ID)); 54 } 55 public int getM_DiscountSchema_ID() 56 { 57 Integer ii = (Integer )getValue("M_DiscountSchema_ID"); 58 if (ii == null) return 0; 59 return ii.intValue(); 60 } 61 void setM_PriceList_ID (int M_PriceList_ID) 62 { 63 setValueNoCheck ("M_PriceList_ID", new Integer (M_PriceList_ID)); 64 } 65 public int getM_PriceList_ID() 66 { 67 Integer ii = (Integer )getValue("M_PriceList_ID"); 68 if (ii == null) return 0; 69 return ii.intValue(); 70 } 71 void setM_PriceList_Version_ID (int M_PriceList_Version_ID) 72 { 73 setValueNoCheck ("M_PriceList_Version_ID", new Integer (M_PriceList_Version_ID)); 74 } 75 public int getM_PriceList_Version_ID() 76 { 77 Integer ii = (Integer )getValue("M_PriceList_Version_ID"); 78 if (ii == null) return 0; 79 return ii.intValue(); 80 } 81 public void setM_Pricelist_Version_Base_ID (int M_Pricelist_Version_Base_ID) 82 { 83 if (M_Pricelist_Version_Base_ID == 0) setValue ("M_Pricelist_Version_Base_ID", null); 84 else 85 setValue ("M_Pricelist_Version_Base_ID", new Integer (M_Pricelist_Version_Base_ID)); 86 } 87 public int getM_Pricelist_Version_Base_ID() 88 { 89 Integer ii = (Integer )getValue("M_Pricelist_Version_Base_ID"); 90 if (ii == null) return 0; 91 return ii.intValue(); 92 } 93 public void setName (String Name) 94 { 95 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 96 setValue ("Name", Name); 97 } 98 public String getName() 99 { 100 return (String )getValue("Name"); 101 } 102 public void setProcCreate (String ProcCreate) 103 { 104 setValue ("ProcCreate", ProcCreate); 105 } 106 public String getProcCreate() 107 { 108 return (String )getValue("ProcCreate"); 109 } 110 public void setValidFrom (Timestamp ValidFrom) 111 { 112 if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory"); 113 setValue ("ValidFrom", ValidFrom); 114 } 115 public Timestamp getValidFrom() 116 { 117 return (Timestamp)getValue("ValidFrom"); 118 } 119 } 120 | Popular Tags |