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_Warehouse extends PO 11 { 12 13 public X_M_Warehouse (Properties ctx, int M_Warehouse_ID) 14 { 15 super (ctx, M_Warehouse_ID); 16 25 } 26 27 public X_M_Warehouse (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 190; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_M_Warehouse[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 public void setC_Location_ID (int C_Location_ID) 44 { 45 setValue ("C_Location_ID", new Integer (C_Location_ID)); 46 } 47 public int getC_Location_ID() 48 { 49 Integer ii = (Integer )getValue("C_Location_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public void setDescription (String Description) 54 { 55 setValue ("Description", Description); 56 } 57 public String getDescription() 58 { 59 return (String )getValue("Description"); 60 } 61 void setM_Warehouse_ID (int M_Warehouse_ID) 62 { 63 setValueNoCheck ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 64 } 65 public int getM_Warehouse_ID() 66 { 67 Integer ii = (Integer )getValue("M_Warehouse_ID"); 68 if (ii == null) return 0; 69 return ii.intValue(); 70 } 71 public void setName (String Name) 72 { 73 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 74 setValue ("Name", Name); 75 } 76 public String getName() 77 { 78 return (String )getValue("Name"); 79 } 80 public void setSeparator (String Separator) 81 { 82 if (Separator == null) throw new IllegalArgumentException ("Separator is mandatory"); 83 setValue ("Separator", Separator); 84 } 85 public String getSeparator() 86 { 87 return (String )getValue("Separator"); 88 } 89 public void setValue (String Value) 90 { 91 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 92 setValue ("Value", Value); 93 } 94 public String getValue() 95 { 96 return (String )getValue("Value"); 97 } 98 } 99
| Popular Tags
|