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