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_I_Product extends PO 11 { 12 13 public X_I_Product (Properties ctx, int I_Product_ID) 14 { 15 super (ctx, I_Product_ID); 16 24 } 25 26 public X_I_Product (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 532; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_I_Product[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setBPartner_Value (String BPartner_Value) 43 { 44 setValue ("BPartner_Value", BPartner_Value); 45 } 46 public String getBPartner_Value() 47 { 48 return (String )getValue("BPartner_Value"); 49 } 50 public void setC_BPartner_ID (int C_BPartner_ID) 51 { 52 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 53 else 54 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 55 } 56 public int getC_BPartner_ID() 57 { 58 Integer ii = (Integer )getValue("C_BPartner_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setC_Currency_ID (int C_Currency_ID) 63 { 64 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 65 else 66 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 67 } 68 public int getC_Currency_ID() 69 { 70 Integer ii = (Integer )getValue("C_Currency_ID"); 71 if (ii == null) return 0; 72 return ii.intValue(); 73 } 74 public void setC_UOM_ID (int C_UOM_ID) 75 { 76 if (C_UOM_ID == 0) setValue ("C_UOM_ID", null); 77 else 78 setValue ("C_UOM_ID", new Integer (C_UOM_ID)); 79 } 80 public int getC_UOM_ID() 81 { 82 Integer ii = (Integer )getValue("C_UOM_ID"); 83 if (ii == null) return 0; 84 return ii.intValue(); 85 } 86 public void setClassification (String Classification) 87 { 88 setValue ("Classification", Classification); 89 } 90 public String getClassification() 91 { 92 return (String )getValue("Classification"); 93 } 94 public void setCostPerOrder (BigDecimal CostPerOrder) 95 { 96 setValue ("CostPerOrder", CostPerOrder); 97 } 98 public BigDecimal getCostPerOrder() 99 { 100 BigDecimal bd = (BigDecimal)getValue("CostPerOrder"); 101 if (bd == null) return Env.ZERO; 102 return bd; 103 } 104 public void setDeliveryTime_Promised (int DeliveryTime_Promised) 105 { 106 setValue ("DeliveryTime_Promised", new Integer (DeliveryTime_Promised)); 107 } 108 public int getDeliveryTime_Promised() 109 { 110 Integer ii = (Integer )getValue("DeliveryTime_Promised"); 111 if (ii == null) return 0; 112 return ii.intValue(); 113 } 114 public void setDescription (String Description) 115 { 116 setValue ("Description", Description); 117 } 118 public String getDescription() 119 { 120 return (String )getValue("Description"); 121 } 122 public void setDescriptionURL (String DescriptionURL) 123 { 124 setValue ("DescriptionURL", DescriptionURL); 125 } 126 public String getDescriptionURL() 127 { 128 return (String )getValue("DescriptionURL"); 129 } 130 public void setDiscontinued (boolean Discontinued) 131 { 132 setValue ("Discontinued", new Boolean (Discontinued)); 133 } 134 public boolean isDiscontinued() 135 { 136 Boolean bb = (Boolean )getValue("Discontinued"); 137 if (bb != null) return bb.booleanValue(); 138 return false; 139 } 140 public void setDiscontinuedBy (Timestamp DiscontinuedBy) 141 { 142 setValue ("DiscontinuedBy", DiscontinuedBy); 143 } 144 public Timestamp getDiscontinuedBy() 145 { 146 return (Timestamp)getValue("DiscontinuedBy"); 147 } 148 public void setDocumentNote (String DocumentNote) 149 { 150 setValue ("DocumentNote", DocumentNote); 151 } 152 public String getDocumentNote() 153 { 154 return (String )getValue("DocumentNote"); 155 } 156 public void setHelp (String Help) 157 { 158 setValue ("Help", Help); 159 } 160 public String getHelp() 161 { 162 return (String )getValue("Help"); 163 } 164 public void setISO_Code (String ISO_Code) 165 { 166 setValue ("ISO_Code", ISO_Code); 167 } 168 public String getISO_Code() 169 { 170 return (String )getValue("ISO_Code"); 171 } 172 void setI_ErrorMsg (String I_ErrorMsg) 173 { 174 setValueNoCheck ("I_ErrorMsg", I_ErrorMsg); 175 } 176 public String getI_ErrorMsg() 177 { 178 return (String )getValue("I_ErrorMsg"); 179 } 180 void setI_IsImported (boolean I_IsImported) 181 { 182 setValueNoCheck ("I_IsImported", new Boolean (I_IsImported)); 183 } 184 public boolean isI_IsImported() 185 { 186 Boolean bb = (Boolean )getValue("I_IsImported"); 187 if (bb != null) return bb.booleanValue(); 188 return false; 189 } 190 void setI_Product_ID (int I_Product_ID) 191 { 192 setValueNoCheck ("I_Product_ID", new Integer (I_Product_ID)); 193 } 194 public int getI_Product_ID() 195 { 196 Integer ii = (Integer )getValue("I_Product_ID"); 197 if (ii == null) return 0; 198 return ii.intValue(); 199 } 200 public void setImageURL (String ImageURL) 201 { 202 setValue ("ImageURL", ImageURL); 203 } 204 public String getImageURL() 205 { 206 return (String )getValue("ImageURL"); 207 } 208 public void setM_Product_Category_ID (int M_Product_Category_ID) 209 { 210 if (M_Product_Category_ID == 0) setValue ("M_Product_Category_ID", null); 211 else 212 setValue ("M_Product_Category_ID", new Integer (M_Product_Category_ID)); 213 } 214 public int getM_Product_Category_ID() 215 { 216 Integer ii = (Integer )getValue("M_Product_Category_ID"); 217 if (ii == null) return 0; 218 return ii.intValue(); 219 } 220 public void setM_Product_ID (int M_Product_ID) 221 { 222 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 223 else 224 setValue ("M_Product_ID", new Integer (M_Product_ID)); 225 } 226 public int getM_Product_ID() 227 { 228 Integer ii = (Integer )getValue("M_Product_ID"); 229 if (ii == null) return 0; 230 return ii.intValue(); 231 } 232 public void setManufacturer (String Manufacturer) 233 { 234 setValue ("Manufacturer", Manufacturer); 235 } 236 public String getManufacturer() 237 { 238 return (String )getValue("Manufacturer"); 239 } 240 public void setName (String Name) 241 { 242 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 243 setValue ("Name", Name); 244 } 245 public String getName() 246 { 247 return (String )getValue("Name"); 248 } 249 public void setOrder_Min (int Order_Min) 250 { 251 setValue ("Order_Min", new Integer (Order_Min)); 252 } 253 public int getOrder_Min() 254 { 255 Integer ii = (Integer )getValue("Order_Min"); 256 if (ii == null) return 0; 257 return ii.intValue(); 258 } 259 public void setOrder_Pack (int Order_Pack) 260 { 261 setValue ("Order_Pack", new Integer (Order_Pack)); 262 } 263 public int getOrder_Pack() 264 { 265 Integer ii = (Integer )getValue("Order_Pack"); 266 if (ii == null) return 0; 267 return ii.intValue(); 268 } 269 public void setPriceEffective (Timestamp PriceEffective) 270 { 271 setValue ("PriceEffective", PriceEffective); 272 } 273 public Timestamp getPriceEffective() 274 { 275 return (Timestamp)getValue("PriceEffective"); 276 } 277 public void setPriceList (BigDecimal PriceList) 278 { 279 setValue ("PriceList", PriceList); 280 } 281 public BigDecimal getPriceList() 282 { 283 BigDecimal bd = (BigDecimal)getValue("PriceList"); 284 if (bd == null) return Env.ZERO; 285 return bd; 286 } 287 public void setPricePO (BigDecimal PricePO) 288 { 289 setValue ("PricePO", PricePO); 290 } 291 public BigDecimal getPricePO() 292 { 293 BigDecimal bd = (BigDecimal)getValue("PricePO"); 294 if (bd == null) return Env.ZERO; 295 return bd; 296 } 297 void setProcessed (boolean Processed) 298 { 299 setValueNoCheck ("Processed", new Boolean (Processed)); 300 } 301 public boolean isProcessed() 302 { 303 Boolean bb = (Boolean )getValue("Processed"); 304 if (bb != null) return bb.booleanValue(); 305 return false; 306 } 307 public void setProcessing (String Processing) 308 { 309 setValue ("Processing", Processing); 310 } 311 public String getProcessing() 312 { 313 return (String )getValue("Processing"); 314 } 315 public void setProductCategory_Value (String ProductCategory_Value) 316 { 317 setValue ("ProductCategory_Value", ProductCategory_Value); 318 } 319 public String getProductCategory_Value() 320 { 321 return (String )getValue("ProductCategory_Value"); 322 } 323 public static final String PRODUCTTYPE_Item = "I"; 324 public static final String PRODUCTTYPE_Service = "S"; 325 public static final String PRODUCTTYPE_Resource = "R"; 326 public static final String PRODUCTTYPE_ExpenseType = "E"; 327 public static final String PRODUCTTYPE_Online = "O"; 328 public void setProductType (String ProductType) 329 { 330 if (ProductType.equals("I") || ProductType.equals("S") || ProductType.equals("R") || ProductType.equals("E") || ProductType.equals("O")); 331 else throw new IllegalArgumentException ("ProductType Invalid value - Reference_ID=270 - I - S - R - E - O"); 332 if (ProductType == null) throw new IllegalArgumentException ("ProductType is mandatory"); 333 setValue ("ProductType", ProductType); 334 } 335 public String getProductType() 336 { 337 return (String )getValue("ProductType"); 338 } 339 public void setRoyaltyAmt (BigDecimal RoyaltyAmt) 340 { 341 setValue ("RoyaltyAmt", RoyaltyAmt); 342 } 343 public BigDecimal getRoyaltyAmt() 344 { 345 BigDecimal bd = (BigDecimal)getValue("RoyaltyAmt"); 346 if (bd == null) return Env.ZERO; 347 return bd; 348 } 349 public void setSKU (String SKU) 350 { 351 setValue ("SKU", SKU); 352 } 353 public String getSKU() 354 { 355 return (String )getValue("SKU"); 356 } 357 public void setShelfDepth (int ShelfDepth) 358 { 359 setValue ("ShelfDepth", new Integer (ShelfDepth)); 360 } 361 public int getShelfDepth() 362 { 363 Integer ii = (Integer )getValue("ShelfDepth"); 364 if (ii == null) return 0; 365 return ii.intValue(); 366 } 367 public void setShelfHeight (int ShelfHeight) 368 { 369 setValue ("ShelfHeight", new Integer (ShelfHeight)); 370 } 371 public int getShelfHeight() 372 { 373 Integer ii = (Integer )getValue("ShelfHeight"); 374 if (ii == null) return 0; 375 return ii.intValue(); 376 } 377 public void setShelfWidth (int ShelfWidth) 378 { 379 setValue ("ShelfWidth", new Integer (ShelfWidth)); 380 } 381 public int getShelfWidth() 382 { 383 Integer ii = (Integer )getValue("ShelfWidth"); 384 if (ii == null) return 0; 385 return ii.intValue(); 386 } 387 public void setUPC (String UPC) 388 { 389 setValue ("UPC", UPC); 390 } 391 public String getUPC() 392 { 393 return (String )getValue("UPC"); 394 } 395 public void setUnitsPerPallet (int UnitsPerPallet) 396 { 397 setValue ("UnitsPerPallet", new Integer (UnitsPerPallet)); 398 } 399 public int getUnitsPerPallet() 400 { 401 Integer ii = (Integer )getValue("UnitsPerPallet"); 402 if (ii == null) return 0; 403 return ii.intValue(); 404 } 405 public void setValue (String Value) 406 { 407 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 408 setValue ("Value", Value); 409 } 410 public String getValue() 411 { 412 return (String )getValue("Value"); 413 } 414 public void setVendorCategory (String VendorCategory) 415 { 416 setValue ("VendorCategory", VendorCategory); 417 } 418 public String getVendorCategory() 419 { 420 return (String )getValue("VendorCategory"); 421 } 422 public void setVendorProductNo (String VendorProductNo) 423 { 424 setValue ("VendorProductNo", VendorProductNo); 425 } 426 public String getVendorProductNo() 427 { 428 return (String )getValue("VendorProductNo"); 429 } 430 public void setVolume (int Volume) 431 { 432 setValue ("Volume", new Integer (Volume)); 433 } 434 public int getVolume() 435 { 436 Integer ii = (Integer )getValue("Volume"); 437 if (ii == null) return 0; 438 return ii.intValue(); 439 } 440 public void setWeight (int Weight) 441 { 442 setValue ("Weight", new Integer (Weight)); 443 } 444 public int getWeight() 445 { 446 Integer ii = (Integer )getValue("Weight"); 447 if (ii == null) return 0; 448 return ii.intValue(); 449 } 450 public void setX12DE355 (String X12DE355) 451 { 452 setValue ("X12DE355", X12DE355); 453 } 454 public String getX12DE355() 455 { 456 return (String )getValue("X12DE355"); 457 } 458 } 459 | Popular Tags |