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 * ItemAccountingCategoryDetailValue.java 021 */ 022 023package com.echothree.model.data.accounting.server.value; 024 025import com.echothree.model.data.accounting.common.pk.ItemAccountingCategoryDetailPK; 026 027import com.echothree.model.data.accounting.server.factory.ItemAccountingCategoryDetailFactory; 028 029import com.echothree.model.data.accounting.common.pk.ItemAccountingCategoryPK; 030import com.echothree.model.data.accounting.common.pk.GlAccountPK; 031 032import com.echothree.util.common.exception.PersistenceCloneException; 033import com.echothree.util.common.exception.PersistenceNotNullException; 034 035import com.echothree.util.server.persistence.BaseValue; 036 037import java.io.Serializable; 038 039public class ItemAccountingCategoryDetailValue 040 extends BaseValue<ItemAccountingCategoryDetailPK> 041 implements Cloneable, Serializable { 042 043 private ItemAccountingCategoryPK itemAccountingCategoryPK; 044 private boolean itemAccountingCategoryPKHasBeenModified = false; 045 private String itemAccountingCategoryName; 046 private boolean itemAccountingCategoryNameHasBeenModified = false; 047 private ItemAccountingCategoryPK parentItemAccountingCategoryPK; 048 private boolean parentItemAccountingCategoryPKHasBeenModified = false; 049 private GlAccountPK inventoryGlAccountPK; 050 private boolean inventoryGlAccountPKHasBeenModified = false; 051 private GlAccountPK salesGlAccountPK; 052 private boolean salesGlAccountPKHasBeenModified = false; 053 private GlAccountPK returnsGlAccountPK; 054 private boolean returnsGlAccountPKHasBeenModified = false; 055 private GlAccountPK cogsGlAccountPK; 056 private boolean cogsGlAccountPKHasBeenModified = false; 057 private GlAccountPK returnsCogsGlAccountPK; 058 private boolean returnsCogsGlAccountPKHasBeenModified = false; 059 private Boolean isDefault; 060 private boolean isDefaultHasBeenModified = false; 061 private Integer sortOrder; 062 private boolean sortOrderHasBeenModified = false; 063 private Long fromTime; 064 private boolean fromTimeHasBeenModified = false; 065 private Long thruTime; 066 private boolean thruTimeHasBeenModified = false; 067 068 private transient Integer _hashCode = null; 069 private transient String _stringValue = null; 070 071 private void constructFields(ItemAccountingCategoryPK itemAccountingCategoryPK, String itemAccountingCategoryName, ItemAccountingCategoryPK parentItemAccountingCategoryPK, GlAccountPK inventoryGlAccountPK, GlAccountPK salesGlAccountPK, GlAccountPK returnsGlAccountPK, GlAccountPK cogsGlAccountPK, GlAccountPK returnsCogsGlAccountPK, Boolean isDefault, Integer sortOrder, Long fromTime, Long thruTime) 072 throws PersistenceNotNullException { 073 checkForNull(itemAccountingCategoryPK); 074 this.itemAccountingCategoryPK = itemAccountingCategoryPK; 075 checkForNull(itemAccountingCategoryName); 076 this.itemAccountingCategoryName = itemAccountingCategoryName; 077 this.parentItemAccountingCategoryPK = parentItemAccountingCategoryPK; 078 this.inventoryGlAccountPK = inventoryGlAccountPK; 079 this.salesGlAccountPK = salesGlAccountPK; 080 this.returnsGlAccountPK = returnsGlAccountPK; 081 this.cogsGlAccountPK = cogsGlAccountPK; 082 this.returnsCogsGlAccountPK = returnsCogsGlAccountPK; 083 checkForNull(isDefault); 084 this.isDefault = isDefault; 085 checkForNull(sortOrder); 086 this.sortOrder = sortOrder; 087 checkForNull(fromTime); 088 this.fromTime = fromTime; 089 checkForNull(thruTime); 090 this.thruTime = thruTime; 091 } 092 093 /** Creates a new instance of ItemAccountingCategoryDetailValue */ 094 public ItemAccountingCategoryDetailValue(ItemAccountingCategoryDetailPK itemAccountingCategoryDetailPK, ItemAccountingCategoryPK itemAccountingCategoryPK, String itemAccountingCategoryName, ItemAccountingCategoryPK parentItemAccountingCategoryPK, GlAccountPK inventoryGlAccountPK, GlAccountPK salesGlAccountPK, GlAccountPK returnsGlAccountPK, GlAccountPK cogsGlAccountPK, GlAccountPK returnsCogsGlAccountPK, Boolean isDefault, Integer sortOrder, Long fromTime, Long thruTime) 095 throws PersistenceNotNullException { 096 super(itemAccountingCategoryDetailPK); 097 constructFields(itemAccountingCategoryPK, itemAccountingCategoryName, parentItemAccountingCategoryPK, inventoryGlAccountPK, salesGlAccountPK, returnsGlAccountPK, cogsGlAccountPK, returnsCogsGlAccountPK, isDefault, sortOrder, fromTime, thruTime); 098 } 099 100 /** Creates a new instance of ItemAccountingCategoryDetailValue */ 101 public ItemAccountingCategoryDetailValue(ItemAccountingCategoryPK itemAccountingCategoryPK, String itemAccountingCategoryName, ItemAccountingCategoryPK parentItemAccountingCategoryPK, GlAccountPK inventoryGlAccountPK, GlAccountPK salesGlAccountPK, GlAccountPK returnsGlAccountPK, GlAccountPK cogsGlAccountPK, GlAccountPK returnsCogsGlAccountPK, Boolean isDefault, Integer sortOrder, Long fromTime, Long thruTime) 102 throws PersistenceNotNullException { 103 super(); 104 constructFields(itemAccountingCategoryPK, itemAccountingCategoryName, parentItemAccountingCategoryPK, inventoryGlAccountPK, salesGlAccountPK, returnsGlAccountPK, cogsGlAccountPK, returnsCogsGlAccountPK, isDefault, sortOrder, fromTime, thruTime); 105 } 106 107 @Override 108 public ItemAccountingCategoryDetailFactory getBaseFactoryInstance() { 109 return ItemAccountingCategoryDetailFactory.getInstance(); 110 } 111 112 @Override 113 public ItemAccountingCategoryDetailValue clone() { 114 Object result; 115 116 try { 117 result = super.clone(); 118 } catch (CloneNotSupportedException cnse) { 119 // This shouldn't happen, fail when it does. 120 throw new PersistenceCloneException(cnse); 121 } 122 123 return (ItemAccountingCategoryDetailValue)result; 124 } 125 126 @Override 127 public ItemAccountingCategoryDetailPK getPrimaryKey() { 128 if(_primaryKey == null) { 129 _primaryKey = new ItemAccountingCategoryDetailPK(entityId); 130 } 131 132 return _primaryKey; 133 } 134 135 private void clearHashAndString() { 136 _hashCode = null; 137 _stringValue = null; 138 } 139 140 @Override 141 public int hashCode() { 142 if(_hashCode == null) { 143 int hashCode = 17; 144 145 hashCode = 37 * hashCode + ((entityId != null) ? entityId.hashCode() : 0); 146 147 hashCode = 37 * hashCode + ((itemAccountingCategoryPK != null) ? itemAccountingCategoryPK.hashCode() : 0); 148 hashCode = 37 * hashCode + ((itemAccountingCategoryName != null) ? itemAccountingCategoryName.hashCode() : 0); 149 hashCode = 37 * hashCode + ((parentItemAccountingCategoryPK != null) ? parentItemAccountingCategoryPK.hashCode() : 0); 150 hashCode = 37 * hashCode + ((inventoryGlAccountPK != null) ? inventoryGlAccountPK.hashCode() : 0); 151 hashCode = 37 * hashCode + ((salesGlAccountPK != null) ? salesGlAccountPK.hashCode() : 0); 152 hashCode = 37 * hashCode + ((returnsGlAccountPK != null) ? returnsGlAccountPK.hashCode() : 0); 153 hashCode = 37 * hashCode + ((cogsGlAccountPK != null) ? cogsGlAccountPK.hashCode() : 0); 154 hashCode = 37 * hashCode + ((returnsCogsGlAccountPK != null) ? returnsCogsGlAccountPK.hashCode() : 0); 155 hashCode = 37 * hashCode + ((isDefault != null) ? isDefault.hashCode() : 0); 156 hashCode = 37 * hashCode + ((sortOrder != null) ? sortOrder.hashCode() : 0); 157 hashCode = 37 * hashCode + ((fromTime != null) ? fromTime.hashCode() : 0); 158 hashCode = 37 * hashCode + ((thruTime != null) ? thruTime.hashCode() : 0); 159 160 _hashCode = hashCode; 161 } 162 163 return _hashCode; 164 } 165 166 @Override 167 public String toString() { 168 if(_stringValue == null) { 169 _stringValue = "{" + 170 "entityId=" + getEntityId() + 171 ", itemAccountingCategoryPK=" + getItemAccountingCategoryPK() + 172 ", itemAccountingCategoryName=" + getItemAccountingCategoryName() + 173 ", parentItemAccountingCategoryPK=" + getParentItemAccountingCategoryPK() + 174 ", inventoryGlAccountPK=" + getInventoryGlAccountPK() + 175 ", salesGlAccountPK=" + getSalesGlAccountPK() + 176 ", returnsGlAccountPK=" + getReturnsGlAccountPK() + 177 ", cogsGlAccountPK=" + getCogsGlAccountPK() + 178 ", returnsCogsGlAccountPK=" + getReturnsCogsGlAccountPK() + 179 ", isDefault=" + getIsDefault() + 180 ", sortOrder=" + getSortOrder() + 181 ", fromTime=" + getFromTime() + 182 ", thruTime=" + getThruTime() + 183 "}"; 184 } 185 return _stringValue; 186 } 187 188 @Override 189 public boolean equals(Object other) { 190 if(this == other) 191 return true; 192 193 if(!hasIdentity()) 194 return false; 195 196 if(other instanceof ItemAccountingCategoryDetailValue that) { 197 if(!that.hasIdentity()) 198 return false; 199 200 Long thisEntityId = getEntityId(); 201 Long thatEntityId = that.getEntityId(); 202 203 boolean objectsEqual = thisEntityId.equals(thatEntityId); 204 if(objectsEqual) 205 objectsEqual = isIdentical(that); 206 207 return objectsEqual; 208 } else { 209 return false; 210 } 211 } 212 213 public boolean isIdentical(Object other) { 214 if(other instanceof ItemAccountingCategoryDetailValue that) { 215 boolean objectsEqual = true; 216 217 218 if(objectsEqual) { 219 ItemAccountingCategoryPK thisItemAccountingCategoryPK = getItemAccountingCategoryPK(); 220 ItemAccountingCategoryPK thatItemAccountingCategoryPK = that.getItemAccountingCategoryPK(); 221 222 if(thisItemAccountingCategoryPK == null) { 223 objectsEqual = objectsEqual && (thatItemAccountingCategoryPK == null); 224 } else { 225 objectsEqual = objectsEqual && thisItemAccountingCategoryPK.equals(thatItemAccountingCategoryPK); 226 } 227 } 228 229 if(objectsEqual) { 230 String thisItemAccountingCategoryName = getItemAccountingCategoryName(); 231 String thatItemAccountingCategoryName = that.getItemAccountingCategoryName(); 232 233 if(thisItemAccountingCategoryName == null) { 234 objectsEqual = objectsEqual && (thatItemAccountingCategoryName == null); 235 } else { 236 objectsEqual = objectsEqual && thisItemAccountingCategoryName.equals(thatItemAccountingCategoryName); 237 } 238 } 239 240 if(objectsEqual) { 241 ItemAccountingCategoryPK thisParentItemAccountingCategoryPK = getParentItemAccountingCategoryPK(); 242 ItemAccountingCategoryPK thatParentItemAccountingCategoryPK = that.getParentItemAccountingCategoryPK(); 243 244 if(thisParentItemAccountingCategoryPK == null) { 245 objectsEqual = objectsEqual && (thatParentItemAccountingCategoryPK == null); 246 } else { 247 objectsEqual = objectsEqual && thisParentItemAccountingCategoryPK.equals(thatParentItemAccountingCategoryPK); 248 } 249 } 250 251 if(objectsEqual) { 252 GlAccountPK thisInventoryGlAccountPK = getInventoryGlAccountPK(); 253 GlAccountPK thatInventoryGlAccountPK = that.getInventoryGlAccountPK(); 254 255 if(thisInventoryGlAccountPK == null) { 256 objectsEqual = objectsEqual && (thatInventoryGlAccountPK == null); 257 } else { 258 objectsEqual = objectsEqual && thisInventoryGlAccountPK.equals(thatInventoryGlAccountPK); 259 } 260 } 261 262 if(objectsEqual) { 263 GlAccountPK thisSalesGlAccountPK = getSalesGlAccountPK(); 264 GlAccountPK thatSalesGlAccountPK = that.getSalesGlAccountPK(); 265 266 if(thisSalesGlAccountPK == null) { 267 objectsEqual = objectsEqual && (thatSalesGlAccountPK == null); 268 } else { 269 objectsEqual = objectsEqual && thisSalesGlAccountPK.equals(thatSalesGlAccountPK); 270 } 271 } 272 273 if(objectsEqual) { 274 GlAccountPK thisReturnsGlAccountPK = getReturnsGlAccountPK(); 275 GlAccountPK thatReturnsGlAccountPK = that.getReturnsGlAccountPK(); 276 277 if(thisReturnsGlAccountPK == null) { 278 objectsEqual = objectsEqual && (thatReturnsGlAccountPK == null); 279 } else { 280 objectsEqual = objectsEqual && thisReturnsGlAccountPK.equals(thatReturnsGlAccountPK); 281 } 282 } 283 284 if(objectsEqual) { 285 GlAccountPK thisCogsGlAccountPK = getCogsGlAccountPK(); 286 GlAccountPK thatCogsGlAccountPK = that.getCogsGlAccountPK(); 287 288 if(thisCogsGlAccountPK == null) { 289 objectsEqual = objectsEqual && (thatCogsGlAccountPK == null); 290 } else { 291 objectsEqual = objectsEqual && thisCogsGlAccountPK.equals(thatCogsGlAccountPK); 292 } 293 } 294 295 if(objectsEqual) { 296 GlAccountPK thisReturnsCogsGlAccountPK = getReturnsCogsGlAccountPK(); 297 GlAccountPK thatReturnsCogsGlAccountPK = that.getReturnsCogsGlAccountPK(); 298 299 if(thisReturnsCogsGlAccountPK == null) { 300 objectsEqual = objectsEqual && (thatReturnsCogsGlAccountPK == null); 301 } else { 302 objectsEqual = objectsEqual && thisReturnsCogsGlAccountPK.equals(thatReturnsCogsGlAccountPK); 303 } 304 } 305 306 if(objectsEqual) { 307 Boolean thisIsDefault = getIsDefault(); 308 Boolean thatIsDefault = that.getIsDefault(); 309 310 if(thisIsDefault == null) { 311 objectsEqual = objectsEqual && (thatIsDefault == null); 312 } else { 313 objectsEqual = objectsEqual && thisIsDefault.equals(thatIsDefault); 314 } 315 } 316 317 if(objectsEqual) { 318 Integer thisSortOrder = getSortOrder(); 319 Integer thatSortOrder = that.getSortOrder(); 320 321 if(thisSortOrder == null) { 322 objectsEqual = objectsEqual && (thatSortOrder == null); 323 } else { 324 objectsEqual = objectsEqual && thisSortOrder.equals(thatSortOrder); 325 } 326 } 327 328 if(objectsEqual) { 329 Long thisFromTime = getFromTime(); 330 Long thatFromTime = that.getFromTime(); 331 332 if(thisFromTime == null) { 333 objectsEqual = objectsEqual && (thatFromTime == null); 334 } else { 335 objectsEqual = objectsEqual && thisFromTime.equals(thatFromTime); 336 } 337 } 338 339 if(objectsEqual) { 340 Long thisThruTime = getThruTime(); 341 Long thatThruTime = that.getThruTime(); 342 343 if(thisThruTime == null) { 344 objectsEqual = objectsEqual && (thatThruTime == null); 345 } else { 346 objectsEqual = objectsEqual && thisThruTime.equals(thatThruTime); 347 } 348 } 349 350 return objectsEqual; 351 } else { 352 return false; 353 } 354 } 355 356 @Override 357 public boolean hasBeenModified() { 358 return itemAccountingCategoryPKHasBeenModified || itemAccountingCategoryNameHasBeenModified || parentItemAccountingCategoryPKHasBeenModified || inventoryGlAccountPKHasBeenModified || salesGlAccountPKHasBeenModified || returnsGlAccountPKHasBeenModified || cogsGlAccountPKHasBeenModified || returnsCogsGlAccountPKHasBeenModified || isDefaultHasBeenModified || sortOrderHasBeenModified || fromTimeHasBeenModified || thruTimeHasBeenModified; 359 } 360 361 @Override 362 public void clearHasBeenModified() { 363 itemAccountingCategoryPKHasBeenModified = false; 364 itemAccountingCategoryNameHasBeenModified = false; 365 parentItemAccountingCategoryPKHasBeenModified = false; 366 inventoryGlAccountPKHasBeenModified = false; 367 salesGlAccountPKHasBeenModified = false; 368 returnsGlAccountPKHasBeenModified = false; 369 cogsGlAccountPKHasBeenModified = false; 370 returnsCogsGlAccountPKHasBeenModified = false; 371 isDefaultHasBeenModified = false; 372 sortOrderHasBeenModified = false; 373 fromTimeHasBeenModified = false; 374 thruTimeHasBeenModified = false; 375 } 376 377 public ItemAccountingCategoryPK getItemAccountingCategoryPK() { 378 return itemAccountingCategoryPK; 379 } 380 381 public void setItemAccountingCategoryPK(ItemAccountingCategoryPK itemAccountingCategoryPK) 382 throws PersistenceNotNullException { 383 checkForNull(itemAccountingCategoryPK); 384 385 boolean update = true; 386 387 if(this.itemAccountingCategoryPK != null) { 388 if(this.itemAccountingCategoryPK.equals(itemAccountingCategoryPK)) { 389 update = false; 390 } 391 } else if(itemAccountingCategoryPK == null) { 392 update = false; 393 } 394 395 if(update) { 396 this.itemAccountingCategoryPK = itemAccountingCategoryPK; 397 itemAccountingCategoryPKHasBeenModified = true; 398 clearHashAndString(); 399 } 400 } 401 402 public boolean getItemAccountingCategoryPKHasBeenModified() { 403 return itemAccountingCategoryPKHasBeenModified; 404 } 405 406 public String getItemAccountingCategoryName() { 407 return itemAccountingCategoryName; 408 } 409 410 public void setItemAccountingCategoryName(String itemAccountingCategoryName) 411 throws PersistenceNotNullException { 412 checkForNull(itemAccountingCategoryName); 413 414 boolean update = true; 415 416 if(this.itemAccountingCategoryName != null) { 417 if(this.itemAccountingCategoryName.equals(itemAccountingCategoryName)) { 418 update = false; 419 } 420 } else if(itemAccountingCategoryName == null) { 421 update = false; 422 } 423 424 if(update) { 425 this.itemAccountingCategoryName = itemAccountingCategoryName; 426 itemAccountingCategoryNameHasBeenModified = true; 427 clearHashAndString(); 428 } 429 } 430 431 public boolean getItemAccountingCategoryNameHasBeenModified() { 432 return itemAccountingCategoryNameHasBeenModified; 433 } 434 435 public ItemAccountingCategoryPK getParentItemAccountingCategoryPK() { 436 return parentItemAccountingCategoryPK; 437 } 438 439 public void setParentItemAccountingCategoryPK(ItemAccountingCategoryPK parentItemAccountingCategoryPK) { 440 boolean update = true; 441 442 if(this.parentItemAccountingCategoryPK != null) { 443 if(this.parentItemAccountingCategoryPK.equals(parentItemAccountingCategoryPK)) { 444 update = false; 445 } 446 } else if(parentItemAccountingCategoryPK == null) { 447 update = false; 448 } 449 450 if(update) { 451 this.parentItemAccountingCategoryPK = parentItemAccountingCategoryPK; 452 parentItemAccountingCategoryPKHasBeenModified = true; 453 clearHashAndString(); 454 } 455 } 456 457 public boolean getParentItemAccountingCategoryPKHasBeenModified() { 458 return parentItemAccountingCategoryPKHasBeenModified; 459 } 460 461 public GlAccountPK getInventoryGlAccountPK() { 462 return inventoryGlAccountPK; 463 } 464 465 public void setInventoryGlAccountPK(GlAccountPK inventoryGlAccountPK) { 466 boolean update = true; 467 468 if(this.inventoryGlAccountPK != null) { 469 if(this.inventoryGlAccountPK.equals(inventoryGlAccountPK)) { 470 update = false; 471 } 472 } else if(inventoryGlAccountPK == null) { 473 update = false; 474 } 475 476 if(update) { 477 this.inventoryGlAccountPK = inventoryGlAccountPK; 478 inventoryGlAccountPKHasBeenModified = true; 479 clearHashAndString(); 480 } 481 } 482 483 public boolean getInventoryGlAccountPKHasBeenModified() { 484 return inventoryGlAccountPKHasBeenModified; 485 } 486 487 public GlAccountPK getSalesGlAccountPK() { 488 return salesGlAccountPK; 489 } 490 491 public void setSalesGlAccountPK(GlAccountPK salesGlAccountPK) { 492 boolean update = true; 493 494 if(this.salesGlAccountPK != null) { 495 if(this.salesGlAccountPK.equals(salesGlAccountPK)) { 496 update = false; 497 } 498 } else if(salesGlAccountPK == null) { 499 update = false; 500 } 501 502 if(update) { 503 this.salesGlAccountPK = salesGlAccountPK; 504 salesGlAccountPKHasBeenModified = true; 505 clearHashAndString(); 506 } 507 } 508 509 public boolean getSalesGlAccountPKHasBeenModified() { 510 return salesGlAccountPKHasBeenModified; 511 } 512 513 public GlAccountPK getReturnsGlAccountPK() { 514 return returnsGlAccountPK; 515 } 516 517 public void setReturnsGlAccountPK(GlAccountPK returnsGlAccountPK) { 518 boolean update = true; 519 520 if(this.returnsGlAccountPK != null) { 521 if(this.returnsGlAccountPK.equals(returnsGlAccountPK)) { 522 update = false; 523 } 524 } else if(returnsGlAccountPK == null) { 525 update = false; 526 } 527 528 if(update) { 529 this.returnsGlAccountPK = returnsGlAccountPK; 530 returnsGlAccountPKHasBeenModified = true; 531 clearHashAndString(); 532 } 533 } 534 535 public boolean getReturnsGlAccountPKHasBeenModified() { 536 return returnsGlAccountPKHasBeenModified; 537 } 538 539 public GlAccountPK getCogsGlAccountPK() { 540 return cogsGlAccountPK; 541 } 542 543 public void setCogsGlAccountPK(GlAccountPK cogsGlAccountPK) { 544 boolean update = true; 545 546 if(this.cogsGlAccountPK != null) { 547 if(this.cogsGlAccountPK.equals(cogsGlAccountPK)) { 548 update = false; 549 } 550 } else if(cogsGlAccountPK == null) { 551 update = false; 552 } 553 554 if(update) { 555 this.cogsGlAccountPK = cogsGlAccountPK; 556 cogsGlAccountPKHasBeenModified = true; 557 clearHashAndString(); 558 } 559 } 560 561 public boolean getCogsGlAccountPKHasBeenModified() { 562 return cogsGlAccountPKHasBeenModified; 563 } 564 565 public GlAccountPK getReturnsCogsGlAccountPK() { 566 return returnsCogsGlAccountPK; 567 } 568 569 public void setReturnsCogsGlAccountPK(GlAccountPK returnsCogsGlAccountPK) { 570 boolean update = true; 571 572 if(this.returnsCogsGlAccountPK != null) { 573 if(this.returnsCogsGlAccountPK.equals(returnsCogsGlAccountPK)) { 574 update = false; 575 } 576 } else if(returnsCogsGlAccountPK == null) { 577 update = false; 578 } 579 580 if(update) { 581 this.returnsCogsGlAccountPK = returnsCogsGlAccountPK; 582 returnsCogsGlAccountPKHasBeenModified = true; 583 clearHashAndString(); 584 } 585 } 586 587 public boolean getReturnsCogsGlAccountPKHasBeenModified() { 588 return returnsCogsGlAccountPKHasBeenModified; 589 } 590 591 public Boolean getIsDefault() { 592 return isDefault; 593 } 594 595 public void setIsDefault(Boolean isDefault) 596 throws PersistenceNotNullException { 597 checkForNull(isDefault); 598 599 boolean update = true; 600 601 if(this.isDefault != null) { 602 if(this.isDefault.equals(isDefault)) { 603 update = false; 604 } 605 } else if(isDefault == null) { 606 update = false; 607 } 608 609 if(update) { 610 this.isDefault = isDefault; 611 isDefaultHasBeenModified = true; 612 clearHashAndString(); 613 } 614 } 615 616 public boolean getIsDefaultHasBeenModified() { 617 return isDefaultHasBeenModified; 618 } 619 620 public Integer getSortOrder() { 621 return sortOrder; 622 } 623 624 public void setSortOrder(Integer sortOrder) 625 throws PersistenceNotNullException { 626 checkForNull(sortOrder); 627 628 boolean update = true; 629 630 if(this.sortOrder != null) { 631 if(this.sortOrder.equals(sortOrder)) { 632 update = false; 633 } 634 } else if(sortOrder == null) { 635 update = false; 636 } 637 638 if(update) { 639 this.sortOrder = sortOrder; 640 sortOrderHasBeenModified = true; 641 clearHashAndString(); 642 } 643 } 644 645 public boolean getSortOrderHasBeenModified() { 646 return sortOrderHasBeenModified; 647 } 648 649 public Long getFromTime() { 650 return fromTime; 651 } 652 653 public void setFromTime(Long fromTime) 654 throws PersistenceNotNullException { 655 checkForNull(fromTime); 656 657 boolean update = true; 658 659 if(this.fromTime != null) { 660 if(this.fromTime.equals(fromTime)) { 661 update = false; 662 } 663 } else if(fromTime == null) { 664 update = false; 665 } 666 667 if(update) { 668 this.fromTime = fromTime; 669 fromTimeHasBeenModified = true; 670 clearHashAndString(); 671 } 672 } 673 674 public boolean getFromTimeHasBeenModified() { 675 return fromTimeHasBeenModified; 676 } 677 678 public Long getThruTime() { 679 return thruTime; 680 } 681 682 public void setThruTime(Long thruTime) 683 throws PersistenceNotNullException { 684 checkForNull(thruTime); 685 686 boolean update = true; 687 688 if(this.thruTime != null) { 689 if(this.thruTime.equals(thruTime)) { 690 update = false; 691 } 692 } else if(thruTime == null) { 693 update = false; 694 } 695 696 if(update) { 697 this.thruTime = thruTime; 698 thruTimeHasBeenModified = true; 699 clearHashAndString(); 700 } 701 } 702 703 public boolean getThruTimeHasBeenModified() { 704 return thruTimeHasBeenModified; 705 } 706 707}