001// -------------------------------------------------------------------------------- 002// Copyright 2002-2025 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016// Generated File -- DO NOT EDIT BY HAND 017// -------------------------------------------------------------------------------- 018 019/** 020 * PartyPaymentMethodCreditCardValue.java 021 */ 022 023package com.echothree.model.data.payment.server.value; 024 025import com.echothree.model.data.payment.common.pk.PartyPaymentMethodCreditCardPK; 026 027import com.echothree.model.data.payment.server.factory.PartyPaymentMethodCreditCardFactory; 028 029import com.echothree.model.data.payment.common.pk.PartyPaymentMethodPK; 030import com.echothree.model.data.party.common.pk.PersonalTitlePK; 031import com.echothree.model.data.party.common.pk.NameSuffixPK; 032import com.echothree.model.data.contact.common.pk.PartyContactMechanismPK; 033 034import com.echothree.util.common.exception.PersistenceCloneException; 035import com.echothree.util.common.exception.PersistenceNotNullException; 036 037import com.echothree.util.server.persistence.BaseValue; 038 039import java.io.Serializable; 040 041public class PartyPaymentMethodCreditCardValue 042 extends BaseValue<PartyPaymentMethodCreditCardPK> 043 implements Cloneable, Serializable { 044 045 private PartyPaymentMethodPK partyPaymentMethodPK; 046 private boolean partyPaymentMethodPKHasBeenModified = false; 047 private String number; 048 private boolean numberHasBeenModified = false; 049 private Integer expirationMonth; 050 private boolean expirationMonthHasBeenModified = false; 051 private Integer expirationYear; 052 private boolean expirationYearHasBeenModified = false; 053 private PersonalTitlePK personalTitlePK; 054 private boolean personalTitlePKHasBeenModified = false; 055 private String firstName; 056 private boolean firstNameHasBeenModified = false; 057 private String firstNameSdx; 058 private boolean firstNameSdxHasBeenModified = false; 059 private String middleName; 060 private boolean middleNameHasBeenModified = false; 061 private String middleNameSdx; 062 private boolean middleNameSdxHasBeenModified = false; 063 private String lastName; 064 private boolean lastNameHasBeenModified = false; 065 private String lastNameSdx; 066 private boolean lastNameSdxHasBeenModified = false; 067 private NameSuffixPK nameSuffixPK; 068 private boolean nameSuffixPKHasBeenModified = false; 069 private String name; 070 private boolean nameHasBeenModified = false; 071 private PartyContactMechanismPK billingPartyContactMechanismPK; 072 private boolean billingPartyContactMechanismPKHasBeenModified = false; 073 private String issuerName; 074 private boolean issuerNameHasBeenModified = false; 075 private PartyContactMechanismPK issuerPartyContactMechanismPK; 076 private boolean issuerPartyContactMechanismPKHasBeenModified = false; 077 private Long fromTime; 078 private boolean fromTimeHasBeenModified = false; 079 private Long thruTime; 080 private boolean thruTimeHasBeenModified = false; 081 082 private transient Integer _hashCode = null; 083 private transient String _stringValue = null; 084 085 private void constructFields(PartyPaymentMethodPK partyPaymentMethodPK, String number, Integer expirationMonth, Integer expirationYear, PersonalTitlePK personalTitlePK, String firstName, String firstNameSdx, String middleName, String middleNameSdx, String lastName, String lastNameSdx, NameSuffixPK nameSuffixPK, String name, PartyContactMechanismPK billingPartyContactMechanismPK, String issuerName, PartyContactMechanismPK issuerPartyContactMechanismPK, Long fromTime, Long thruTime) 086 throws PersistenceNotNullException { 087 checkForNull(partyPaymentMethodPK); 088 this.partyPaymentMethodPK = partyPaymentMethodPK; 089 this.number = number; 090 this.expirationMonth = expirationMonth; 091 this.expirationYear = expirationYear; 092 this.personalTitlePK = personalTitlePK; 093 this.firstName = firstName; 094 this.firstNameSdx = firstNameSdx; 095 this.middleName = middleName; 096 this.middleNameSdx = middleNameSdx; 097 this.lastName = lastName; 098 this.lastNameSdx = lastNameSdx; 099 this.nameSuffixPK = nameSuffixPK; 100 this.name = name; 101 this.billingPartyContactMechanismPK = billingPartyContactMechanismPK; 102 this.issuerName = issuerName; 103 this.issuerPartyContactMechanismPK = issuerPartyContactMechanismPK; 104 checkForNull(fromTime); 105 this.fromTime = fromTime; 106 checkForNull(thruTime); 107 this.thruTime = thruTime; 108 } 109 110 /** Creates a new instance of PartyPaymentMethodCreditCardValue */ 111 public PartyPaymentMethodCreditCardValue(PartyPaymentMethodCreditCardPK partyPaymentMethodCreditCardPK, PartyPaymentMethodPK partyPaymentMethodPK, String number, Integer expirationMonth, Integer expirationYear, PersonalTitlePK personalTitlePK, String firstName, String firstNameSdx, String middleName, String middleNameSdx, String lastName, String lastNameSdx, NameSuffixPK nameSuffixPK, String name, PartyContactMechanismPK billingPartyContactMechanismPK, String issuerName, PartyContactMechanismPK issuerPartyContactMechanismPK, Long fromTime, Long thruTime) 112 throws PersistenceNotNullException { 113 super(partyPaymentMethodCreditCardPK); 114 constructFields(partyPaymentMethodPK, number, expirationMonth, expirationYear, personalTitlePK, firstName, firstNameSdx, middleName, middleNameSdx, lastName, lastNameSdx, nameSuffixPK, name, billingPartyContactMechanismPK, issuerName, issuerPartyContactMechanismPK, fromTime, thruTime); 115 } 116 117 /** Creates a new instance of PartyPaymentMethodCreditCardValue */ 118 public PartyPaymentMethodCreditCardValue(PartyPaymentMethodPK partyPaymentMethodPK, String number, Integer expirationMonth, Integer expirationYear, PersonalTitlePK personalTitlePK, String firstName, String firstNameSdx, String middleName, String middleNameSdx, String lastName, String lastNameSdx, NameSuffixPK nameSuffixPK, String name, PartyContactMechanismPK billingPartyContactMechanismPK, String issuerName, PartyContactMechanismPK issuerPartyContactMechanismPK, Long fromTime, Long thruTime) 119 throws PersistenceNotNullException { 120 super(); 121 constructFields(partyPaymentMethodPK, number, expirationMonth, expirationYear, personalTitlePK, firstName, firstNameSdx, middleName, middleNameSdx, lastName, lastNameSdx, nameSuffixPK, name, billingPartyContactMechanismPK, issuerName, issuerPartyContactMechanismPK, fromTime, thruTime); 122 } 123 124 @Override 125 public PartyPaymentMethodCreditCardFactory getBaseFactoryInstance() { 126 return PartyPaymentMethodCreditCardFactory.getInstance(); 127 } 128 129 @Override 130 public PartyPaymentMethodCreditCardValue clone() { 131 Object result; 132 133 try { 134 result = super.clone(); 135 } catch (CloneNotSupportedException cnse) { 136 // This shouldn't happen, fail when it does. 137 throw new PersistenceCloneException(cnse); 138 } 139 140 return (PartyPaymentMethodCreditCardValue)result; 141 } 142 143 @Override 144 public PartyPaymentMethodCreditCardPK getPrimaryKey() { 145 if(_primaryKey == null) { 146 _primaryKey = new PartyPaymentMethodCreditCardPK(entityId); 147 } 148 149 return _primaryKey; 150 } 151 152 private void clearHashAndString() { 153 _hashCode = null; 154 _stringValue = null; 155 } 156 157 @Override 158 public int hashCode() { 159 if(_hashCode == null) { 160 int hashCode = 17; 161 162 hashCode = 37 * hashCode + ((entityId != null) ? entityId.hashCode() : 0); 163 164 hashCode = 37 * hashCode + ((partyPaymentMethodPK != null) ? partyPaymentMethodPK.hashCode() : 0); 165 hashCode = 37 * hashCode + ((number != null) ? number.hashCode() : 0); 166 hashCode = 37 * hashCode + ((expirationMonth != null) ? expirationMonth.hashCode() : 0); 167 hashCode = 37 * hashCode + ((expirationYear != null) ? expirationYear.hashCode() : 0); 168 hashCode = 37 * hashCode + ((personalTitlePK != null) ? personalTitlePK.hashCode() : 0); 169 hashCode = 37 * hashCode + ((firstName != null) ? firstName.hashCode() : 0); 170 hashCode = 37 * hashCode + ((firstNameSdx != null) ? firstNameSdx.hashCode() : 0); 171 hashCode = 37 * hashCode + ((middleName != null) ? middleName.hashCode() : 0); 172 hashCode = 37 * hashCode + ((middleNameSdx != null) ? middleNameSdx.hashCode() : 0); 173 hashCode = 37 * hashCode + ((lastName != null) ? lastName.hashCode() : 0); 174 hashCode = 37 * hashCode + ((lastNameSdx != null) ? lastNameSdx.hashCode() : 0); 175 hashCode = 37 * hashCode + ((nameSuffixPK != null) ? nameSuffixPK.hashCode() : 0); 176 hashCode = 37 * hashCode + ((name != null) ? name.hashCode() : 0); 177 hashCode = 37 * hashCode + ((billingPartyContactMechanismPK != null) ? billingPartyContactMechanismPK.hashCode() : 0); 178 hashCode = 37 * hashCode + ((issuerName != null) ? issuerName.hashCode() : 0); 179 hashCode = 37 * hashCode + ((issuerPartyContactMechanismPK != null) ? issuerPartyContactMechanismPK.hashCode() : 0); 180 hashCode = 37 * hashCode + ((fromTime != null) ? fromTime.hashCode() : 0); 181 hashCode = 37 * hashCode + ((thruTime != null) ? thruTime.hashCode() : 0); 182 183 _hashCode = hashCode; 184 } 185 186 return _hashCode; 187 } 188 189 @Override 190 public String toString() { 191 if(_stringValue == null) { 192 _stringValue = "{" + 193 "entityId=" + getEntityId() + 194 ", partyPaymentMethodPK=" + getPartyPaymentMethodPK() + 195 ", number=" + getNumber() + 196 ", expirationMonth=" + getExpirationMonth() + 197 ", expirationYear=" + getExpirationYear() + 198 ", personalTitlePK=" + getPersonalTitlePK() + 199 ", firstName=" + getFirstName() + 200 ", firstNameSdx=" + getFirstNameSdx() + 201 ", middleName=" + getMiddleName() + 202 ", middleNameSdx=" + getMiddleNameSdx() + 203 ", lastName=" + getLastName() + 204 ", lastNameSdx=" + getLastNameSdx() + 205 ", nameSuffixPK=" + getNameSuffixPK() + 206 ", name=" + getName() + 207 ", billingPartyContactMechanismPK=" + getBillingPartyContactMechanismPK() + 208 ", issuerName=" + getIssuerName() + 209 ", issuerPartyContactMechanismPK=" + getIssuerPartyContactMechanismPK() + 210 ", fromTime=" + getFromTime() + 211 ", thruTime=" + getThruTime() + 212 "}"; 213 } 214 return _stringValue; 215 } 216 217 @Override 218 public boolean equals(Object other) { 219 if(this == other) 220 return true; 221 222 if(!hasIdentity()) 223 return false; 224 225 if(other instanceof PartyPaymentMethodCreditCardValue that) { 226 if(!that.hasIdentity()) 227 return false; 228 229 Long thisEntityId = getEntityId(); 230 Long thatEntityId = that.getEntityId(); 231 232 boolean objectsEqual = thisEntityId.equals(thatEntityId); 233 if(objectsEqual) 234 objectsEqual = isIdentical(that); 235 236 return objectsEqual; 237 } else { 238 return false; 239 } 240 } 241 242 public boolean isIdentical(Object other) { 243 if(other instanceof PartyPaymentMethodCreditCardValue that) { 244 boolean objectsEqual = true; 245 246 247 if(objectsEqual) { 248 PartyPaymentMethodPK thisPartyPaymentMethodPK = getPartyPaymentMethodPK(); 249 PartyPaymentMethodPK thatPartyPaymentMethodPK = that.getPartyPaymentMethodPK(); 250 251 if(thisPartyPaymentMethodPK == null) { 252 objectsEqual = objectsEqual && (thatPartyPaymentMethodPK == null); 253 } else { 254 objectsEqual = objectsEqual && thisPartyPaymentMethodPK.equals(thatPartyPaymentMethodPK); 255 } 256 } 257 258 if(objectsEqual) { 259 String thisNumber = getNumber(); 260 String thatNumber = that.getNumber(); 261 262 if(thisNumber == null) { 263 objectsEqual = objectsEqual && (thatNumber == null); 264 } else { 265 objectsEqual = objectsEqual && thisNumber.equals(thatNumber); 266 } 267 } 268 269 if(objectsEqual) { 270 Integer thisExpirationMonth = getExpirationMonth(); 271 Integer thatExpirationMonth = that.getExpirationMonth(); 272 273 if(thisExpirationMonth == null) { 274 objectsEqual = objectsEqual && (thatExpirationMonth == null); 275 } else { 276 objectsEqual = objectsEqual && thisExpirationMonth.equals(thatExpirationMonth); 277 } 278 } 279 280 if(objectsEqual) { 281 Integer thisExpirationYear = getExpirationYear(); 282 Integer thatExpirationYear = that.getExpirationYear(); 283 284 if(thisExpirationYear == null) { 285 objectsEqual = objectsEqual && (thatExpirationYear == null); 286 } else { 287 objectsEqual = objectsEqual && thisExpirationYear.equals(thatExpirationYear); 288 } 289 } 290 291 if(objectsEqual) { 292 PersonalTitlePK thisPersonalTitlePK = getPersonalTitlePK(); 293 PersonalTitlePK thatPersonalTitlePK = that.getPersonalTitlePK(); 294 295 if(thisPersonalTitlePK == null) { 296 objectsEqual = objectsEqual && (thatPersonalTitlePK == null); 297 } else { 298 objectsEqual = objectsEqual && thisPersonalTitlePK.equals(thatPersonalTitlePK); 299 } 300 } 301 302 if(objectsEqual) { 303 String thisFirstName = getFirstName(); 304 String thatFirstName = that.getFirstName(); 305 306 if(thisFirstName == null) { 307 objectsEqual = objectsEqual && (thatFirstName == null); 308 } else { 309 objectsEqual = objectsEqual && thisFirstName.equals(thatFirstName); 310 } 311 } 312 313 if(objectsEqual) { 314 String thisFirstNameSdx = getFirstNameSdx(); 315 String thatFirstNameSdx = that.getFirstNameSdx(); 316 317 if(thisFirstNameSdx == null) { 318 objectsEqual = objectsEqual && (thatFirstNameSdx == null); 319 } else { 320 objectsEqual = objectsEqual && thisFirstNameSdx.equals(thatFirstNameSdx); 321 } 322 } 323 324 if(objectsEqual) { 325 String thisMiddleName = getMiddleName(); 326 String thatMiddleName = that.getMiddleName(); 327 328 if(thisMiddleName == null) { 329 objectsEqual = objectsEqual && (thatMiddleName == null); 330 } else { 331 objectsEqual = objectsEqual && thisMiddleName.equals(thatMiddleName); 332 } 333 } 334 335 if(objectsEqual) { 336 String thisMiddleNameSdx = getMiddleNameSdx(); 337 String thatMiddleNameSdx = that.getMiddleNameSdx(); 338 339 if(thisMiddleNameSdx == null) { 340 objectsEqual = objectsEqual && (thatMiddleNameSdx == null); 341 } else { 342 objectsEqual = objectsEqual && thisMiddleNameSdx.equals(thatMiddleNameSdx); 343 } 344 } 345 346 if(objectsEqual) { 347 String thisLastName = getLastName(); 348 String thatLastName = that.getLastName(); 349 350 if(thisLastName == null) { 351 objectsEqual = objectsEqual && (thatLastName == null); 352 } else { 353 objectsEqual = objectsEqual && thisLastName.equals(thatLastName); 354 } 355 } 356 357 if(objectsEqual) { 358 String thisLastNameSdx = getLastNameSdx(); 359 String thatLastNameSdx = that.getLastNameSdx(); 360 361 if(thisLastNameSdx == null) { 362 objectsEqual = objectsEqual && (thatLastNameSdx == null); 363 } else { 364 objectsEqual = objectsEqual && thisLastNameSdx.equals(thatLastNameSdx); 365 } 366 } 367 368 if(objectsEqual) { 369 NameSuffixPK thisNameSuffixPK = getNameSuffixPK(); 370 NameSuffixPK thatNameSuffixPK = that.getNameSuffixPK(); 371 372 if(thisNameSuffixPK == null) { 373 objectsEqual = objectsEqual && (thatNameSuffixPK == null); 374 } else { 375 objectsEqual = objectsEqual && thisNameSuffixPK.equals(thatNameSuffixPK); 376 } 377 } 378 379 if(objectsEqual) { 380 String thisName = getName(); 381 String thatName = that.getName(); 382 383 if(thisName == null) { 384 objectsEqual = objectsEqual && (thatName == null); 385 } else { 386 objectsEqual = objectsEqual && thisName.equals(thatName); 387 } 388 } 389 390 if(objectsEqual) { 391 PartyContactMechanismPK thisBillingPartyContactMechanismPK = getBillingPartyContactMechanismPK(); 392 PartyContactMechanismPK thatBillingPartyContactMechanismPK = that.getBillingPartyContactMechanismPK(); 393 394 if(thisBillingPartyContactMechanismPK == null) { 395 objectsEqual = objectsEqual && (thatBillingPartyContactMechanismPK == null); 396 } else { 397 objectsEqual = objectsEqual && thisBillingPartyContactMechanismPK.equals(thatBillingPartyContactMechanismPK); 398 } 399 } 400 401 if(objectsEqual) { 402 String thisIssuerName = getIssuerName(); 403 String thatIssuerName = that.getIssuerName(); 404 405 if(thisIssuerName == null) { 406 objectsEqual = objectsEqual && (thatIssuerName == null); 407 } else { 408 objectsEqual = objectsEqual && thisIssuerName.equals(thatIssuerName); 409 } 410 } 411 412 if(objectsEqual) { 413 PartyContactMechanismPK thisIssuerPartyContactMechanismPK = getIssuerPartyContactMechanismPK(); 414 PartyContactMechanismPK thatIssuerPartyContactMechanismPK = that.getIssuerPartyContactMechanismPK(); 415 416 if(thisIssuerPartyContactMechanismPK == null) { 417 objectsEqual = objectsEqual && (thatIssuerPartyContactMechanismPK == null); 418 } else { 419 objectsEqual = objectsEqual && thisIssuerPartyContactMechanismPK.equals(thatIssuerPartyContactMechanismPK); 420 } 421 } 422 423 if(objectsEqual) { 424 Long thisFromTime = getFromTime(); 425 Long thatFromTime = that.getFromTime(); 426 427 if(thisFromTime == null) { 428 objectsEqual = objectsEqual && (thatFromTime == null); 429 } else { 430 objectsEqual = objectsEqual && thisFromTime.equals(thatFromTime); 431 } 432 } 433 434 if(objectsEqual) { 435 Long thisThruTime = getThruTime(); 436 Long thatThruTime = that.getThruTime(); 437 438 if(thisThruTime == null) { 439 objectsEqual = objectsEqual && (thatThruTime == null); 440 } else { 441 objectsEqual = objectsEqual && thisThruTime.equals(thatThruTime); 442 } 443 } 444 445 return objectsEqual; 446 } else { 447 return false; 448 } 449 } 450 451 @Override 452 public boolean hasBeenModified() { 453 return partyPaymentMethodPKHasBeenModified || numberHasBeenModified || expirationMonthHasBeenModified || expirationYearHasBeenModified || personalTitlePKHasBeenModified || firstNameHasBeenModified || firstNameSdxHasBeenModified || middleNameHasBeenModified || middleNameSdxHasBeenModified || lastNameHasBeenModified || lastNameSdxHasBeenModified || nameSuffixPKHasBeenModified || nameHasBeenModified || billingPartyContactMechanismPKHasBeenModified || issuerNameHasBeenModified || issuerPartyContactMechanismPKHasBeenModified || fromTimeHasBeenModified || thruTimeHasBeenModified; 454 } 455 456 @Override 457 public void clearHasBeenModified() { 458 partyPaymentMethodPKHasBeenModified = false; 459 numberHasBeenModified = false; 460 expirationMonthHasBeenModified = false; 461 expirationYearHasBeenModified = false; 462 personalTitlePKHasBeenModified = false; 463 firstNameHasBeenModified = false; 464 firstNameSdxHasBeenModified = false; 465 middleNameHasBeenModified = false; 466 middleNameSdxHasBeenModified = false; 467 lastNameHasBeenModified = false; 468 lastNameSdxHasBeenModified = false; 469 nameSuffixPKHasBeenModified = false; 470 nameHasBeenModified = false; 471 billingPartyContactMechanismPKHasBeenModified = false; 472 issuerNameHasBeenModified = false; 473 issuerPartyContactMechanismPKHasBeenModified = false; 474 fromTimeHasBeenModified = false; 475 thruTimeHasBeenModified = false; 476 } 477 478 public PartyPaymentMethodPK getPartyPaymentMethodPK() { 479 return partyPaymentMethodPK; 480 } 481 482 public void setPartyPaymentMethodPK(PartyPaymentMethodPK partyPaymentMethodPK) 483 throws PersistenceNotNullException { 484 checkForNull(partyPaymentMethodPK); 485 486 boolean update = true; 487 488 if(this.partyPaymentMethodPK != null) { 489 if(this.partyPaymentMethodPK.equals(partyPaymentMethodPK)) { 490 update = false; 491 } 492 } else if(partyPaymentMethodPK == null) { 493 update = false; 494 } 495 496 if(update) { 497 this.partyPaymentMethodPK = partyPaymentMethodPK; 498 partyPaymentMethodPKHasBeenModified = true; 499 clearHashAndString(); 500 } 501 } 502 503 public boolean getPartyPaymentMethodPKHasBeenModified() { 504 return partyPaymentMethodPKHasBeenModified; 505 } 506 507 public String getNumber() { 508 return number; 509 } 510 511 public void setNumber(String number) { 512 boolean update = true; 513 514 if(this.number != null) { 515 if(this.number.equals(number)) { 516 update = false; 517 } 518 } else if(number == null) { 519 update = false; 520 } 521 522 if(update) { 523 this.number = number; 524 numberHasBeenModified = true; 525 clearHashAndString(); 526 } 527 } 528 529 public boolean getNumberHasBeenModified() { 530 return numberHasBeenModified; 531 } 532 533 public Integer getExpirationMonth() { 534 return expirationMonth; 535 } 536 537 public void setExpirationMonth(Integer expirationMonth) { 538 boolean update = true; 539 540 if(this.expirationMonth != null) { 541 if(this.expirationMonth.equals(expirationMonth)) { 542 update = false; 543 } 544 } else if(expirationMonth == null) { 545 update = false; 546 } 547 548 if(update) { 549 this.expirationMonth = expirationMonth; 550 expirationMonthHasBeenModified = true; 551 clearHashAndString(); 552 } 553 } 554 555 public boolean getExpirationMonthHasBeenModified() { 556 return expirationMonthHasBeenModified; 557 } 558 559 public Integer getExpirationYear() { 560 return expirationYear; 561 } 562 563 public void setExpirationYear(Integer expirationYear) { 564 boolean update = true; 565 566 if(this.expirationYear != null) { 567 if(this.expirationYear.equals(expirationYear)) { 568 update = false; 569 } 570 } else if(expirationYear == null) { 571 update = false; 572 } 573 574 if(update) { 575 this.expirationYear = expirationYear; 576 expirationYearHasBeenModified = true; 577 clearHashAndString(); 578 } 579 } 580 581 public boolean getExpirationYearHasBeenModified() { 582 return expirationYearHasBeenModified; 583 } 584 585 public PersonalTitlePK getPersonalTitlePK() { 586 return personalTitlePK; 587 } 588 589 public void setPersonalTitlePK(PersonalTitlePK personalTitlePK) { 590 boolean update = true; 591 592 if(this.personalTitlePK != null) { 593 if(this.personalTitlePK.equals(personalTitlePK)) { 594 update = false; 595 } 596 } else if(personalTitlePK == null) { 597 update = false; 598 } 599 600 if(update) { 601 this.personalTitlePK = personalTitlePK; 602 personalTitlePKHasBeenModified = true; 603 clearHashAndString(); 604 } 605 } 606 607 public boolean getPersonalTitlePKHasBeenModified() { 608 return personalTitlePKHasBeenModified; 609 } 610 611 public String getFirstName() { 612 return firstName; 613 } 614 615 public void setFirstName(String firstName) { 616 boolean update = true; 617 618 if(this.firstName != null) { 619 if(this.firstName.equals(firstName)) { 620 update = false; 621 } 622 } else if(firstName == null) { 623 update = false; 624 } 625 626 if(update) { 627 this.firstName = firstName; 628 firstNameHasBeenModified = true; 629 clearHashAndString(); 630 } 631 } 632 633 public boolean getFirstNameHasBeenModified() { 634 return firstNameHasBeenModified; 635 } 636 637 public String getFirstNameSdx() { 638 return firstNameSdx; 639 } 640 641 public void setFirstNameSdx(String firstNameSdx) { 642 boolean update = true; 643 644 if(this.firstNameSdx != null) { 645 if(this.firstNameSdx.equals(firstNameSdx)) { 646 update = false; 647 } 648 } else if(firstNameSdx == null) { 649 update = false; 650 } 651 652 if(update) { 653 this.firstNameSdx = firstNameSdx; 654 firstNameSdxHasBeenModified = true; 655 clearHashAndString(); 656 } 657 } 658 659 public boolean getFirstNameSdxHasBeenModified() { 660 return firstNameSdxHasBeenModified; 661 } 662 663 public String getMiddleName() { 664 return middleName; 665 } 666 667 public void setMiddleName(String middleName) { 668 boolean update = true; 669 670 if(this.middleName != null) { 671 if(this.middleName.equals(middleName)) { 672 update = false; 673 } 674 } else if(middleName == null) { 675 update = false; 676 } 677 678 if(update) { 679 this.middleName = middleName; 680 middleNameHasBeenModified = true; 681 clearHashAndString(); 682 } 683 } 684 685 public boolean getMiddleNameHasBeenModified() { 686 return middleNameHasBeenModified; 687 } 688 689 public String getMiddleNameSdx() { 690 return middleNameSdx; 691 } 692 693 public void setMiddleNameSdx(String middleNameSdx) { 694 boolean update = true; 695 696 if(this.middleNameSdx != null) { 697 if(this.middleNameSdx.equals(middleNameSdx)) { 698 update = false; 699 } 700 } else if(middleNameSdx == null) { 701 update = false; 702 } 703 704 if(update) { 705 this.middleNameSdx = middleNameSdx; 706 middleNameSdxHasBeenModified = true; 707 clearHashAndString(); 708 } 709 } 710 711 public boolean getMiddleNameSdxHasBeenModified() { 712 return middleNameSdxHasBeenModified; 713 } 714 715 public String getLastName() { 716 return lastName; 717 } 718 719 public void setLastName(String lastName) { 720 boolean update = true; 721 722 if(this.lastName != null) { 723 if(this.lastName.equals(lastName)) { 724 update = false; 725 } 726 } else if(lastName == null) { 727 update = false; 728 } 729 730 if(update) { 731 this.lastName = lastName; 732 lastNameHasBeenModified = true; 733 clearHashAndString(); 734 } 735 } 736 737 public boolean getLastNameHasBeenModified() { 738 return lastNameHasBeenModified; 739 } 740 741 public String getLastNameSdx() { 742 return lastNameSdx; 743 } 744 745 public void setLastNameSdx(String lastNameSdx) { 746 boolean update = true; 747 748 if(this.lastNameSdx != null) { 749 if(this.lastNameSdx.equals(lastNameSdx)) { 750 update = false; 751 } 752 } else if(lastNameSdx == null) { 753 update = false; 754 } 755 756 if(update) { 757 this.lastNameSdx = lastNameSdx; 758 lastNameSdxHasBeenModified = true; 759 clearHashAndString(); 760 } 761 } 762 763 public boolean getLastNameSdxHasBeenModified() { 764 return lastNameSdxHasBeenModified; 765 } 766 767 public NameSuffixPK getNameSuffixPK() { 768 return nameSuffixPK; 769 } 770 771 public void setNameSuffixPK(NameSuffixPK nameSuffixPK) { 772 boolean update = true; 773 774 if(this.nameSuffixPK != null) { 775 if(this.nameSuffixPK.equals(nameSuffixPK)) { 776 update = false; 777 } 778 } else if(nameSuffixPK == null) { 779 update = false; 780 } 781 782 if(update) { 783 this.nameSuffixPK = nameSuffixPK; 784 nameSuffixPKHasBeenModified = true; 785 clearHashAndString(); 786 } 787 } 788 789 public boolean getNameSuffixPKHasBeenModified() { 790 return nameSuffixPKHasBeenModified; 791 } 792 793 public String getName() { 794 return name; 795 } 796 797 public void setName(String name) { 798 boolean update = true; 799 800 if(this.name != null) { 801 if(this.name.equals(name)) { 802 update = false; 803 } 804 } else if(name == null) { 805 update = false; 806 } 807 808 if(update) { 809 this.name = name; 810 nameHasBeenModified = true; 811 clearHashAndString(); 812 } 813 } 814 815 public boolean getNameHasBeenModified() { 816 return nameHasBeenModified; 817 } 818 819 public PartyContactMechanismPK getBillingPartyContactMechanismPK() { 820 return billingPartyContactMechanismPK; 821 } 822 823 public void setBillingPartyContactMechanismPK(PartyContactMechanismPK billingPartyContactMechanismPK) { 824 boolean update = true; 825 826 if(this.billingPartyContactMechanismPK != null) { 827 if(this.billingPartyContactMechanismPK.equals(billingPartyContactMechanismPK)) { 828 update = false; 829 } 830 } else if(billingPartyContactMechanismPK == null) { 831 update = false; 832 } 833 834 if(update) { 835 this.billingPartyContactMechanismPK = billingPartyContactMechanismPK; 836 billingPartyContactMechanismPKHasBeenModified = true; 837 clearHashAndString(); 838 } 839 } 840 841 public boolean getBillingPartyContactMechanismPKHasBeenModified() { 842 return billingPartyContactMechanismPKHasBeenModified; 843 } 844 845 public String getIssuerName() { 846 return issuerName; 847 } 848 849 public void setIssuerName(String issuerName) { 850 boolean update = true; 851 852 if(this.issuerName != null) { 853 if(this.issuerName.equals(issuerName)) { 854 update = false; 855 } 856 } else if(issuerName == null) { 857 update = false; 858 } 859 860 if(update) { 861 this.issuerName = issuerName; 862 issuerNameHasBeenModified = true; 863 clearHashAndString(); 864 } 865 } 866 867 public boolean getIssuerNameHasBeenModified() { 868 return issuerNameHasBeenModified; 869 } 870 871 public PartyContactMechanismPK getIssuerPartyContactMechanismPK() { 872 return issuerPartyContactMechanismPK; 873 } 874 875 public void setIssuerPartyContactMechanismPK(PartyContactMechanismPK issuerPartyContactMechanismPK) { 876 boolean update = true; 877 878 if(this.issuerPartyContactMechanismPK != null) { 879 if(this.issuerPartyContactMechanismPK.equals(issuerPartyContactMechanismPK)) { 880 update = false; 881 } 882 } else if(issuerPartyContactMechanismPK == null) { 883 update = false; 884 } 885 886 if(update) { 887 this.issuerPartyContactMechanismPK = issuerPartyContactMechanismPK; 888 issuerPartyContactMechanismPKHasBeenModified = true; 889 clearHashAndString(); 890 } 891 } 892 893 public boolean getIssuerPartyContactMechanismPKHasBeenModified() { 894 return issuerPartyContactMechanismPKHasBeenModified; 895 } 896 897 public Long getFromTime() { 898 return fromTime; 899 } 900 901 public void setFromTime(Long fromTime) 902 throws PersistenceNotNullException { 903 checkForNull(fromTime); 904 905 boolean update = true; 906 907 if(this.fromTime != null) { 908 if(this.fromTime.equals(fromTime)) { 909 update = false; 910 } 911 } else if(fromTime == null) { 912 update = false; 913 } 914 915 if(update) { 916 this.fromTime = fromTime; 917 fromTimeHasBeenModified = true; 918 clearHashAndString(); 919 } 920 } 921 922 public boolean getFromTimeHasBeenModified() { 923 return fromTimeHasBeenModified; 924 } 925 926 public Long getThruTime() { 927 return thruTime; 928 } 929 930 public void setThruTime(Long thruTime) 931 throws PersistenceNotNullException { 932 checkForNull(thruTime); 933 934 boolean update = true; 935 936 if(this.thruTime != null) { 937 if(this.thruTime.equals(thruTime)) { 938 update = false; 939 } 940 } else if(thruTime == null) { 941 update = false; 942 } 943 944 if(update) { 945 this.thruTime = thruTime; 946 thruTimeHasBeenModified = true; 947 clearHashAndString(); 948 } 949 } 950 951 public boolean getThruTimeHasBeenModified() { 952 return thruTimeHasBeenModified; 953 } 954 955}