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_Locator extends PO 11 { 12 13 public X_M_Locator (Properties ctx, int M_Locator_ID) 14 { 15 super (ctx, M_Locator_ID); 16 28 } 29 30 public X_M_Locator (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 207; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_M_Locator[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setIsDefault (boolean IsDefault) 47 { 48 setValue ("IsDefault", new Boolean (IsDefault)); 49 } 50 public boolean isDefault() 51 { 52 Boolean bb = (Boolean )getValue("IsDefault"); 53 if (bb != null) return bb.booleanValue(); 54 return false; 55 } 56 void setM_Locator_ID (int M_Locator_ID) 57 { 58 setValueNoCheck ("M_Locator_ID", new Integer (M_Locator_ID)); 59 } 60 public int getM_Locator_ID() 61 { 62 Integer ii = (Integer )getValue("M_Locator_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 void setM_Warehouse_ID (int M_Warehouse_ID) 67 { 68 setValueNoCheck ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 69 } 70 public int getM_Warehouse_ID() 71 { 72 Integer ii = (Integer )getValue("M_Warehouse_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 public void setPriorityNo (int PriorityNo) 77 { 78 setValue ("PriorityNo", new Integer (PriorityNo)); 79 } 80 public int getPriorityNo() 81 { 82 Integer ii = (Integer )getValue("PriorityNo"); 83 if (ii == null) return 0; 84 return ii.intValue(); 85 } 86 public void setValue (String Value) 87 { 88 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 89 setValue ("Value", Value); 90 } 91 public String getValue() 92 { 93 return (String )getValue("Value"); 94 } 95 public void setX (String X) 96 { 97 if (X == null) throw new IllegalArgumentException ("X is mandatory"); 98 setValue ("X", X); 99 } 100 public String getX() 101 { 102 return (String )getValue("X"); 103 } 104 public void setY (String Y) 105 { 106 if (Y == null) throw new IllegalArgumentException ("Y is mandatory"); 107 setValue ("Y", Y); 108 } 109 public String getY() 110 { 111 return (String )getValue("Y"); 112 } 113 public void setZ (String Z) 114 { 115 if (Z == null) throw new IllegalArgumentException ("Z is mandatory"); 116 setValue ("Z", Z); 117 } 118 public String getZ() 119 { 120 return (String )getValue("Z"); 121 } 122 } 123 | Popular Tags |