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