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_Lot extends PO 11 { 12 13 public X_M_Lot (Properties ctx, int M_Lot_ID) 14 { 15 super (ctx, M_Lot_ID); 16 23 } 24 25 public X_M_Lot (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 557; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_M_Lot[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 public void setDateFrom (Timestamp DateFrom) 42 { 43 setValue ("DateFrom", DateFrom); 44 } 45 public Timestamp getDateFrom() 46 { 47 return (Timestamp)getValue("DateFrom"); 48 } 49 public void setDateTo (Timestamp DateTo) 50 { 51 setValue ("DateTo", DateTo); 52 } 53 public Timestamp getDateTo() 54 { 55 return (Timestamp)getValue("DateTo"); 56 } 57 public void setDescription (String Description) 58 { 59 setValue ("Description", Description); 60 } 61 public String getDescription() 62 { 63 return (String )getValue("Description"); 64 } 65 public void setHelp (String Help) 66 { 67 setValue ("Help", Help); 68 } 69 public String getHelp() 70 { 71 return (String )getValue("Help"); 72 } 73 void setM_LotCtl_ID (int M_LotCtl_ID) 74 { 75 if (M_LotCtl_ID == 0) setValueNoCheck ("M_LotCtl_ID", null); 76 else 77 setValueNoCheck ("M_LotCtl_ID", new Integer (M_LotCtl_ID)); 78 } 79 public int getM_LotCtl_ID() 80 { 81 Integer ii = (Integer )getValue("M_LotCtl_ID"); 82 if (ii == null) return 0; 83 return ii.intValue(); 84 } 85 void setM_Lot_ID (int M_Lot_ID) 86 { 87 setValueNoCheck ("M_Lot_ID", new Integer (M_Lot_ID)); 88 } 89 public int getM_Lot_ID() 90 { 91 Integer ii = (Integer )getValue("M_Lot_ID"); 92 if (ii == null) return 0; 93 return ii.intValue(); 94 } 95 void setM_Product_ID (int M_Product_ID) 96 { 97 setValueNoCheck ("M_Product_ID", new Integer (M_Product_ID)); 98 } 99 public int getM_Product_ID() 100 { 101 Integer ii = (Integer )getValue("M_Product_ID"); 102 if (ii == null) return 0; 103 return ii.intValue(); 104 } 105 public void setName (String Name) 106 { 107 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 108 setValue ("Name", Name); 109 } 110 public String getName() 111 { 112 return (String )getValue("Name"); 113 } 114 } 115 | Popular Tags |