001// -------------------------------------------------------------------------------- 002// Copyright 2002-2026 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 * ItemDetail.java 021 */ 022 023package com.echothree.model.data.item.server.entity; 024 025import com.echothree.model.data.item.common.pk.ItemDetailPK; 026 027import com.echothree.model.data.item.common.pk.ItemPK; 028import com.echothree.model.data.item.common.pk.ItemTypePK; 029import com.echothree.model.data.item.common.pk.ItemUseTypePK; 030import com.echothree.model.data.item.common.pk.ItemCategoryPK; 031import com.echothree.model.data.accounting.common.pk.ItemAccountingCategoryPK; 032import com.echothree.model.data.vendor.common.pk.ItemPurchasingCategoryPK; 033import com.echothree.model.data.party.common.pk.PartyPK; 034import com.echothree.model.data.item.common.pk.ItemDeliveryTypePK; 035import com.echothree.model.data.item.common.pk.ItemInventoryTypePK; 036import com.echothree.model.data.sequence.common.pk.SequencePK; 037import com.echothree.model.data.uom.common.pk.UnitOfMeasureKindPK; 038import com.echothree.model.data.item.common.pk.ItemPriceTypePK; 039import com.echothree.model.data.cancellationpolicy.common.pk.CancellationPolicyPK; 040import com.echothree.model.data.returnpolicy.common.pk.ReturnPolicyPK; 041import com.echothree.model.data.style.common.pk.StylePathPK; 042 043import com.echothree.model.data.item.server.entity.Item; 044import com.echothree.model.data.item.server.entity.ItemType; 045import com.echothree.model.data.item.server.entity.ItemUseType; 046import com.echothree.model.data.item.server.entity.ItemCategory; 047import com.echothree.model.data.accounting.server.entity.ItemAccountingCategory; 048import com.echothree.model.data.vendor.server.entity.ItemPurchasingCategory; 049import com.echothree.model.data.party.server.entity.Party; 050import com.echothree.model.data.item.server.entity.ItemDeliveryType; 051import com.echothree.model.data.item.server.entity.ItemInventoryType; 052import com.echothree.model.data.sequence.server.entity.Sequence; 053import com.echothree.model.data.uom.server.entity.UnitOfMeasureKind; 054import com.echothree.model.data.item.server.entity.ItemPriceType; 055import com.echothree.model.data.cancellationpolicy.server.entity.CancellationPolicy; 056import com.echothree.model.data.returnpolicy.server.entity.ReturnPolicy; 057import com.echothree.model.data.style.server.entity.StylePath; 058 059import com.echothree.model.data.item.server.factory.ItemFactory; 060import com.echothree.model.data.item.server.factory.ItemTypeFactory; 061import com.echothree.model.data.item.server.factory.ItemUseTypeFactory; 062import com.echothree.model.data.item.server.factory.ItemCategoryFactory; 063import com.echothree.model.data.accounting.server.factory.ItemAccountingCategoryFactory; 064import com.echothree.model.data.vendor.server.factory.ItemPurchasingCategoryFactory; 065import com.echothree.model.data.party.server.factory.PartyFactory; 066import com.echothree.model.data.item.server.factory.ItemDeliveryTypeFactory; 067import com.echothree.model.data.item.server.factory.ItemInventoryTypeFactory; 068import com.echothree.model.data.sequence.server.factory.SequenceFactory; 069import com.echothree.model.data.uom.server.factory.UnitOfMeasureKindFactory; 070import com.echothree.model.data.item.server.factory.ItemPriceTypeFactory; 071import com.echothree.model.data.cancellationpolicy.server.factory.CancellationPolicyFactory; 072import com.echothree.model.data.returnpolicy.server.factory.ReturnPolicyFactory; 073import com.echothree.model.data.style.server.factory.StylePathFactory; 074 075import com.echothree.model.data.item.common.pk.ItemDetailPK; 076 077import com.echothree.model.data.item.server.value.ItemDetailValue; 078 079import com.echothree.model.data.item.server.factory.ItemDetailFactory; 080 081import com.echothree.util.common.exception.PersistenceException; 082import com.echothree.util.common.exception.PersistenceDatabaseException; 083import com.echothree.util.common.exception.PersistenceNotNullException; 084import com.echothree.util.common.exception.PersistenceReadOnlyException; 085 086import com.echothree.util.common.persistence.BasePK; 087 088import com.echothree.util.common.persistence.type.ByteArray; 089 090import com.echothree.util.server.persistence.BaseEntity; 091import com.echothree.util.server.persistence.EntityPermission; 092import com.echothree.util.server.persistence.Session; 093import com.echothree.util.server.persistence.ThreadSession; 094 095import java.io.Serializable; 096 097import javax.annotation.Nonnull; 098import javax.annotation.Nullable; 099 100public class ItemDetail 101 extends BaseEntity 102 implements Serializable { 103 104 private ItemDetailPK _pk; 105 private ItemDetailValue _value; 106 107 /** Creates a new instance of ItemDetail */ 108 public ItemDetail() 109 throws PersistenceException { 110 super(); 111 } 112 113 /** Creates a new instance of ItemDetail */ 114 public ItemDetail(ItemDetailValue value, EntityPermission entityPermission) { 115 super(entityPermission); 116 117 _value = value; 118 _pk = value.getPrimaryKey(); 119 } 120 121 @Override 122 @Nonnull 123 public ItemDetailFactory getBaseFactoryInstance() { 124 return ItemDetailFactory.getInstance(); 125 } 126 127 @Override 128 public boolean hasBeenModified() { 129 return _value.hasBeenModified(); 130 } 131 132 @Override 133 public int hashCode() { 134 return _pk.hashCode(); 135 } 136 137 @Override 138 @Nonnull 139 public String toString() { 140 return _pk.toString(); 141 } 142 143 @Override 144 public boolean equals(Object other) { 145 if(this == other) 146 return true; 147 148 if(other instanceof ItemDetail that) { 149 ItemDetailValue thatValue = that.getItemDetailValue(); 150 return _value.equals(thatValue); 151 } else { 152 return false; 153 } 154 } 155 156 @Override 157 public void store() 158 throws PersistenceDatabaseException { 159 getBaseFactoryInstance().store(this); 160 } 161 162 @Override 163 public void remove() 164 throws PersistenceDatabaseException { 165 getBaseFactoryInstance().remove(this); 166 } 167 168 @Nonnull 169 public ItemDetailValue getItemDetailValue() { 170 return _value; 171 } 172 173 public void setItemDetailValue(@Nonnull ItemDetailValue value) 174 throws PersistenceReadOnlyException { 175 checkReadWrite(); 176 _value = value; 177 } 178 179 @Override 180 @Nonnull 181 public ItemDetailPK getPrimaryKey() { 182 return _pk; 183 } 184 185 @Nonnull 186 public ItemPK getItemPK() { 187 return _value.getItemPK(); 188 } 189 190 @Nonnull 191 public Item getItem(EntityPermission entityPermission) { 192 return ItemFactory.getInstance().getEntityFromPK(entityPermission, getItemPK()); 193 } 194 195 @Nonnull 196 public Item getItem() { 197 return getItem(EntityPermission.READ_ONLY); 198 } 199 200 @Nonnull 201 public Item getItemForUpdate() { 202 return getItem(EntityPermission.READ_WRITE); 203 } 204 205 public void setItemPK(@Nonnull ItemPK itemPK) 206 throws PersistenceNotNullException, PersistenceReadOnlyException { 207 checkReadWrite(); 208 _value.setItemPK(itemPK); 209 } 210 211 public void setItem(@Nonnull Item entity) { 212 setItemPK(entity == null ? null : entity.getPrimaryKey()); 213 } 214 215 public boolean getItemPKHasBeenModified() { 216 return _value.getItemPKHasBeenModified(); 217 } 218 219 @Nonnull 220 public String getItemName() { 221 return _value.getItemName(); 222 } 223 224 public void setItemName(@Nonnull String itemName) 225 throws PersistenceNotNullException, PersistenceReadOnlyException { 226 checkReadWrite(); 227 _value.setItemName(itemName); 228 } 229 230 public boolean getItemNameHasBeenModified() { 231 return _value.getItemNameHasBeenModified(); 232 } 233 234 @Nonnull 235 public ItemTypePK getItemTypePK() { 236 return _value.getItemTypePK(); 237 } 238 239 @Nonnull 240 public ItemType getItemType(EntityPermission entityPermission) { 241 return ItemTypeFactory.getInstance().getEntityFromPK(entityPermission, getItemTypePK()); 242 } 243 244 @Nonnull 245 public ItemType getItemType() { 246 return getItemType(EntityPermission.READ_ONLY); 247 } 248 249 @Nonnull 250 public ItemType getItemTypeForUpdate() { 251 return getItemType(EntityPermission.READ_WRITE); 252 } 253 254 public void setItemTypePK(@Nonnull ItemTypePK itemTypePK) 255 throws PersistenceNotNullException, PersistenceReadOnlyException { 256 checkReadWrite(); 257 _value.setItemTypePK(itemTypePK); 258 } 259 260 public void setItemType(@Nonnull ItemType entity) { 261 setItemTypePK(entity == null ? null : entity.getPrimaryKey()); 262 } 263 264 public boolean getItemTypePKHasBeenModified() { 265 return _value.getItemTypePKHasBeenModified(); 266 } 267 268 @Nonnull 269 public ItemUseTypePK getItemUseTypePK() { 270 return _value.getItemUseTypePK(); 271 } 272 273 @Nonnull 274 public ItemUseType getItemUseType(EntityPermission entityPermission) { 275 return ItemUseTypeFactory.getInstance().getEntityFromPK(entityPermission, getItemUseTypePK()); 276 } 277 278 @Nonnull 279 public ItemUseType getItemUseType() { 280 return getItemUseType(EntityPermission.READ_ONLY); 281 } 282 283 @Nonnull 284 public ItemUseType getItemUseTypeForUpdate() { 285 return getItemUseType(EntityPermission.READ_WRITE); 286 } 287 288 public void setItemUseTypePK(@Nonnull ItemUseTypePK itemUseTypePK) 289 throws PersistenceNotNullException, PersistenceReadOnlyException { 290 checkReadWrite(); 291 _value.setItemUseTypePK(itemUseTypePK); 292 } 293 294 public void setItemUseType(@Nonnull ItemUseType entity) { 295 setItemUseTypePK(entity == null ? null : entity.getPrimaryKey()); 296 } 297 298 public boolean getItemUseTypePKHasBeenModified() { 299 return _value.getItemUseTypePKHasBeenModified(); 300 } 301 302 @Nonnull 303 public ItemCategoryPK getItemCategoryPK() { 304 return _value.getItemCategoryPK(); 305 } 306 307 @Nonnull 308 public ItemCategory getItemCategory(EntityPermission entityPermission) { 309 return ItemCategoryFactory.getInstance().getEntityFromPK(entityPermission, getItemCategoryPK()); 310 } 311 312 @Nonnull 313 public ItemCategory getItemCategory() { 314 return getItemCategory(EntityPermission.READ_ONLY); 315 } 316 317 @Nonnull 318 public ItemCategory getItemCategoryForUpdate() { 319 return getItemCategory(EntityPermission.READ_WRITE); 320 } 321 322 public void setItemCategoryPK(@Nonnull ItemCategoryPK itemCategoryPK) 323 throws PersistenceNotNullException, PersistenceReadOnlyException { 324 checkReadWrite(); 325 _value.setItemCategoryPK(itemCategoryPK); 326 } 327 328 public void setItemCategory(@Nonnull ItemCategory entity) { 329 setItemCategoryPK(entity == null ? null : entity.getPrimaryKey()); 330 } 331 332 public boolean getItemCategoryPKHasBeenModified() { 333 return _value.getItemCategoryPKHasBeenModified(); 334 } 335 336 @Nullable 337 public ItemAccountingCategoryPK getItemAccountingCategoryPK() { 338 return _value.getItemAccountingCategoryPK(); 339 } 340 341 @Nullable 342 public ItemAccountingCategory getItemAccountingCategory(EntityPermission entityPermission) { 343 ItemAccountingCategoryPK pk = getItemAccountingCategoryPK(); 344 ItemAccountingCategory entity = pk == null? null: ItemAccountingCategoryFactory.getInstance().getEntityFromPK(entityPermission, pk); 345 346 return entity; 347 } 348 349 @Nullable 350 public ItemAccountingCategory getItemAccountingCategory() { 351 return getItemAccountingCategory(EntityPermission.READ_ONLY); 352 } 353 354 @Nullable 355 public ItemAccountingCategory getItemAccountingCategoryForUpdate() { 356 return getItemAccountingCategory(EntityPermission.READ_WRITE); 357 } 358 359 public void setItemAccountingCategoryPK(@Nullable ItemAccountingCategoryPK itemAccountingCategoryPK) 360 throws PersistenceNotNullException, PersistenceReadOnlyException { 361 checkReadWrite(); 362 _value.setItemAccountingCategoryPK(itemAccountingCategoryPK); 363 } 364 365 public void setItemAccountingCategory(@Nullable ItemAccountingCategory entity) { 366 setItemAccountingCategoryPK(entity == null ? null : entity.getPrimaryKey()); 367 } 368 369 public boolean getItemAccountingCategoryPKHasBeenModified() { 370 return _value.getItemAccountingCategoryPKHasBeenModified(); 371 } 372 373 @Nullable 374 public ItemPurchasingCategoryPK getItemPurchasingCategoryPK() { 375 return _value.getItemPurchasingCategoryPK(); 376 } 377 378 @Nullable 379 public ItemPurchasingCategory getItemPurchasingCategory(EntityPermission entityPermission) { 380 ItemPurchasingCategoryPK pk = getItemPurchasingCategoryPK(); 381 ItemPurchasingCategory entity = pk == null? null: ItemPurchasingCategoryFactory.getInstance().getEntityFromPK(entityPermission, pk); 382 383 return entity; 384 } 385 386 @Nullable 387 public ItemPurchasingCategory getItemPurchasingCategory() { 388 return getItemPurchasingCategory(EntityPermission.READ_ONLY); 389 } 390 391 @Nullable 392 public ItemPurchasingCategory getItemPurchasingCategoryForUpdate() { 393 return getItemPurchasingCategory(EntityPermission.READ_WRITE); 394 } 395 396 public void setItemPurchasingCategoryPK(@Nullable ItemPurchasingCategoryPK itemPurchasingCategoryPK) 397 throws PersistenceNotNullException, PersistenceReadOnlyException { 398 checkReadWrite(); 399 _value.setItemPurchasingCategoryPK(itemPurchasingCategoryPK); 400 } 401 402 public void setItemPurchasingCategory(@Nullable ItemPurchasingCategory entity) { 403 setItemPurchasingCategoryPK(entity == null ? null : entity.getPrimaryKey()); 404 } 405 406 public boolean getItemPurchasingCategoryPKHasBeenModified() { 407 return _value.getItemPurchasingCategoryPKHasBeenModified(); 408 } 409 410 @Nonnull 411 public PartyPK getCompanyPartyPK() { 412 return _value.getCompanyPartyPK(); 413 } 414 415 @Nonnull 416 public Party getCompanyParty(EntityPermission entityPermission) { 417 return PartyFactory.getInstance().getEntityFromPK(entityPermission, getCompanyPartyPK()); 418 } 419 420 @Nonnull 421 public Party getCompanyParty() { 422 return getCompanyParty(EntityPermission.READ_ONLY); 423 } 424 425 @Nonnull 426 public Party getCompanyPartyForUpdate() { 427 return getCompanyParty(EntityPermission.READ_WRITE); 428 } 429 430 public void setCompanyPartyPK(@Nonnull PartyPK companyPartyPK) 431 throws PersistenceNotNullException, PersistenceReadOnlyException { 432 checkReadWrite(); 433 _value.setCompanyPartyPK(companyPartyPK); 434 } 435 436 public void setCompanyParty(@Nonnull Party entity) { 437 setCompanyPartyPK(entity == null ? null : entity.getPrimaryKey()); 438 } 439 440 public boolean getCompanyPartyPKHasBeenModified() { 441 return _value.getCompanyPartyPKHasBeenModified(); 442 } 443 444 @Nullable 445 public ItemDeliveryTypePK getItemDeliveryTypePK() { 446 return _value.getItemDeliveryTypePK(); 447 } 448 449 @Nullable 450 public ItemDeliveryType getItemDeliveryType(EntityPermission entityPermission) { 451 ItemDeliveryTypePK pk = getItemDeliveryTypePK(); 452 ItemDeliveryType entity = pk == null? null: ItemDeliveryTypeFactory.getInstance().getEntityFromPK(entityPermission, pk); 453 454 return entity; 455 } 456 457 @Nullable 458 public ItemDeliveryType getItemDeliveryType() { 459 return getItemDeliveryType(EntityPermission.READ_ONLY); 460 } 461 462 @Nullable 463 public ItemDeliveryType getItemDeliveryTypeForUpdate() { 464 return getItemDeliveryType(EntityPermission.READ_WRITE); 465 } 466 467 public void setItemDeliveryTypePK(@Nullable ItemDeliveryTypePK itemDeliveryTypePK) 468 throws PersistenceNotNullException, PersistenceReadOnlyException { 469 checkReadWrite(); 470 _value.setItemDeliveryTypePK(itemDeliveryTypePK); 471 } 472 473 public void setItemDeliveryType(@Nullable ItemDeliveryType entity) { 474 setItemDeliveryTypePK(entity == null ? null : entity.getPrimaryKey()); 475 } 476 477 public boolean getItemDeliveryTypePKHasBeenModified() { 478 return _value.getItemDeliveryTypePKHasBeenModified(); 479 } 480 481 @Nullable 482 public ItemInventoryTypePK getItemInventoryTypePK() { 483 return _value.getItemInventoryTypePK(); 484 } 485 486 @Nullable 487 public ItemInventoryType getItemInventoryType(EntityPermission entityPermission) { 488 ItemInventoryTypePK pk = getItemInventoryTypePK(); 489 ItemInventoryType entity = pk == null? null: ItemInventoryTypeFactory.getInstance().getEntityFromPK(entityPermission, pk); 490 491 return entity; 492 } 493 494 @Nullable 495 public ItemInventoryType getItemInventoryType() { 496 return getItemInventoryType(EntityPermission.READ_ONLY); 497 } 498 499 @Nullable 500 public ItemInventoryType getItemInventoryTypeForUpdate() { 501 return getItemInventoryType(EntityPermission.READ_WRITE); 502 } 503 504 public void setItemInventoryTypePK(@Nullable ItemInventoryTypePK itemInventoryTypePK) 505 throws PersistenceNotNullException, PersistenceReadOnlyException { 506 checkReadWrite(); 507 _value.setItemInventoryTypePK(itemInventoryTypePK); 508 } 509 510 public void setItemInventoryType(@Nullable ItemInventoryType entity) { 511 setItemInventoryTypePK(entity == null ? null : entity.getPrimaryKey()); 512 } 513 514 public boolean getItemInventoryTypePKHasBeenModified() { 515 return _value.getItemInventoryTypePKHasBeenModified(); 516 } 517 518 @Nullable 519 public Boolean getInventorySerialized() { 520 return _value.getInventorySerialized(); 521 } 522 523 public void setInventorySerialized(@Nullable Boolean inventorySerialized) 524 throws PersistenceNotNullException, PersistenceReadOnlyException { 525 checkReadWrite(); 526 _value.setInventorySerialized(inventorySerialized); 527 } 528 529 public boolean getInventorySerializedHasBeenModified() { 530 return _value.getInventorySerializedHasBeenModified(); 531 } 532 533 @Nullable 534 public SequencePK getSerialNumberSequencePK() { 535 return _value.getSerialNumberSequencePK(); 536 } 537 538 @Nullable 539 public Sequence getSerialNumberSequence(EntityPermission entityPermission) { 540 SequencePK pk = getSerialNumberSequencePK(); 541 Sequence entity = pk == null? null: SequenceFactory.getInstance().getEntityFromPK(entityPermission, pk); 542 543 return entity; 544 } 545 546 @Nullable 547 public Sequence getSerialNumberSequence() { 548 return getSerialNumberSequence(EntityPermission.READ_ONLY); 549 } 550 551 @Nullable 552 public Sequence getSerialNumberSequenceForUpdate() { 553 return getSerialNumberSequence(EntityPermission.READ_WRITE); 554 } 555 556 public void setSerialNumberSequencePK(@Nullable SequencePK serialNumberSequencePK) 557 throws PersistenceNotNullException, PersistenceReadOnlyException { 558 checkReadWrite(); 559 _value.setSerialNumberSequencePK(serialNumberSequencePK); 560 } 561 562 public void setSerialNumberSequence(@Nullable Sequence entity) { 563 setSerialNumberSequencePK(entity == null ? null : entity.getPrimaryKey()); 564 } 565 566 public boolean getSerialNumberSequencePKHasBeenModified() { 567 return _value.getSerialNumberSequencePKHasBeenModified(); 568 } 569 570 @Nonnull 571 public Boolean getShippingChargeExempt() { 572 return _value.getShippingChargeExempt(); 573 } 574 575 public void setShippingChargeExempt(@Nonnull Boolean shippingChargeExempt) 576 throws PersistenceNotNullException, PersistenceReadOnlyException { 577 checkReadWrite(); 578 _value.setShippingChargeExempt(shippingChargeExempt); 579 } 580 581 public boolean getShippingChargeExemptHasBeenModified() { 582 return _value.getShippingChargeExemptHasBeenModified(); 583 } 584 585 @Nonnull 586 public Long getShippingStartTime() { 587 return _value.getShippingStartTime(); 588 } 589 590 public void setShippingStartTime(@Nonnull Long shippingStartTime) 591 throws PersistenceNotNullException, PersistenceReadOnlyException { 592 checkReadWrite(); 593 _value.setShippingStartTime(shippingStartTime); 594 } 595 596 public boolean getShippingStartTimeHasBeenModified() { 597 return _value.getShippingStartTimeHasBeenModified(); 598 } 599 600 @Nullable 601 public Long getShippingEndTime() { 602 return _value.getShippingEndTime(); 603 } 604 605 public void setShippingEndTime(@Nullable Long shippingEndTime) 606 throws PersistenceNotNullException, PersistenceReadOnlyException { 607 checkReadWrite(); 608 _value.setShippingEndTime(shippingEndTime); 609 } 610 611 public boolean getShippingEndTimeHasBeenModified() { 612 return _value.getShippingEndTimeHasBeenModified(); 613 } 614 615 @Nonnull 616 public Long getSalesOrderStartTime() { 617 return _value.getSalesOrderStartTime(); 618 } 619 620 public void setSalesOrderStartTime(@Nonnull Long salesOrderStartTime) 621 throws PersistenceNotNullException, PersistenceReadOnlyException { 622 checkReadWrite(); 623 _value.setSalesOrderStartTime(salesOrderStartTime); 624 } 625 626 public boolean getSalesOrderStartTimeHasBeenModified() { 627 return _value.getSalesOrderStartTimeHasBeenModified(); 628 } 629 630 @Nullable 631 public Long getSalesOrderEndTime() { 632 return _value.getSalesOrderEndTime(); 633 } 634 635 public void setSalesOrderEndTime(@Nullable Long salesOrderEndTime) 636 throws PersistenceNotNullException, PersistenceReadOnlyException { 637 checkReadWrite(); 638 _value.setSalesOrderEndTime(salesOrderEndTime); 639 } 640 641 public boolean getSalesOrderEndTimeHasBeenModified() { 642 return _value.getSalesOrderEndTimeHasBeenModified(); 643 } 644 645 @Nullable 646 public Long getPurchaseOrderStartTime() { 647 return _value.getPurchaseOrderStartTime(); 648 } 649 650 public void setPurchaseOrderStartTime(@Nullable Long purchaseOrderStartTime) 651 throws PersistenceNotNullException, PersistenceReadOnlyException { 652 checkReadWrite(); 653 _value.setPurchaseOrderStartTime(purchaseOrderStartTime); 654 } 655 656 public boolean getPurchaseOrderStartTimeHasBeenModified() { 657 return _value.getPurchaseOrderStartTimeHasBeenModified(); 658 } 659 660 @Nullable 661 public Long getPurchaseOrderEndTime() { 662 return _value.getPurchaseOrderEndTime(); 663 } 664 665 public void setPurchaseOrderEndTime(@Nullable Long purchaseOrderEndTime) 666 throws PersistenceNotNullException, PersistenceReadOnlyException { 667 checkReadWrite(); 668 _value.setPurchaseOrderEndTime(purchaseOrderEndTime); 669 } 670 671 public boolean getPurchaseOrderEndTimeHasBeenModified() { 672 return _value.getPurchaseOrderEndTimeHasBeenModified(); 673 } 674 675 @Nonnull 676 public Boolean getAllowClubDiscounts() { 677 return _value.getAllowClubDiscounts(); 678 } 679 680 public void setAllowClubDiscounts(@Nonnull Boolean allowClubDiscounts) 681 throws PersistenceNotNullException, PersistenceReadOnlyException { 682 checkReadWrite(); 683 _value.setAllowClubDiscounts(allowClubDiscounts); 684 } 685 686 public boolean getAllowClubDiscountsHasBeenModified() { 687 return _value.getAllowClubDiscountsHasBeenModified(); 688 } 689 690 @Nonnull 691 public Boolean getAllowCouponDiscounts() { 692 return _value.getAllowCouponDiscounts(); 693 } 694 695 public void setAllowCouponDiscounts(@Nonnull Boolean allowCouponDiscounts) 696 throws PersistenceNotNullException, PersistenceReadOnlyException { 697 checkReadWrite(); 698 _value.setAllowCouponDiscounts(allowCouponDiscounts); 699 } 700 701 public boolean getAllowCouponDiscountsHasBeenModified() { 702 return _value.getAllowCouponDiscountsHasBeenModified(); 703 } 704 705 @Nonnull 706 public Boolean getAllowAssociatePayments() { 707 return _value.getAllowAssociatePayments(); 708 } 709 710 public void setAllowAssociatePayments(@Nonnull Boolean allowAssociatePayments) 711 throws PersistenceNotNullException, PersistenceReadOnlyException { 712 checkReadWrite(); 713 _value.setAllowAssociatePayments(allowAssociatePayments); 714 } 715 716 public boolean getAllowAssociatePaymentsHasBeenModified() { 717 return _value.getAllowAssociatePaymentsHasBeenModified(); 718 } 719 720 @Nonnull 721 public UnitOfMeasureKindPK getUnitOfMeasureKindPK() { 722 return _value.getUnitOfMeasureKindPK(); 723 } 724 725 @Nonnull 726 public UnitOfMeasureKind getUnitOfMeasureKind(EntityPermission entityPermission) { 727 return UnitOfMeasureKindFactory.getInstance().getEntityFromPK(entityPermission, getUnitOfMeasureKindPK()); 728 } 729 730 @Nonnull 731 public UnitOfMeasureKind getUnitOfMeasureKind() { 732 return getUnitOfMeasureKind(EntityPermission.READ_ONLY); 733 } 734 735 @Nonnull 736 public UnitOfMeasureKind getUnitOfMeasureKindForUpdate() { 737 return getUnitOfMeasureKind(EntityPermission.READ_WRITE); 738 } 739 740 public void setUnitOfMeasureKindPK(@Nonnull UnitOfMeasureKindPK unitOfMeasureKindPK) 741 throws PersistenceNotNullException, PersistenceReadOnlyException { 742 checkReadWrite(); 743 _value.setUnitOfMeasureKindPK(unitOfMeasureKindPK); 744 } 745 746 public void setUnitOfMeasureKind(@Nonnull UnitOfMeasureKind entity) { 747 setUnitOfMeasureKindPK(entity == null ? null : entity.getPrimaryKey()); 748 } 749 750 public boolean getUnitOfMeasureKindPKHasBeenModified() { 751 return _value.getUnitOfMeasureKindPKHasBeenModified(); 752 } 753 754 @Nonnull 755 public ItemPriceTypePK getItemPriceTypePK() { 756 return _value.getItemPriceTypePK(); 757 } 758 759 @Nonnull 760 public ItemPriceType getItemPriceType(EntityPermission entityPermission) { 761 return ItemPriceTypeFactory.getInstance().getEntityFromPK(entityPermission, getItemPriceTypePK()); 762 } 763 764 @Nonnull 765 public ItemPriceType getItemPriceType() { 766 return getItemPriceType(EntityPermission.READ_ONLY); 767 } 768 769 @Nonnull 770 public ItemPriceType getItemPriceTypeForUpdate() { 771 return getItemPriceType(EntityPermission.READ_WRITE); 772 } 773 774 public void setItemPriceTypePK(@Nonnull ItemPriceTypePK itemPriceTypePK) 775 throws PersistenceNotNullException, PersistenceReadOnlyException { 776 checkReadWrite(); 777 _value.setItemPriceTypePK(itemPriceTypePK); 778 } 779 780 public void setItemPriceType(@Nonnull ItemPriceType entity) { 781 setItemPriceTypePK(entity == null ? null : entity.getPrimaryKey()); 782 } 783 784 public boolean getItemPriceTypePKHasBeenModified() { 785 return _value.getItemPriceTypePKHasBeenModified(); 786 } 787 788 @Nullable 789 public CancellationPolicyPK getCancellationPolicyPK() { 790 return _value.getCancellationPolicyPK(); 791 } 792 793 @Nullable 794 public CancellationPolicy getCancellationPolicy(EntityPermission entityPermission) { 795 CancellationPolicyPK pk = getCancellationPolicyPK(); 796 CancellationPolicy entity = pk == null? null: CancellationPolicyFactory.getInstance().getEntityFromPK(entityPermission, pk); 797 798 return entity; 799 } 800 801 @Nullable 802 public CancellationPolicy getCancellationPolicy() { 803 return getCancellationPolicy(EntityPermission.READ_ONLY); 804 } 805 806 @Nullable 807 public CancellationPolicy getCancellationPolicyForUpdate() { 808 return getCancellationPolicy(EntityPermission.READ_WRITE); 809 } 810 811 public void setCancellationPolicyPK(@Nullable CancellationPolicyPK cancellationPolicyPK) 812 throws PersistenceNotNullException, PersistenceReadOnlyException { 813 checkReadWrite(); 814 _value.setCancellationPolicyPK(cancellationPolicyPK); 815 } 816 817 public void setCancellationPolicy(@Nullable CancellationPolicy entity) { 818 setCancellationPolicyPK(entity == null ? null : entity.getPrimaryKey()); 819 } 820 821 public boolean getCancellationPolicyPKHasBeenModified() { 822 return _value.getCancellationPolicyPKHasBeenModified(); 823 } 824 825 @Nullable 826 public ReturnPolicyPK getReturnPolicyPK() { 827 return _value.getReturnPolicyPK(); 828 } 829 830 @Nullable 831 public ReturnPolicy getReturnPolicy(EntityPermission entityPermission) { 832 ReturnPolicyPK pk = getReturnPolicyPK(); 833 ReturnPolicy entity = pk == null? null: ReturnPolicyFactory.getInstance().getEntityFromPK(entityPermission, pk); 834 835 return entity; 836 } 837 838 @Nullable 839 public ReturnPolicy getReturnPolicy() { 840 return getReturnPolicy(EntityPermission.READ_ONLY); 841 } 842 843 @Nullable 844 public ReturnPolicy getReturnPolicyForUpdate() { 845 return getReturnPolicy(EntityPermission.READ_WRITE); 846 } 847 848 public void setReturnPolicyPK(@Nullable ReturnPolicyPK returnPolicyPK) 849 throws PersistenceNotNullException, PersistenceReadOnlyException { 850 checkReadWrite(); 851 _value.setReturnPolicyPK(returnPolicyPK); 852 } 853 854 public void setReturnPolicy(@Nullable ReturnPolicy entity) { 855 setReturnPolicyPK(entity == null ? null : entity.getPrimaryKey()); 856 } 857 858 public boolean getReturnPolicyPKHasBeenModified() { 859 return _value.getReturnPolicyPKHasBeenModified(); 860 } 861 862 @Nullable 863 public StylePathPK getStylePathPK() { 864 return _value.getStylePathPK(); 865 } 866 867 @Nullable 868 public StylePath getStylePath(EntityPermission entityPermission) { 869 StylePathPK pk = getStylePathPK(); 870 StylePath entity = pk == null? null: StylePathFactory.getInstance().getEntityFromPK(entityPermission, pk); 871 872 return entity; 873 } 874 875 @Nullable 876 public StylePath getStylePath() { 877 return getStylePath(EntityPermission.READ_ONLY); 878 } 879 880 @Nullable 881 public StylePath getStylePathForUpdate() { 882 return getStylePath(EntityPermission.READ_WRITE); 883 } 884 885 public void setStylePathPK(@Nullable StylePathPK stylePathPK) 886 throws PersistenceNotNullException, PersistenceReadOnlyException { 887 checkReadWrite(); 888 _value.setStylePathPK(stylePathPK); 889 } 890 891 public void setStylePath(@Nullable StylePath entity) { 892 setStylePathPK(entity == null ? null : entity.getPrimaryKey()); 893 } 894 895 public boolean getStylePathPKHasBeenModified() { 896 return _value.getStylePathPKHasBeenModified(); 897 } 898 899 @Nonnull 900 public Long getFromTime() { 901 return _value.getFromTime(); 902 } 903 904 public void setFromTime(@Nonnull Long fromTime) 905 throws PersistenceNotNullException, PersistenceReadOnlyException { 906 checkReadWrite(); 907 _value.setFromTime(fromTime); 908 } 909 910 public boolean getFromTimeHasBeenModified() { 911 return _value.getFromTimeHasBeenModified(); 912 } 913 914 @Nonnull 915 public Long getThruTime() { 916 return _value.getThruTime(); 917 } 918 919 public void setThruTime(@Nonnull Long thruTime) 920 throws PersistenceNotNullException, PersistenceReadOnlyException { 921 checkReadWrite(); 922 _value.setThruTime(thruTime); 923 } 924 925 public boolean getThruTimeHasBeenModified() { 926 return _value.getThruTimeHasBeenModified(); 927 } 928 929}