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_S_ResourceType extends PO 11 { 12 13 public X_S_ResourceType (Properties ctx, int S_ResourceType_ID) 14 { 15 super (ctx, S_ResourceType_ID); 16 37 } 38 39 public X_S_ResourceType (Properties ctx, ResultSet rs) 40 { 41 super (ctx, rs); 42 } 43 44 protected POInfo initPO (Properties ctx) 45 { 46 int AD_Table_ID = 480; 47 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 48 return poi; 49 } 50 public String toString() 51 { 52 StringBuffer sb = new StringBuffer ("X_S_ResourceType[").append(getID()).append("]"); 53 return sb.toString(); 54 } 55 public void setAllowUoMFractions (boolean AllowUoMFractions) 56 { 57 setValue ("AllowUoMFractions", new Boolean (AllowUoMFractions)); 58 } 59 public boolean isAllowUoMFractions() 60 { 61 Boolean bb = (Boolean )getValue("AllowUoMFractions"); 62 if (bb != null) return bb.booleanValue(); 63 return false; 64 } 65 public void setC_TaxCategory_ID (int C_TaxCategory_ID) 66 { 67 setValue ("C_TaxCategory_ID", new Integer (C_TaxCategory_ID)); 68 } 69 public int getC_TaxCategory_ID() 70 { 71 Integer ii = (Integer )getValue("C_TaxCategory_ID"); 72 if (ii == null) return 0; 73 return ii.intValue(); 74 } 75 public void setC_UOM_ID (int C_UOM_ID) 76 { 77 setValue ("C_UOM_ID", new Integer (C_UOM_ID)); 78 } 79 public int getC_UOM_ID() 80 { 81 Integer ii = (Integer )getValue("C_UOM_ID"); 82 if (ii == null) return 0; 83 return ii.intValue(); 84 } 85 public void setChargeableQty (int ChargeableQty) 86 { 87 setValue ("ChargeableQty", new Integer (ChargeableQty)); 88 } 89 public int getChargeableQty() 90 { 91 Integer ii = (Integer )getValue("ChargeableQty"); 92 if (ii == null) return 0; 93 return ii.intValue(); 94 } 95 public void setDescription (String Description) 96 { 97 setValue ("Description", Description); 98 } 99 public String getDescription() 100 { 101 return (String )getValue("Description"); 102 } 103 public void setIsDateSlot (boolean IsDateSlot) 104 { 105 setValue ("IsDateSlot", new Boolean (IsDateSlot)); 106 } 107 public boolean isDateSlot() 108 { 109 Boolean bb = (Boolean )getValue("IsDateSlot"); 110 if (bb != null) return bb.booleanValue(); 111 return false; 112 } 113 public void setIsSingleAssignment (boolean IsSingleAssignment) 114 { 115 setValue ("IsSingleAssignment", new Boolean (IsSingleAssignment)); 116 } 117 public boolean isSingleAssignment() 118 { 119 Boolean bb = (Boolean )getValue("IsSingleAssignment"); 120 if (bb != null) return bb.booleanValue(); 121 return false; 122 } 123 public void setIsTimeSlot (boolean IsTimeSlot) 124 { 125 setValue ("IsTimeSlot", new Boolean (IsTimeSlot)); 126 } 127 public boolean isTimeSlot() 128 { 129 Boolean bb = (Boolean )getValue("IsTimeSlot"); 130 if (bb != null) return bb.booleanValue(); 131 return false; 132 } 133 public void setM_Product_Category_ID (int M_Product_Category_ID) 134 { 135 setValue ("M_Product_Category_ID", new Integer (M_Product_Category_ID)); 136 } 137 public int getM_Product_Category_ID() 138 { 139 Integer ii = (Integer )getValue("M_Product_Category_ID"); 140 if (ii == null) return 0; 141 return ii.intValue(); 142 } 143 public void setName (String Name) 144 { 145 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 146 setValue ("Name", Name); 147 } 148 public String getName() 149 { 150 return (String )getValue("Name"); 151 } 152 public void setOnFriday (boolean OnFriday) 153 { 154 setValue ("OnFriday", new Boolean (OnFriday)); 155 } 156 public boolean isOnFriday() 157 { 158 Boolean bb = (Boolean )getValue("OnFriday"); 159 if (bb != null) return bb.booleanValue(); 160 return false; 161 } 162 public void setOnMonday (boolean OnMonday) 163 { 164 setValue ("OnMonday", new Boolean (OnMonday)); 165 } 166 public boolean isOnMonday() 167 { 168 Boolean bb = (Boolean )getValue("OnMonday"); 169 if (bb != null) return bb.booleanValue(); 170 return false; 171 } 172 public void setOnSaturday (boolean OnSaturday) 173 { 174 setValue ("OnSaturday", new Boolean (OnSaturday)); 175 } 176 public boolean isOnSaturday() 177 { 178 Boolean bb = (Boolean )getValue("OnSaturday"); 179 if (bb != null) return bb.booleanValue(); 180 return false; 181 } 182 public void setOnSunday (boolean OnSunday) 183 { 184 setValue ("OnSunday", new Boolean (OnSunday)); 185 } 186 public boolean isOnSunday() 187 { 188 Boolean bb = (Boolean )getValue("OnSunday"); 189 if (bb != null) return bb.booleanValue(); 190 return false; 191 } 192 public void setOnThursday (boolean OnThursday) 193 { 194 setValue ("OnThursday", new Boolean (OnThursday)); 195 } 196 public boolean isOnThursday() 197 { 198 Boolean bb = (Boolean )getValue("OnThursday"); 199 if (bb != null) return bb.booleanValue(); 200 return false; 201 } 202 public void setOnTuesday (boolean OnTuesday) 203 { 204 setValue ("OnTuesday", new Boolean (OnTuesday)); 205 } 206 public boolean isOnTuesday() 207 { 208 Boolean bb = (Boolean )getValue("OnTuesday"); 209 if (bb != null) return bb.booleanValue(); 210 return false; 211 } 212 public void setOnWednesday (boolean OnWednesday) 213 { 214 setValue ("OnWednesday", new Boolean (OnWednesday)); 215 } 216 public boolean isOnWednesday() 217 { 218 Boolean bb = (Boolean )getValue("OnWednesday"); 219 if (bb != null) return bb.booleanValue(); 220 return false; 221 } 222 void setS_ResourceType_ID (int S_ResourceType_ID) 223 { 224 setValueNoCheck ("S_ResourceType_ID", new Integer (S_ResourceType_ID)); 225 } 226 public int getS_ResourceType_ID() 227 { 228 Integer ii = (Integer )getValue("S_ResourceType_ID"); 229 if (ii == null) return 0; 230 return ii.intValue(); 231 } 232 public void setTimeSlotEnd (Timestamp TimeSlotEnd) 233 { 234 setValue ("TimeSlotEnd", TimeSlotEnd); 235 } 236 public Timestamp getTimeSlotEnd() 237 { 238 return (Timestamp)getValue("TimeSlotEnd"); 239 } 240 public void setTimeSlotStart (Timestamp TimeSlotStart) 241 { 242 setValue ("TimeSlotStart", TimeSlotStart); 243 } 244 public Timestamp getTimeSlotStart() 245 { 246 return (Timestamp)getValue("TimeSlotStart"); 247 } 248 public void setValue (String Value) 249 { 250 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 251 setValue ("Value", Value); 252 } 253 public String getValue() 254 { 255 return (String )getValue("Value"); 256 } 257 } 258
| Popular Tags
|