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 extends PO 11 { 12 13 public X_M_PriceList (Properties ctx, int M_PriceList_ID) 14 { 15 super (ctx, M_PriceList_ID); 16 27 } 28 29 public X_M_PriceList (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 255; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_M_PriceList[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 public void setBasePriceList_ID (int BasePriceList_ID) 46 { 47 if (BasePriceList_ID == 0) setValue ("BasePriceList_ID", null); 48 else 49 setValue ("BasePriceList_ID", new Integer (BasePriceList_ID)); 50 } 51 public int getBasePriceList_ID() 52 { 53 Integer ii = (Integer )getValue("BasePriceList_ID"); 54 if (ii == null) return 0; 55 return ii.intValue(); 56 } 57 public void setC_Currency_ID (int C_Currency_ID) 58 { 59 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 60 } 61 public int getC_Currency_ID() 62 { 63 Integer ii = (Integer )getValue("C_Currency_ID"); 64 if (ii == null) return 0; 65 return ii.intValue(); 66 } 67 public void setDescription (String Description) 68 { 69 setValue ("Description", Description); 70 } 71 public String getDescription() 72 { 73 return (String )getValue("Description"); 74 } 75 public void setEnforcePriceLimit (boolean EnforcePriceLimit) 76 { 77 setValue ("EnforcePriceLimit", new Boolean (EnforcePriceLimit)); 78 } 79 public boolean isEnforcePriceLimit() 80 { 81 Boolean bb = (Boolean )getValue("EnforcePriceLimit"); 82 if (bb != null) return bb.booleanValue(); 83 return false; 84 } 85 public void setIsDefault (boolean IsDefault) 86 { 87 setValue ("IsDefault", new Boolean (IsDefault)); 88 } 89 public boolean isDefault() 90 { 91 Boolean bb = (Boolean )getValue("IsDefault"); 92 if (bb != null) return bb.booleanValue(); 93 return false; 94 } 95 public void setIsSOPriceList (boolean IsSOPriceList) 96 { 97 setValue ("IsSOPriceList", new Boolean (IsSOPriceList)); 98 } 99 public boolean isSOPriceList() 100 { 101 Boolean bb = (Boolean )getValue("IsSOPriceList"); 102 if (bb != null) return bb.booleanValue(); 103 return false; 104 } 105 public void setIsTaxIncluded (boolean IsTaxIncluded) 106 { 107 setValue ("IsTaxIncluded", new Boolean (IsTaxIncluded)); 108 } 109 public boolean isTaxIncluded() 110 { 111 Boolean bb = (Boolean )getValue("IsTaxIncluded"); 112 if (bb != null) return bb.booleanValue(); 113 return false; 114 } 115 void setM_PriceList_ID (int M_PriceList_ID) 116 { 117 setValueNoCheck ("M_PriceList_ID", new Integer (M_PriceList_ID)); 118 } 119 public int getM_PriceList_ID() 120 { 121 Integer ii = (Integer )getValue("M_PriceList_ID"); 122 if (ii == null) return 0; 123 return ii.intValue(); 124 } 125 public void setName (String Name) 126 { 127 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 128 setValue ("Name", Name); 129 } 130 public String getName() 131 { 132 return (String )getValue("Name"); 133 } 134 } 135
| Popular Tags
|