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_W_BasketLine extends PO 11 { 12 13 public X_W_BasketLine (Properties ctx, int W_BasketLine_ID) 14 { 15 super (ctx, W_BasketLine_ID); 16 27 } 28 29 public X_W_BasketLine (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 549; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_W_BasketLine[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 public void setDescription (String Description) 46 { 47 if (Description == null) throw new IllegalArgumentException ("Description is mandatory"); 48 setValue ("Description", Description); 49 } 50 public String getDescription() 51 { 52 return (String )getValue("Description"); 53 } 54 public void setLine (int Line) 55 { 56 setValue ("Line", new Integer (Line)); 57 } 58 public int getLine() 59 { 60 Integer ii = (Integer )getValue("Line"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setM_Product_ID (int M_Product_ID) 65 { 66 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 67 else 68 setValue ("M_Product_ID", new Integer (M_Product_ID)); 69 } 70 public int getM_Product_ID() 71 { 72 Integer ii = (Integer )getValue("M_Product_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 public void setPrice (BigDecimal Price) 77 { 78 if (Price == null) throw new IllegalArgumentException ("Price is mandatory"); 79 setValue ("Price", Price); 80 } 81 public BigDecimal getPrice() 82 { 83 BigDecimal bd = (BigDecimal)getValue("Price"); 84 if (bd == null) return Env.ZERO; 85 return bd; 86 } 87 public void setProduct (String Product) 88 { 89 if (Product == null) throw new IllegalArgumentException ("Product is mandatory"); 90 setValue ("Product", Product); 91 } 92 public String getProduct() 93 { 94 return (String )getValue("Product"); 95 } 96 public void setQty (BigDecimal Qty) 97 { 98 if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory"); 99 setValue ("Qty", Qty); 100 } 101 public BigDecimal getQty() 102 { 103 BigDecimal bd = (BigDecimal)getValue("Qty"); 104 if (bd == null) return Env.ZERO; 105 return bd; 106 } 107 void setW_BasketLine_ID (int W_BasketLine_ID) 108 { 109 setValueNoCheck ("W_BasketLine_ID", new Integer (W_BasketLine_ID)); 110 } 111 public int getW_BasketLine_ID() 112 { 113 Integer ii = (Integer )getValue("W_BasketLine_ID"); 114 if (ii == null) return 0; 115 return ii.intValue(); 116 } 117 void setW_Basket_ID (int W_Basket_ID) 118 { 119 setValueNoCheck ("W_Basket_ID", new Integer (W_Basket_ID)); 120 } 121 public int getW_Basket_ID() 122 { 123 Integer ii = (Integer )getValue("W_Basket_ID"); 124 if (ii == null) return 0; 125 return ii.intValue(); 126 } 127 } 128
| Popular Tags
|