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 * 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(Session session) 153 throws PersistenceDatabaseException { 154 getBaseFactoryInstance().store(session, this); 155 } 156 157 @Override 158 public void remove(Session session) 159 throws PersistenceDatabaseException { 160 getBaseFactoryInstance().remove(session, this); 161 } 162 163 @Override 164 public void remove() 165 throws PersistenceDatabaseException { 166 getBaseFactoryInstance().remove(ThreadSession.currentSession(), this); 167 } 168 169 public ItemDetailValue getItemDetailValue() { 170 return _value; 171 } 172 173 public void setItemDetailValue(ItemDetailValue value) 174 throws PersistenceReadOnlyException { 175 checkReadWrite(); 176 _value = value; 177 } 178 179 @Override 180 public ItemDetailPK getPrimaryKey() { 181 return _pk; 182 } 183 184 public ItemPK getItemPK() { 185 return _value.getItemPK(); 186 } 187 188 public Item getItem(Session session, EntityPermission entityPermission) { 189 return ItemFactory.getInstance().getEntityFromPK(session, entityPermission, getItemPK()); 190 } 191 192 public Item getItem(EntityPermission entityPermission) { 193 return getItem(ThreadSession.currentSession(), entityPermission); 194 } 195 196 public Item getItem(Session session) { 197 return getItem(session, EntityPermission.READ_ONLY); 198 } 199 200 public Item getItem() { 201 return getItem(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 202 } 203 204 public Item getItemForUpdate(Session session) { 205 return getItem(session, EntityPermission.READ_WRITE); 206 } 207 208 public Item getItemForUpdate() { 209 return getItem(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 210 } 211 212 public void setItemPK(ItemPK itemPK) 213 throws PersistenceNotNullException, PersistenceReadOnlyException { 214 checkReadWrite(); 215 _value.setItemPK(itemPK); 216 } 217 218 public void setItem(Item entity) { 219 setItemPK(entity == null? null: entity.getPrimaryKey()); 220 } 221 222 public boolean getItemPKHasBeenModified() { 223 return _value.getItemPKHasBeenModified(); 224 } 225 226 public String getItemName() { 227 return _value.getItemName(); 228 } 229 230 public void setItemName(String itemName) 231 throws PersistenceNotNullException, PersistenceReadOnlyException { 232 checkReadWrite(); 233 _value.setItemName(itemName); 234 } 235 236 public boolean getItemNameHasBeenModified() { 237 return _value.getItemNameHasBeenModified(); 238 } 239 240 public ItemTypePK getItemTypePK() { 241 return _value.getItemTypePK(); 242 } 243 244 public ItemType getItemType(Session session, EntityPermission entityPermission) { 245 return ItemTypeFactory.getInstance().getEntityFromPK(session, entityPermission, getItemTypePK()); 246 } 247 248 public ItemType getItemType(EntityPermission entityPermission) { 249 return getItemType(ThreadSession.currentSession(), entityPermission); 250 } 251 252 public ItemType getItemType(Session session) { 253 return getItemType(session, EntityPermission.READ_ONLY); 254 } 255 256 public ItemType getItemType() { 257 return getItemType(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 258 } 259 260 public ItemType getItemTypeForUpdate(Session session) { 261 return getItemType(session, EntityPermission.READ_WRITE); 262 } 263 264 public ItemType getItemTypeForUpdate() { 265 return getItemType(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 266 } 267 268 public void setItemTypePK(ItemTypePK itemTypePK) 269 throws PersistenceNotNullException, PersistenceReadOnlyException { 270 checkReadWrite(); 271 _value.setItemTypePK(itemTypePK); 272 } 273 274 public void setItemType(ItemType entity) { 275 setItemTypePK(entity == null? null: entity.getPrimaryKey()); 276 } 277 278 public boolean getItemTypePKHasBeenModified() { 279 return _value.getItemTypePKHasBeenModified(); 280 } 281 282 public ItemUseTypePK getItemUseTypePK() { 283 return _value.getItemUseTypePK(); 284 } 285 286 public ItemUseType getItemUseType(Session session, EntityPermission entityPermission) { 287 return ItemUseTypeFactory.getInstance().getEntityFromPK(session, entityPermission, getItemUseTypePK()); 288 } 289 290 public ItemUseType getItemUseType(EntityPermission entityPermission) { 291 return getItemUseType(ThreadSession.currentSession(), entityPermission); 292 } 293 294 public ItemUseType getItemUseType(Session session) { 295 return getItemUseType(session, EntityPermission.READ_ONLY); 296 } 297 298 public ItemUseType getItemUseType() { 299 return getItemUseType(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 300 } 301 302 public ItemUseType getItemUseTypeForUpdate(Session session) { 303 return getItemUseType(session, EntityPermission.READ_WRITE); 304 } 305 306 public ItemUseType getItemUseTypeForUpdate() { 307 return getItemUseType(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 308 } 309 310 public void setItemUseTypePK(ItemUseTypePK itemUseTypePK) 311 throws PersistenceNotNullException, PersistenceReadOnlyException { 312 checkReadWrite(); 313 _value.setItemUseTypePK(itemUseTypePK); 314 } 315 316 public void setItemUseType(ItemUseType entity) { 317 setItemUseTypePK(entity == null? null: entity.getPrimaryKey()); 318 } 319 320 public boolean getItemUseTypePKHasBeenModified() { 321 return _value.getItemUseTypePKHasBeenModified(); 322 } 323 324 public ItemCategoryPK getItemCategoryPK() { 325 return _value.getItemCategoryPK(); 326 } 327 328 public ItemCategory getItemCategory(Session session, EntityPermission entityPermission) { 329 return ItemCategoryFactory.getInstance().getEntityFromPK(session, entityPermission, getItemCategoryPK()); 330 } 331 332 public ItemCategory getItemCategory(EntityPermission entityPermission) { 333 return getItemCategory(ThreadSession.currentSession(), entityPermission); 334 } 335 336 public ItemCategory getItemCategory(Session session) { 337 return getItemCategory(session, EntityPermission.READ_ONLY); 338 } 339 340 public ItemCategory getItemCategory() { 341 return getItemCategory(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 342 } 343 344 public ItemCategory getItemCategoryForUpdate(Session session) { 345 return getItemCategory(session, EntityPermission.READ_WRITE); 346 } 347 348 public ItemCategory getItemCategoryForUpdate() { 349 return getItemCategory(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 350 } 351 352 public void setItemCategoryPK(ItemCategoryPK itemCategoryPK) 353 throws PersistenceNotNullException, PersistenceReadOnlyException { 354 checkReadWrite(); 355 _value.setItemCategoryPK(itemCategoryPK); 356 } 357 358 public void setItemCategory(ItemCategory entity) { 359 setItemCategoryPK(entity == null? null: entity.getPrimaryKey()); 360 } 361 362 public boolean getItemCategoryPKHasBeenModified() { 363 return _value.getItemCategoryPKHasBeenModified(); 364 } 365 366 public ItemAccountingCategoryPK getItemAccountingCategoryPK() { 367 return _value.getItemAccountingCategoryPK(); 368 } 369 370 public ItemAccountingCategory getItemAccountingCategory(Session session, EntityPermission entityPermission) { 371 ItemAccountingCategoryPK pk = getItemAccountingCategoryPK(); 372 ItemAccountingCategory entity = pk == null? null: ItemAccountingCategoryFactory.getInstance().getEntityFromPK(session, entityPermission, pk); 373 374 return entity; 375 } 376 377 public ItemAccountingCategory getItemAccountingCategory(EntityPermission entityPermission) { 378 return getItemAccountingCategory(ThreadSession.currentSession(), entityPermission); 379 } 380 381 public ItemAccountingCategory getItemAccountingCategory(Session session) { 382 return getItemAccountingCategory(session, EntityPermission.READ_ONLY); 383 } 384 385 public ItemAccountingCategory getItemAccountingCategory() { 386 return getItemAccountingCategory(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 387 } 388 389 public ItemAccountingCategory getItemAccountingCategoryForUpdate(Session session) { 390 return getItemAccountingCategory(session, EntityPermission.READ_WRITE); 391 } 392 393 public ItemAccountingCategory getItemAccountingCategoryForUpdate() { 394 return getItemAccountingCategory(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 395 } 396 397 public void setItemAccountingCategoryPK(ItemAccountingCategoryPK itemAccountingCategoryPK) 398 throws PersistenceNotNullException, PersistenceReadOnlyException { 399 checkReadWrite(); 400 _value.setItemAccountingCategoryPK(itemAccountingCategoryPK); 401 } 402 403 public void setItemAccountingCategory(ItemAccountingCategory entity) { 404 setItemAccountingCategoryPK(entity == null? null: entity.getPrimaryKey()); 405 } 406 407 public boolean getItemAccountingCategoryPKHasBeenModified() { 408 return _value.getItemAccountingCategoryPKHasBeenModified(); 409 } 410 411 public ItemPurchasingCategoryPK getItemPurchasingCategoryPK() { 412 return _value.getItemPurchasingCategoryPK(); 413 } 414 415 public ItemPurchasingCategory getItemPurchasingCategory(Session session, EntityPermission entityPermission) { 416 ItemPurchasingCategoryPK pk = getItemPurchasingCategoryPK(); 417 ItemPurchasingCategory entity = pk == null? null: ItemPurchasingCategoryFactory.getInstance().getEntityFromPK(session, entityPermission, pk); 418 419 return entity; 420 } 421 422 public ItemPurchasingCategory getItemPurchasingCategory(EntityPermission entityPermission) { 423 return getItemPurchasingCategory(ThreadSession.currentSession(), entityPermission); 424 } 425 426 public ItemPurchasingCategory getItemPurchasingCategory(Session session) { 427 return getItemPurchasingCategory(session, EntityPermission.READ_ONLY); 428 } 429 430 public ItemPurchasingCategory getItemPurchasingCategory() { 431 return getItemPurchasingCategory(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 432 } 433 434 public ItemPurchasingCategory getItemPurchasingCategoryForUpdate(Session session) { 435 return getItemPurchasingCategory(session, EntityPermission.READ_WRITE); 436 } 437 438 public ItemPurchasingCategory getItemPurchasingCategoryForUpdate() { 439 return getItemPurchasingCategory(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 440 } 441 442 public void setItemPurchasingCategoryPK(ItemPurchasingCategoryPK itemPurchasingCategoryPK) 443 throws PersistenceNotNullException, PersistenceReadOnlyException { 444 checkReadWrite(); 445 _value.setItemPurchasingCategoryPK(itemPurchasingCategoryPK); 446 } 447 448 public void setItemPurchasingCategory(ItemPurchasingCategory entity) { 449 setItemPurchasingCategoryPK(entity == null? null: entity.getPrimaryKey()); 450 } 451 452 public boolean getItemPurchasingCategoryPKHasBeenModified() { 453 return _value.getItemPurchasingCategoryPKHasBeenModified(); 454 } 455 456 public PartyPK getCompanyPartyPK() { 457 return _value.getCompanyPartyPK(); 458 } 459 460 public Party getCompanyParty(Session session, EntityPermission entityPermission) { 461 return PartyFactory.getInstance().getEntityFromPK(session, entityPermission, getCompanyPartyPK()); 462 } 463 464 public Party getCompanyParty(EntityPermission entityPermission) { 465 return getCompanyParty(ThreadSession.currentSession(), entityPermission); 466 } 467 468 public Party getCompanyParty(Session session) { 469 return getCompanyParty(session, EntityPermission.READ_ONLY); 470 } 471 472 public Party getCompanyParty() { 473 return getCompanyParty(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 474 } 475 476 public Party getCompanyPartyForUpdate(Session session) { 477 return getCompanyParty(session, EntityPermission.READ_WRITE); 478 } 479 480 public Party getCompanyPartyForUpdate() { 481 return getCompanyParty(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 482 } 483 484 public void setCompanyPartyPK(PartyPK companyPartyPK) 485 throws PersistenceNotNullException, PersistenceReadOnlyException { 486 checkReadWrite(); 487 _value.setCompanyPartyPK(companyPartyPK); 488 } 489 490 public void setCompanyParty(Party entity) { 491 setCompanyPartyPK(entity == null? null: entity.getPrimaryKey()); 492 } 493 494 public boolean getCompanyPartyPKHasBeenModified() { 495 return _value.getCompanyPartyPKHasBeenModified(); 496 } 497 498 public ItemDeliveryTypePK getItemDeliveryTypePK() { 499 return _value.getItemDeliveryTypePK(); 500 } 501 502 public ItemDeliveryType getItemDeliveryType(Session session, EntityPermission entityPermission) { 503 ItemDeliveryTypePK pk = getItemDeliveryTypePK(); 504 ItemDeliveryType entity = pk == null? null: ItemDeliveryTypeFactory.getInstance().getEntityFromPK(session, entityPermission, pk); 505 506 return entity; 507 } 508 509 public ItemDeliveryType getItemDeliveryType(EntityPermission entityPermission) { 510 return getItemDeliveryType(ThreadSession.currentSession(), entityPermission); 511 } 512 513 public ItemDeliveryType getItemDeliveryType(Session session) { 514 return getItemDeliveryType(session, EntityPermission.READ_ONLY); 515 } 516 517 public ItemDeliveryType getItemDeliveryType() { 518 return getItemDeliveryType(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 519 } 520 521 public ItemDeliveryType getItemDeliveryTypeForUpdate(Session session) { 522 return getItemDeliveryType(session, EntityPermission.READ_WRITE); 523 } 524 525 public ItemDeliveryType getItemDeliveryTypeForUpdate() { 526 return getItemDeliveryType(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 527 } 528 529 public void setItemDeliveryTypePK(ItemDeliveryTypePK itemDeliveryTypePK) 530 throws PersistenceNotNullException, PersistenceReadOnlyException { 531 checkReadWrite(); 532 _value.setItemDeliveryTypePK(itemDeliveryTypePK); 533 } 534 535 public void setItemDeliveryType(ItemDeliveryType entity) { 536 setItemDeliveryTypePK(entity == null? null: entity.getPrimaryKey()); 537 } 538 539 public boolean getItemDeliveryTypePKHasBeenModified() { 540 return _value.getItemDeliveryTypePKHasBeenModified(); 541 } 542 543 public ItemInventoryTypePK getItemInventoryTypePK() { 544 return _value.getItemInventoryTypePK(); 545 } 546 547 public ItemInventoryType getItemInventoryType(Session session, EntityPermission entityPermission) { 548 ItemInventoryTypePK pk = getItemInventoryTypePK(); 549 ItemInventoryType entity = pk == null? null: ItemInventoryTypeFactory.getInstance().getEntityFromPK(session, entityPermission, pk); 550 551 return entity; 552 } 553 554 public ItemInventoryType getItemInventoryType(EntityPermission entityPermission) { 555 return getItemInventoryType(ThreadSession.currentSession(), entityPermission); 556 } 557 558 public ItemInventoryType getItemInventoryType(Session session) { 559 return getItemInventoryType(session, EntityPermission.READ_ONLY); 560 } 561 562 public ItemInventoryType getItemInventoryType() { 563 return getItemInventoryType(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 564 } 565 566 public ItemInventoryType getItemInventoryTypeForUpdate(Session session) { 567 return getItemInventoryType(session, EntityPermission.READ_WRITE); 568 } 569 570 public ItemInventoryType getItemInventoryTypeForUpdate() { 571 return getItemInventoryType(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 572 } 573 574 public void setItemInventoryTypePK(ItemInventoryTypePK itemInventoryTypePK) 575 throws PersistenceNotNullException, PersistenceReadOnlyException { 576 checkReadWrite(); 577 _value.setItemInventoryTypePK(itemInventoryTypePK); 578 } 579 580 public void setItemInventoryType(ItemInventoryType entity) { 581 setItemInventoryTypePK(entity == null? null: entity.getPrimaryKey()); 582 } 583 584 public boolean getItemInventoryTypePKHasBeenModified() { 585 return _value.getItemInventoryTypePKHasBeenModified(); 586 } 587 588 public Boolean getInventorySerialized() { 589 return _value.getInventorySerialized(); 590 } 591 592 public void setInventorySerialized(Boolean inventorySerialized) 593 throws PersistenceNotNullException, PersistenceReadOnlyException { 594 checkReadWrite(); 595 _value.setInventorySerialized(inventorySerialized); 596 } 597 598 public boolean getInventorySerializedHasBeenModified() { 599 return _value.getInventorySerializedHasBeenModified(); 600 } 601 602 public SequencePK getSerialNumberSequencePK() { 603 return _value.getSerialNumberSequencePK(); 604 } 605 606 public Sequence getSerialNumberSequence(Session session, EntityPermission entityPermission) { 607 SequencePK pk = getSerialNumberSequencePK(); 608 Sequence entity = pk == null? null: SequenceFactory.getInstance().getEntityFromPK(session, entityPermission, pk); 609 610 return entity; 611 } 612 613 public Sequence getSerialNumberSequence(EntityPermission entityPermission) { 614 return getSerialNumberSequence(ThreadSession.currentSession(), entityPermission); 615 } 616 617 public Sequence getSerialNumberSequence(Session session) { 618 return getSerialNumberSequence(session, EntityPermission.READ_ONLY); 619 } 620 621 public Sequence getSerialNumberSequence() { 622 return getSerialNumberSequence(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 623 } 624 625 public Sequence getSerialNumberSequenceForUpdate(Session session) { 626 return getSerialNumberSequence(session, EntityPermission.READ_WRITE); 627 } 628 629 public Sequence getSerialNumberSequenceForUpdate() { 630 return getSerialNumberSequence(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 631 } 632 633 public void setSerialNumberSequencePK(SequencePK serialNumberSequencePK) 634 throws PersistenceNotNullException, PersistenceReadOnlyException { 635 checkReadWrite(); 636 _value.setSerialNumberSequencePK(serialNumberSequencePK); 637 } 638 639 public void setSerialNumberSequence(Sequence entity) { 640 setSerialNumberSequencePK(entity == null? null: entity.getPrimaryKey()); 641 } 642 643 public boolean getSerialNumberSequencePKHasBeenModified() { 644 return _value.getSerialNumberSequencePKHasBeenModified(); 645 } 646 647 public Boolean getShippingChargeExempt() { 648 return _value.getShippingChargeExempt(); 649 } 650 651 public void setShippingChargeExempt(Boolean shippingChargeExempt) 652 throws PersistenceNotNullException, PersistenceReadOnlyException { 653 checkReadWrite(); 654 _value.setShippingChargeExempt(shippingChargeExempt); 655 } 656 657 public boolean getShippingChargeExemptHasBeenModified() { 658 return _value.getShippingChargeExemptHasBeenModified(); 659 } 660 661 public Long getShippingStartTime() { 662 return _value.getShippingStartTime(); 663 } 664 665 public void setShippingStartTime(Long shippingStartTime) 666 throws PersistenceNotNullException, PersistenceReadOnlyException { 667 checkReadWrite(); 668 _value.setShippingStartTime(shippingStartTime); 669 } 670 671 public boolean getShippingStartTimeHasBeenModified() { 672 return _value.getShippingStartTimeHasBeenModified(); 673 } 674 675 public Long getShippingEndTime() { 676 return _value.getShippingEndTime(); 677 } 678 679 public void setShippingEndTime(Long shippingEndTime) 680 throws PersistenceNotNullException, PersistenceReadOnlyException { 681 checkReadWrite(); 682 _value.setShippingEndTime(shippingEndTime); 683 } 684 685 public boolean getShippingEndTimeHasBeenModified() { 686 return _value.getShippingEndTimeHasBeenModified(); 687 } 688 689 public Long getSalesOrderStartTime() { 690 return _value.getSalesOrderStartTime(); 691 } 692 693 public void setSalesOrderStartTime(Long salesOrderStartTime) 694 throws PersistenceNotNullException, PersistenceReadOnlyException { 695 checkReadWrite(); 696 _value.setSalesOrderStartTime(salesOrderStartTime); 697 } 698 699 public boolean getSalesOrderStartTimeHasBeenModified() { 700 return _value.getSalesOrderStartTimeHasBeenModified(); 701 } 702 703 public Long getSalesOrderEndTime() { 704 return _value.getSalesOrderEndTime(); 705 } 706 707 public void setSalesOrderEndTime(Long salesOrderEndTime) 708 throws PersistenceNotNullException, PersistenceReadOnlyException { 709 checkReadWrite(); 710 _value.setSalesOrderEndTime(salesOrderEndTime); 711 } 712 713 public boolean getSalesOrderEndTimeHasBeenModified() { 714 return _value.getSalesOrderEndTimeHasBeenModified(); 715 } 716 717 public Long getPurchaseOrderStartTime() { 718 return _value.getPurchaseOrderStartTime(); 719 } 720 721 public void setPurchaseOrderStartTime(Long purchaseOrderStartTime) 722 throws PersistenceNotNullException, PersistenceReadOnlyException { 723 checkReadWrite(); 724 _value.setPurchaseOrderStartTime(purchaseOrderStartTime); 725 } 726 727 public boolean getPurchaseOrderStartTimeHasBeenModified() { 728 return _value.getPurchaseOrderStartTimeHasBeenModified(); 729 } 730 731 public Long getPurchaseOrderEndTime() { 732 return _value.getPurchaseOrderEndTime(); 733 } 734 735 public void setPurchaseOrderEndTime(Long purchaseOrderEndTime) 736 throws PersistenceNotNullException, PersistenceReadOnlyException { 737 checkReadWrite(); 738 _value.setPurchaseOrderEndTime(purchaseOrderEndTime); 739 } 740 741 public boolean getPurchaseOrderEndTimeHasBeenModified() { 742 return _value.getPurchaseOrderEndTimeHasBeenModified(); 743 } 744 745 public Boolean getAllowClubDiscounts() { 746 return _value.getAllowClubDiscounts(); 747 } 748 749 public void setAllowClubDiscounts(Boolean allowClubDiscounts) 750 throws PersistenceNotNullException, PersistenceReadOnlyException { 751 checkReadWrite(); 752 _value.setAllowClubDiscounts(allowClubDiscounts); 753 } 754 755 public boolean getAllowClubDiscountsHasBeenModified() { 756 return _value.getAllowClubDiscountsHasBeenModified(); 757 } 758 759 public Boolean getAllowCouponDiscounts() { 760 return _value.getAllowCouponDiscounts(); 761 } 762 763 public void setAllowCouponDiscounts(Boolean allowCouponDiscounts) 764 throws PersistenceNotNullException, PersistenceReadOnlyException { 765 checkReadWrite(); 766 _value.setAllowCouponDiscounts(allowCouponDiscounts); 767 } 768 769 public boolean getAllowCouponDiscountsHasBeenModified() { 770 return _value.getAllowCouponDiscountsHasBeenModified(); 771 } 772 773 public Boolean getAllowAssociatePayments() { 774 return _value.getAllowAssociatePayments(); 775 } 776 777 public void setAllowAssociatePayments(Boolean allowAssociatePayments) 778 throws PersistenceNotNullException, PersistenceReadOnlyException { 779 checkReadWrite(); 780 _value.setAllowAssociatePayments(allowAssociatePayments); 781 } 782 783 public boolean getAllowAssociatePaymentsHasBeenModified() { 784 return _value.getAllowAssociatePaymentsHasBeenModified(); 785 } 786 787 public UnitOfMeasureKindPK getUnitOfMeasureKindPK() { 788 return _value.getUnitOfMeasureKindPK(); 789 } 790 791 public UnitOfMeasureKind getUnitOfMeasureKind(Session session, EntityPermission entityPermission) { 792 return UnitOfMeasureKindFactory.getInstance().getEntityFromPK(session, entityPermission, getUnitOfMeasureKindPK()); 793 } 794 795 public UnitOfMeasureKind getUnitOfMeasureKind(EntityPermission entityPermission) { 796 return getUnitOfMeasureKind(ThreadSession.currentSession(), entityPermission); 797 } 798 799 public UnitOfMeasureKind getUnitOfMeasureKind(Session session) { 800 return getUnitOfMeasureKind(session, EntityPermission.READ_ONLY); 801 } 802 803 public UnitOfMeasureKind getUnitOfMeasureKind() { 804 return getUnitOfMeasureKind(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 805 } 806 807 public UnitOfMeasureKind getUnitOfMeasureKindForUpdate(Session session) { 808 return getUnitOfMeasureKind(session, EntityPermission.READ_WRITE); 809 } 810 811 public UnitOfMeasureKind getUnitOfMeasureKindForUpdate() { 812 return getUnitOfMeasureKind(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 813 } 814 815 public void setUnitOfMeasureKindPK(UnitOfMeasureKindPK unitOfMeasureKindPK) 816 throws PersistenceNotNullException, PersistenceReadOnlyException { 817 checkReadWrite(); 818 _value.setUnitOfMeasureKindPK(unitOfMeasureKindPK); 819 } 820 821 public void setUnitOfMeasureKind(UnitOfMeasureKind entity) { 822 setUnitOfMeasureKindPK(entity == null? null: entity.getPrimaryKey()); 823 } 824 825 public boolean getUnitOfMeasureKindPKHasBeenModified() { 826 return _value.getUnitOfMeasureKindPKHasBeenModified(); 827 } 828 829 public ItemPriceTypePK getItemPriceTypePK() { 830 return _value.getItemPriceTypePK(); 831 } 832 833 public ItemPriceType getItemPriceType(Session session, EntityPermission entityPermission) { 834 return ItemPriceTypeFactory.getInstance().getEntityFromPK(session, entityPermission, getItemPriceTypePK()); 835 } 836 837 public ItemPriceType getItemPriceType(EntityPermission entityPermission) { 838 return getItemPriceType(ThreadSession.currentSession(), entityPermission); 839 } 840 841 public ItemPriceType getItemPriceType(Session session) { 842 return getItemPriceType(session, EntityPermission.READ_ONLY); 843 } 844 845 public ItemPriceType getItemPriceType() { 846 return getItemPriceType(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 847 } 848 849 public ItemPriceType getItemPriceTypeForUpdate(Session session) { 850 return getItemPriceType(session, EntityPermission.READ_WRITE); 851 } 852 853 public ItemPriceType getItemPriceTypeForUpdate() { 854 return getItemPriceType(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 855 } 856 857 public void setItemPriceTypePK(ItemPriceTypePK itemPriceTypePK) 858 throws PersistenceNotNullException, PersistenceReadOnlyException { 859 checkReadWrite(); 860 _value.setItemPriceTypePK(itemPriceTypePK); 861 } 862 863 public void setItemPriceType(ItemPriceType entity) { 864 setItemPriceTypePK(entity == null? null: entity.getPrimaryKey()); 865 } 866 867 public boolean getItemPriceTypePKHasBeenModified() { 868 return _value.getItemPriceTypePKHasBeenModified(); 869 } 870 871 public CancellationPolicyPK getCancellationPolicyPK() { 872 return _value.getCancellationPolicyPK(); 873 } 874 875 public CancellationPolicy getCancellationPolicy(Session session, EntityPermission entityPermission) { 876 CancellationPolicyPK pk = getCancellationPolicyPK(); 877 CancellationPolicy entity = pk == null? null: CancellationPolicyFactory.getInstance().getEntityFromPK(session, entityPermission, pk); 878 879 return entity; 880 } 881 882 public CancellationPolicy getCancellationPolicy(EntityPermission entityPermission) { 883 return getCancellationPolicy(ThreadSession.currentSession(), entityPermission); 884 } 885 886 public CancellationPolicy getCancellationPolicy(Session session) { 887 return getCancellationPolicy(session, EntityPermission.READ_ONLY); 888 } 889 890 public CancellationPolicy getCancellationPolicy() { 891 return getCancellationPolicy(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 892 } 893 894 public CancellationPolicy getCancellationPolicyForUpdate(Session session) { 895 return getCancellationPolicy(session, EntityPermission.READ_WRITE); 896 } 897 898 public CancellationPolicy getCancellationPolicyForUpdate() { 899 return getCancellationPolicy(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 900 } 901 902 public void setCancellationPolicyPK(CancellationPolicyPK cancellationPolicyPK) 903 throws PersistenceNotNullException, PersistenceReadOnlyException { 904 checkReadWrite(); 905 _value.setCancellationPolicyPK(cancellationPolicyPK); 906 } 907 908 public void setCancellationPolicy(CancellationPolicy entity) { 909 setCancellationPolicyPK(entity == null? null: entity.getPrimaryKey()); 910 } 911 912 public boolean getCancellationPolicyPKHasBeenModified() { 913 return _value.getCancellationPolicyPKHasBeenModified(); 914 } 915 916 public ReturnPolicyPK getReturnPolicyPK() { 917 return _value.getReturnPolicyPK(); 918 } 919 920 public ReturnPolicy getReturnPolicy(Session session, EntityPermission entityPermission) { 921 ReturnPolicyPK pk = getReturnPolicyPK(); 922 ReturnPolicy entity = pk == null? null: ReturnPolicyFactory.getInstance().getEntityFromPK(session, entityPermission, pk); 923 924 return entity; 925 } 926 927 public ReturnPolicy getReturnPolicy(EntityPermission entityPermission) { 928 return getReturnPolicy(ThreadSession.currentSession(), entityPermission); 929 } 930 931 public ReturnPolicy getReturnPolicy(Session session) { 932 return getReturnPolicy(session, EntityPermission.READ_ONLY); 933 } 934 935 public ReturnPolicy getReturnPolicy() { 936 return getReturnPolicy(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 937 } 938 939 public ReturnPolicy getReturnPolicyForUpdate(Session session) { 940 return getReturnPolicy(session, EntityPermission.READ_WRITE); 941 } 942 943 public ReturnPolicy getReturnPolicyForUpdate() { 944 return getReturnPolicy(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 945 } 946 947 public void setReturnPolicyPK(ReturnPolicyPK returnPolicyPK) 948 throws PersistenceNotNullException, PersistenceReadOnlyException { 949 checkReadWrite(); 950 _value.setReturnPolicyPK(returnPolicyPK); 951 } 952 953 public void setReturnPolicy(ReturnPolicy entity) { 954 setReturnPolicyPK(entity == null? null: entity.getPrimaryKey()); 955 } 956 957 public boolean getReturnPolicyPKHasBeenModified() { 958 return _value.getReturnPolicyPKHasBeenModified(); 959 } 960 961 public StylePathPK getStylePathPK() { 962 return _value.getStylePathPK(); 963 } 964 965 public StylePath getStylePath(Session session, EntityPermission entityPermission) { 966 StylePathPK pk = getStylePathPK(); 967 StylePath entity = pk == null? null: StylePathFactory.getInstance().getEntityFromPK(session, entityPermission, pk); 968 969 return entity; 970 } 971 972 public StylePath getStylePath(EntityPermission entityPermission) { 973 return getStylePath(ThreadSession.currentSession(), entityPermission); 974 } 975 976 public StylePath getStylePath(Session session) { 977 return getStylePath(session, EntityPermission.READ_ONLY); 978 } 979 980 public StylePath getStylePath() { 981 return getStylePath(ThreadSession.currentSession(), EntityPermission.READ_ONLY); 982 } 983 984 public StylePath getStylePathForUpdate(Session session) { 985 return getStylePath(session, EntityPermission.READ_WRITE); 986 } 987 988 public StylePath getStylePathForUpdate() { 989 return getStylePath(ThreadSession.currentSession(), EntityPermission.READ_WRITE); 990 } 991 992 public void setStylePathPK(StylePathPK stylePathPK) 993 throws PersistenceNotNullException, PersistenceReadOnlyException { 994 checkReadWrite(); 995 _value.setStylePathPK(stylePathPK); 996 } 997 998 public void setStylePath(StylePath entity) { 999 setStylePathPK(entity == null? null: entity.getPrimaryKey()); 1000 } 1001 1002 public boolean getStylePathPKHasBeenModified() { 1003 return _value.getStylePathPKHasBeenModified(); 1004 } 1005 1006 public Long getFromTime() { 1007 return _value.getFromTime(); 1008 } 1009 1010 public void setFromTime(Long fromTime) 1011 throws PersistenceNotNullException, PersistenceReadOnlyException { 1012 checkReadWrite(); 1013 _value.setFromTime(fromTime); 1014 } 1015 1016 public boolean getFromTimeHasBeenModified() { 1017 return _value.getFromTimeHasBeenModified(); 1018 } 1019 1020 public Long getThruTime() { 1021 return _value.getThruTime(); 1022 } 1023 1024 public void setThruTime(Long thruTime) 1025 throws PersistenceNotNullException, PersistenceReadOnlyException { 1026 checkReadWrite(); 1027 _value.setThruTime(thruTime); 1028 } 1029 1030 public boolean getThruTimeHasBeenModified() { 1031 return _value.getThruTimeHasBeenModified(); 1032 } 1033 1034}