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_A_Asset extends PO 11 { 12 13 public X_A_Asset (Properties ctx, int A_Asset_ID) 14 { 15 super (ctx, A_Asset_ID); 16 29 } 30 31 public X_A_Asset (Properties ctx, ResultSet rs) 32 { 33 super (ctx, rs); 34 } 35 36 protected POInfo initPO (Properties ctx) 37 { 38 int AD_Table_ID = 539; 39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 40 return poi; 41 } 42 public String toString() 43 { 44 StringBuffer sb = new StringBuffer ("X_A_Asset[").append(getID()).append("]"); 45 return sb.toString(); 46 } 47 public void setAD_User_ID (int AD_User_ID) 48 { 49 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 50 else 51 setValue ("AD_User_ID", new Integer (AD_User_ID)); 52 } 53 public int getAD_User_ID() 54 { 55 Integer ii = (Integer )getValue("AD_User_ID"); 56 if (ii == null) return 0; 57 return ii.intValue(); 58 } 59 public void setA_Asset_Group_ID (int A_Asset_Group_ID) 60 { 61 setValue ("A_Asset_Group_ID", new Integer (A_Asset_Group_ID)); 62 } 63 public int getA_Asset_Group_ID() 64 { 65 Integer ii = (Integer )getValue("A_Asset_Group_ID"); 66 if (ii == null) return 0; 67 return ii.intValue(); 68 } 69 void setA_Asset_ID (int A_Asset_ID) 70 { 71 setValueNoCheck ("A_Asset_ID", new Integer (A_Asset_ID)); 72 } 73 public int getA_Asset_ID() 74 { 75 Integer ii = (Integer )getValue("A_Asset_ID"); 76 if (ii == null) return 0; 77 return ii.intValue(); 78 } 79 public void setAssetDepreciationDate (Timestamp AssetDepreciationDate) 80 { 81 setValue ("AssetDepreciationDate", AssetDepreciationDate); 82 } 83 public Timestamp getAssetDepreciationDate() 84 { 85 return (Timestamp)getValue("AssetDepreciationDate"); 86 } 87 public void setAssetDisposalDate (Timestamp AssetDisposalDate) 88 { 89 setValue ("AssetDisposalDate", AssetDisposalDate); 90 } 91 public Timestamp getAssetDisposalDate() 92 { 93 return (Timestamp)getValue("AssetDisposalDate"); 94 } 95 public void setAssetServiceDate (Timestamp AssetServiceDate) 96 { 97 setValue ("AssetServiceDate", AssetServiceDate); 98 } 99 public Timestamp getAssetServiceDate() 100 { 101 return (Timestamp)getValue("AssetServiceDate"); 102 } 103 public void setC_BPartner_ID (int C_BPartner_ID) 104 { 105 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 106 else 107 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 108 } 109 public int getC_BPartner_ID() 110 { 111 Integer ii = (Integer )getValue("C_BPartner_ID"); 112 if (ii == null) return 0; 113 return ii.intValue(); 114 } 115 public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 116 { 117 if (C_BPartner_Location_ID == 0) setValue ("C_BPartner_Location_ID", null); 118 else 119 setValue ("C_BPartner_Location_ID", new Integer (C_BPartner_Location_ID)); 120 } 121 public int getC_BPartner_Location_ID() 122 { 123 Integer ii = (Integer )getValue("C_BPartner_Location_ID"); 124 if (ii == null) return 0; 125 return ii.intValue(); 126 } 127 public void setC_Location_ID (int C_Location_ID) 128 { 129 if (C_Location_ID == 0) setValue ("C_Location_ID", null); 130 else 131 setValue ("C_Location_ID", new Integer (C_Location_ID)); 132 } 133 public int getC_Location_ID() 134 { 135 Integer ii = (Integer )getValue("C_Location_ID"); 136 if (ii == null) return 0; 137 return ii.intValue(); 138 } 139 public void setDescription (String Description) 140 { 141 setValue ("Description", Description); 142 } 143 public String getDescription() 144 { 145 return (String )getValue("Description"); 146 } 147 public void setGuaranteeDate (Timestamp GuaranteeDate) 148 { 149 setValue ("GuaranteeDate", GuaranteeDate); 150 } 151 public Timestamp getGuaranteeDate() 152 { 153 return (Timestamp)getValue("GuaranteeDate"); 154 } 155 public void setHelp (String Help) 156 { 157 setValue ("Help", Help); 158 } 159 public String getHelp() 160 { 161 return (String )getValue("Help"); 162 } 163 public void setIsDepreciated (boolean IsDepreciated) 164 { 165 setValue ("IsDepreciated", new Boolean (IsDepreciated)); 166 } 167 public boolean isDepreciated() 168 { 169 Boolean bb = (Boolean )getValue("IsDepreciated"); 170 if (bb != null) return bb.booleanValue(); 171 return false; 172 } 173 public void setIsDisposed (boolean IsDisposed) 174 { 175 setValue ("IsDisposed", new Boolean (IsDisposed)); 176 } 177 public boolean isDisposed() 178 { 179 Boolean bb = (Boolean )getValue("IsDisposed"); 180 if (bb != null) return bb.booleanValue(); 181 return false; 182 } 183 void setIsFullyDepreciated (boolean IsFullyDepreciated) 184 { 185 setValueNoCheck ("IsFullyDepreciated", new Boolean (IsFullyDepreciated)); 186 } 187 public boolean isFullyDepreciated() 188 { 189 Boolean bb = (Boolean )getValue("IsFullyDepreciated"); 190 if (bb != null) return bb.booleanValue(); 191 return false; 192 } 193 public void setIsInPosession (boolean IsInPosession) 194 { 195 setValue ("IsInPosession", new Boolean (IsInPosession)); 196 } 197 public boolean isInPosession() 198 { 199 Boolean bb = (Boolean )getValue("IsInPosession"); 200 if (bb != null) return bb.booleanValue(); 201 return false; 202 } 203 public void setIsOwned (boolean IsOwned) 204 { 205 setValue ("IsOwned", new Boolean (IsOwned)); 206 } 207 public boolean isOwned() 208 { 209 Boolean bb = (Boolean )getValue("IsOwned"); 210 if (bb != null) return bb.booleanValue(); 211 return false; 212 } 213 public void setLifeUseUnits (int LifeUseUnits) 214 { 215 setValue ("LifeUseUnits", new Integer (LifeUseUnits)); 216 } 217 public int getLifeUseUnits() 218 { 219 Integer ii = (Integer )getValue("LifeUseUnits"); 220 if (ii == null) return 0; 221 return ii.intValue(); 222 } 223 public void setLocationComment (String LocationComment) 224 { 225 setValue ("LocationComment", LocationComment); 226 } 227 public String getLocationComment() 228 { 229 return (String )getValue("LocationComment"); 230 } 231 public void setLot (String Lot) 232 { 233 setValue ("Lot", Lot); 234 } 235 public String getLot() 236 { 237 return (String )getValue("Lot"); 238 } 239 void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) 240 { 241 if (M_AttributeSetInstance_ID == 0) setValueNoCheck ("M_AttributeSetInstance_ID", null); 242 else 243 setValueNoCheck ("M_AttributeSetInstance_ID", new Integer (M_AttributeSetInstance_ID)); 244 } 245 public int getM_AttributeSetInstance_ID() 246 { 247 Integer ii = (Integer )getValue("M_AttributeSetInstance_ID"); 248 if (ii == null) return 0; 249 return ii.intValue(); 250 } 251 public void setM_Locator_ID (int M_Locator_ID) 252 { 253 if (M_Locator_ID == 0) setValue ("M_Locator_ID", null); 254 else 255 setValue ("M_Locator_ID", new Integer (M_Locator_ID)); 256 } 257 public int getM_Locator_ID() 258 { 259 Integer ii = (Integer )getValue("M_Locator_ID"); 260 if (ii == null) return 0; 261 return ii.intValue(); 262 } 263 void setM_Product_ID (int M_Product_ID) 264 { 265 if (M_Product_ID == 0) setValueNoCheck ("M_Product_ID", null); 266 else 267 setValueNoCheck ("M_Product_ID", new Integer (M_Product_ID)); 268 } 269 public int getM_Product_ID() 270 { 271 Integer ii = (Integer )getValue("M_Product_ID"); 272 if (ii == null) return 0; 273 return ii.intValue(); 274 } 275 public void setName (String Name) 276 { 277 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 278 setValue ("Name", Name); 279 } 280 public String getName() 281 { 282 return (String )getValue("Name"); 283 } 284 public void setProcessing (String Processing) 285 { 286 setValue ("Processing", Processing); 287 } 288 public String getProcessing() 289 { 290 return (String )getValue("Processing"); 291 } 292 public void setSerNo (String SerNo) 293 { 294 setValue ("SerNo", SerNo); 295 } 296 public String getSerNo() 297 { 298 return (String )getValue("SerNo"); 299 } 300 public void setUseLifeMonths (int UseLifeMonths) 301 { 302 setValue ("UseLifeMonths", new Integer (UseLifeMonths)); 303 } 304 public int getUseLifeMonths() 305 { 306 Integer ii = (Integer )getValue("UseLifeMonths"); 307 if (ii == null) return 0; 308 return ii.intValue(); 309 } 310 public void setUseLifeYears (int UseLifeYears) 311 { 312 setValue ("UseLifeYears", new Integer (UseLifeYears)); 313 } 314 public int getUseLifeYears() 315 { 316 Integer ii = (Integer )getValue("UseLifeYears"); 317 if (ii == null) return 0; 318 return ii.intValue(); 319 } 320 void setUseUnits (int UseUnits) 321 { 322 setValueNoCheck ("UseUnits", new Integer (UseUnits)); 323 } 324 public int getUseUnits() 325 { 326 Integer ii = (Integer )getValue("UseUnits"); 327 if (ii == null) return 0; 328 return ii.intValue(); 329 } 330 public void setValue (String Value) 331 { 332 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 333 setValue ("Value", Value); 334 } 335 public String getValue() 336 { 337 return (String )getValue("Value"); 338 } 339 public void setVersionNo (String VersionNo) 340 { 341 setValue ("VersionNo", VersionNo); 342 } 343 public String getVersionNo() 344 { 345 return (String )getValue("VersionNo"); 346 } 347 } 348 | Popular Tags |