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