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