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_I_BPartner extends PO 11 { 12 13 public X_I_BPartner (Properties ctx, int I_BPartner_ID) 14 { 15 super (ctx, I_BPartner_ID); 16 23 } 24 25 public X_I_BPartner (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 533; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_I_BPartner[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 void setAD_User_ID (int AD_User_ID) 42 { 43 if (AD_User_ID == 0) setValueNoCheck ("AD_User_ID", null); 44 else 45 setValueNoCheck ("AD_User_ID", new Integer (AD_User_ID)); 46 } 47 public int getAD_User_ID() 48 { 49 Integer ii = (Integer )getValue("AD_User_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public void setAddress1 (String Address1) 54 { 55 setValue ("Address1", Address1); 56 } 57 public String getAddress1() 58 { 59 return (String )getValue("Address1"); 60 } 61 public void setAddress2 (String Address2) 62 { 63 setValue ("Address2", Address2); 64 } 65 public String getAddress2() 66 { 67 return (String )getValue("Address2"); 68 } 69 public void setBPContactGreeting (String BPContactGreeting) 70 { 71 setValue ("BPContactGreeting", BPContactGreeting); 72 } 73 public String getBPContactGreeting() 74 { 75 return (String )getValue("BPContactGreeting"); 76 } 77 public void setBirthday (Timestamp Birthday) 78 { 79 setValue ("Birthday", Birthday); 80 } 81 public Timestamp getBirthday() 82 { 83 return (Timestamp)getValue("Birthday"); 84 } 85 public void setC_BP_Group_ID (int C_BP_Group_ID) 86 { 87 if (C_BP_Group_ID == 0) setValue ("C_BP_Group_ID", null); 88 else 89 setValue ("C_BP_Group_ID", new Integer (C_BP_Group_ID)); 90 } 91 public int getC_BP_Group_ID() 92 { 93 Integer ii = (Integer )getValue("C_BP_Group_ID"); 94 if (ii == null) return 0; 95 return ii.intValue(); 96 } 97 void setC_BPartner_ID (int C_BPartner_ID) 98 { 99 if (C_BPartner_ID == 0) setValueNoCheck ("C_BPartner_ID", null); 100 else 101 setValueNoCheck ("C_BPartner_ID", new Integer (C_BPartner_ID)); 102 } 103 public int getC_BPartner_ID() 104 { 105 Integer ii = (Integer )getValue("C_BPartner_ID"); 106 if (ii == null) return 0; 107 return ii.intValue(); 108 } 109 void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 110 { 111 if (C_BPartner_Location_ID == 0) setValueNoCheck ("C_BPartner_Location_ID", null); 112 else 113 setValueNoCheck ("C_BPartner_Location_ID", new Integer (C_BPartner_Location_ID)); 114 } 115 public int getC_BPartner_Location_ID() 116 { 117 Integer ii = (Integer )getValue("C_BPartner_Location_ID"); 118 if (ii == null) return 0; 119 return ii.intValue(); 120 } 121 public void setC_Country_ID (int C_Country_ID) 122 { 123 if (C_Country_ID == 0) setValue ("C_Country_ID", null); 124 else 125 setValue ("C_Country_ID", new Integer (C_Country_ID)); 126 } 127 public int getC_Country_ID() 128 { 129 Integer ii = (Integer )getValue("C_Country_ID"); 130 if (ii == null) return 0; 131 return ii.intValue(); 132 } 133 public void setC_Greeting_ID (int C_Greeting_ID) 134 { 135 if (C_Greeting_ID == 0) setValue ("C_Greeting_ID", null); 136 else 137 setValue ("C_Greeting_ID", new Integer (C_Greeting_ID)); 138 } 139 public int getC_Greeting_ID() 140 { 141 Integer ii = (Integer )getValue("C_Greeting_ID"); 142 if (ii == null) return 0; 143 return ii.intValue(); 144 } 145 public void setC_Region_ID (int C_Region_ID) 146 { 147 if (C_Region_ID == 0) setValue ("C_Region_ID", null); 148 else 149 setValue ("C_Region_ID", new Integer (C_Region_ID)); 150 } 151 public int getC_Region_ID() 152 { 153 Integer ii = (Integer )getValue("C_Region_ID"); 154 if (ii == null) return 0; 155 return ii.intValue(); 156 } 157 public void setCity (String City) 158 { 159 setValue ("City", City); 160 } 161 public String getCity() 162 { 163 return (String )getValue("City"); 164 } 165 public void setComments (String Comments) 166 { 167 setValue ("Comments", Comments); 168 } 169 public String getComments() 170 { 171 return (String )getValue("Comments"); 172 } 173 public void setContactDescription (String ContactDescription) 174 { 175 setValue ("ContactDescription", ContactDescription); 176 } 177 public String getContactDescription() 178 { 179 return (String )getValue("ContactDescription"); 180 } 181 public void setContactName (String ContactName) 182 { 183 setValue ("ContactName", ContactName); 184 } 185 public String getContactName() 186 { 187 return (String )getValue("ContactName"); 188 } 189 public void setCountryCode (String CountryCode) 190 { 191 setValue ("CountryCode", CountryCode); 192 } 193 public String getCountryCode() 194 { 195 return (String )getValue("CountryCode"); 196 } 197 public void setDUNS (String DUNS) 198 { 199 setValue ("DUNS", DUNS); 200 } 201 public String getDUNS() 202 { 203 return (String )getValue("DUNS"); 204 } 205 public void setDescription (String Description) 206 { 207 setValue ("Description", Description); 208 } 209 public String getDescription() 210 { 211 return (String )getValue("Description"); 212 } 213 public void setEmail (String Email) 214 { 215 setValue ("Email", Email); 216 } 217 public String getEmail() 218 { 219 return (String )getValue("Email"); 220 } 221 public void setFax (String Fax) 222 { 223 setValue ("Fax", Fax); 224 } 225 public String getFax() 226 { 227 return (String )getValue("Fax"); 228 } 229 public void setGroupValue (String GroupValue) 230 { 231 setValue ("GroupValue", GroupValue); 232 } 233 public String getGroupValue() 234 { 235 return (String )getValue("GroupValue"); 236 } 237 void setI_BPartner_ID (int I_BPartner_ID) 238 { 239 setValueNoCheck ("I_BPartner_ID", new Integer (I_BPartner_ID)); 240 } 241 public int getI_BPartner_ID() 242 { 243 Integer ii = (Integer )getValue("I_BPartner_ID"); 244 if (ii == null) return 0; 245 return ii.intValue(); 246 } 247 void setI_ErrorMsg (String I_ErrorMsg) 248 { 249 setValueNoCheck ("I_ErrorMsg", I_ErrorMsg); 250 } 251 public String getI_ErrorMsg() 252 { 253 return (String )getValue("I_ErrorMsg"); 254 } 255 void setI_IsImported (boolean I_IsImported) 256 { 257 setValueNoCheck ("I_IsImported", new Boolean (I_IsImported)); 258 } 259 public boolean isI_IsImported() 260 { 261 Boolean bb = (Boolean )getValue("I_IsImported"); 262 if (bb != null) return bb.booleanValue(); 263 return false; 264 } 265 public void setNAICS (String NAICS) 266 { 267 setValue ("NAICS", NAICS); 268 } 269 public String getNAICS() 270 { 271 return (String )getValue("NAICS"); 272 } 273 public void setName (String Name) 274 { 275 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 276 setValue ("Name", Name); 277 } 278 public String getName() 279 { 280 return (String )getValue("Name"); 281 } 282 public void setName2 (String Name2) 283 { 284 setValue ("Name2", Name2); 285 } 286 public String getName2() 287 { 288 return (String )getValue("Name2"); 289 } 290 public void setPassword (String Password) 291 { 292 setValue ("Password", Password); 293 } 294 public String getPassword() 295 { 296 return (String )getValue("Password"); 297 } 298 public void setPhone (String Phone) 299 { 300 setValue ("Phone", Phone); 301 } 302 public String getPhone() 303 { 304 return (String )getValue("Phone"); 305 } 306 public void setPhone2 (String Phone2) 307 { 308 setValue ("Phone2", Phone2); 309 } 310 public String getPhone2() 311 { 312 return (String )getValue("Phone2"); 313 } 314 public void setPostal (String Postal) 315 { 316 setValue ("Postal", Postal); 317 } 318 public String getPostal() 319 { 320 return (String )getValue("Postal"); 321 } 322 public void setPostal_Add (String Postal_Add) 323 { 324 setValue ("Postal_Add", Postal_Add); 325 } 326 public String getPostal_Add() 327 { 328 return (String )getValue("Postal_Add"); 329 } 330 void setProcessed (boolean Processed) 331 { 332 setValueNoCheck ("Processed", new Boolean (Processed)); 333 } 334 public boolean isProcessed() 335 { 336 Boolean bb = (Boolean )getValue("Processed"); 337 if (bb != null) return bb.booleanValue(); 338 return false; 339 } 340 public void setProcessing (String Processing) 341 { 342 setValue ("Processing", Processing); 343 } 344 public String getProcessing() 345 { 346 return (String )getValue("Processing"); 347 } 348 public void setRegionName (String RegionName) 349 { 350 setValue ("RegionName", RegionName); 351 } 352 public String getRegionName() 353 { 354 return (String )getValue("RegionName"); 355 } 356 public void setTaxID (String TaxID) 357 { 358 setValue ("TaxID", TaxID); 359 } 360 public String getTaxID() 361 { 362 return (String )getValue("TaxID"); 363 } 364 public void setTitle (String Title) 365 { 366 setValue ("Title", Title); 367 } 368 public String getTitle() 369 { 370 return (String )getValue("Title"); 371 } 372 public void setValue (String Value) 373 { 374 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 375 setValue ("Value", Value); 376 } 377 public String getValue() 378 { 379 return (String )getValue("Value"); 380 } 381 } 382 | Popular Tags |