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 * ItemDetailValue.java 021 */ 022 023package com.echothree.model.data.item.server.value; 024 025import com.echothree.model.data.item.common.pk.ItemDetailPK; 026 027import com.echothree.model.data.item.server.factory.ItemDetailFactory; 028 029import com.echothree.model.data.item.common.pk.ItemPK; 030import com.echothree.model.data.item.common.pk.ItemTypePK; 031import com.echothree.model.data.item.common.pk.ItemUseTypePK; 032import com.echothree.model.data.item.common.pk.ItemCategoryPK; 033import com.echothree.model.data.accounting.common.pk.ItemAccountingCategoryPK; 034import com.echothree.model.data.vendor.common.pk.ItemPurchasingCategoryPK; 035import com.echothree.model.data.party.common.pk.PartyPK; 036import com.echothree.model.data.item.common.pk.ItemDeliveryTypePK; 037import com.echothree.model.data.item.common.pk.ItemInventoryTypePK; 038import com.echothree.model.data.sequence.common.pk.SequencePK; 039import com.echothree.model.data.uom.common.pk.UnitOfMeasureKindPK; 040import com.echothree.model.data.item.common.pk.ItemPriceTypePK; 041import com.echothree.model.data.cancellationpolicy.common.pk.CancellationPolicyPK; 042import com.echothree.model.data.returnpolicy.common.pk.ReturnPolicyPK; 043import com.echothree.model.data.style.common.pk.StylePathPK; 044 045import com.echothree.util.common.exception.PersistenceCloneException; 046import com.echothree.util.common.exception.PersistenceNotNullException; 047 048import com.echothree.util.server.persistence.BaseValue; 049 050import java.io.Serializable; 051 052public class ItemDetailValue 053 extends BaseValue<ItemDetailPK> 054 implements Cloneable, Serializable { 055 056 private ItemPK itemPK; 057 private boolean itemPKHasBeenModified = false; 058 private String itemName; 059 private boolean itemNameHasBeenModified = false; 060 private ItemTypePK itemTypePK; 061 private boolean itemTypePKHasBeenModified = false; 062 private ItemUseTypePK itemUseTypePK; 063 private boolean itemUseTypePKHasBeenModified = false; 064 private ItemCategoryPK itemCategoryPK; 065 private boolean itemCategoryPKHasBeenModified = false; 066 private ItemAccountingCategoryPK itemAccountingCategoryPK; 067 private boolean itemAccountingCategoryPKHasBeenModified = false; 068 private ItemPurchasingCategoryPK itemPurchasingCategoryPK; 069 private boolean itemPurchasingCategoryPKHasBeenModified = false; 070 private PartyPK companyPartyPK; 071 private boolean companyPartyPKHasBeenModified = false; 072 private ItemDeliveryTypePK itemDeliveryTypePK; 073 private boolean itemDeliveryTypePKHasBeenModified = false; 074 private ItemInventoryTypePK itemInventoryTypePK; 075 private boolean itemInventoryTypePKHasBeenModified = false; 076 private Boolean inventorySerialized; 077 private boolean inventorySerializedHasBeenModified = false; 078 private SequencePK serialNumberSequencePK; 079 private boolean serialNumberSequencePKHasBeenModified = false; 080 private Boolean shippingChargeExempt; 081 private boolean shippingChargeExemptHasBeenModified = false; 082 private Long shippingStartTime; 083 private boolean shippingStartTimeHasBeenModified = false; 084 private Long shippingEndTime; 085 private boolean shippingEndTimeHasBeenModified = false; 086 private Long salesOrderStartTime; 087 private boolean salesOrderStartTimeHasBeenModified = false; 088 private Long salesOrderEndTime; 089 private boolean salesOrderEndTimeHasBeenModified = false; 090 private Long purchaseOrderStartTime; 091 private boolean purchaseOrderStartTimeHasBeenModified = false; 092 private Long purchaseOrderEndTime; 093 private boolean purchaseOrderEndTimeHasBeenModified = false; 094 private Boolean allowClubDiscounts; 095 private boolean allowClubDiscountsHasBeenModified = false; 096 private Boolean allowCouponDiscounts; 097 private boolean allowCouponDiscountsHasBeenModified = false; 098 private Boolean allowAssociatePayments; 099 private boolean allowAssociatePaymentsHasBeenModified = false; 100 private UnitOfMeasureKindPK unitOfMeasureKindPK; 101 private boolean unitOfMeasureKindPKHasBeenModified = false; 102 private ItemPriceTypePK itemPriceTypePK; 103 private boolean itemPriceTypePKHasBeenModified = false; 104 private CancellationPolicyPK cancellationPolicyPK; 105 private boolean cancellationPolicyPKHasBeenModified = false; 106 private ReturnPolicyPK returnPolicyPK; 107 private boolean returnPolicyPKHasBeenModified = false; 108 private StylePathPK stylePathPK; 109 private boolean stylePathPKHasBeenModified = false; 110 private Long fromTime; 111 private boolean fromTimeHasBeenModified = false; 112 private Long thruTime; 113 private boolean thruTimeHasBeenModified = false; 114 115 private transient Integer _hashCode = null; 116 private transient String _stringValue = null; 117 118 private void constructFields(ItemPK itemPK, String itemName, ItemTypePK itemTypePK, ItemUseTypePK itemUseTypePK, ItemCategoryPK itemCategoryPK, ItemAccountingCategoryPK itemAccountingCategoryPK, ItemPurchasingCategoryPK itemPurchasingCategoryPK, PartyPK companyPartyPK, ItemDeliveryTypePK itemDeliveryTypePK, ItemInventoryTypePK itemInventoryTypePK, Boolean inventorySerialized, SequencePK serialNumberSequencePK, Boolean shippingChargeExempt, Long shippingStartTime, Long shippingEndTime, Long salesOrderStartTime, Long salesOrderEndTime, Long purchaseOrderStartTime, Long purchaseOrderEndTime, Boolean allowClubDiscounts, Boolean allowCouponDiscounts, Boolean allowAssociatePayments, UnitOfMeasureKindPK unitOfMeasureKindPK, ItemPriceTypePK itemPriceTypePK, CancellationPolicyPK cancellationPolicyPK, ReturnPolicyPK returnPolicyPK, StylePathPK stylePathPK, Long fromTime, Long thruTime) 119 throws PersistenceNotNullException { 120 checkForNull(itemPK); 121 this.itemPK = itemPK; 122 checkForNull(itemName); 123 this.itemName = itemName; 124 checkForNull(itemTypePK); 125 this.itemTypePK = itemTypePK; 126 checkForNull(itemUseTypePK); 127 this.itemUseTypePK = itemUseTypePK; 128 checkForNull(itemCategoryPK); 129 this.itemCategoryPK = itemCategoryPK; 130 this.itemAccountingCategoryPK = itemAccountingCategoryPK; 131 this.itemPurchasingCategoryPK = itemPurchasingCategoryPK; 132 checkForNull(companyPartyPK); 133 this.companyPartyPK = companyPartyPK; 134 this.itemDeliveryTypePK = itemDeliveryTypePK; 135 this.itemInventoryTypePK = itemInventoryTypePK; 136 this.inventorySerialized = inventorySerialized; 137 this.serialNumberSequencePK = serialNumberSequencePK; 138 checkForNull(shippingChargeExempt); 139 this.shippingChargeExempt = shippingChargeExempt; 140 checkForNull(shippingStartTime); 141 this.shippingStartTime = shippingStartTime; 142 this.shippingEndTime = shippingEndTime; 143 checkForNull(salesOrderStartTime); 144 this.salesOrderStartTime = salesOrderStartTime; 145 this.salesOrderEndTime = salesOrderEndTime; 146 this.purchaseOrderStartTime = purchaseOrderStartTime; 147 this.purchaseOrderEndTime = purchaseOrderEndTime; 148 checkForNull(allowClubDiscounts); 149 this.allowClubDiscounts = allowClubDiscounts; 150 checkForNull(allowCouponDiscounts); 151 this.allowCouponDiscounts = allowCouponDiscounts; 152 checkForNull(allowAssociatePayments); 153 this.allowAssociatePayments = allowAssociatePayments; 154 checkForNull(unitOfMeasureKindPK); 155 this.unitOfMeasureKindPK = unitOfMeasureKindPK; 156 checkForNull(itemPriceTypePK); 157 this.itemPriceTypePK = itemPriceTypePK; 158 this.cancellationPolicyPK = cancellationPolicyPK; 159 this.returnPolicyPK = returnPolicyPK; 160 this.stylePathPK = stylePathPK; 161 checkForNull(fromTime); 162 this.fromTime = fromTime; 163 checkForNull(thruTime); 164 this.thruTime = thruTime; 165 } 166 167 /** Creates a new instance of ItemDetailValue */ 168 public ItemDetailValue(ItemDetailPK itemDetailPK, ItemPK itemPK, String itemName, ItemTypePK itemTypePK, ItemUseTypePK itemUseTypePK, ItemCategoryPK itemCategoryPK, ItemAccountingCategoryPK itemAccountingCategoryPK, ItemPurchasingCategoryPK itemPurchasingCategoryPK, PartyPK companyPartyPK, ItemDeliveryTypePK itemDeliveryTypePK, ItemInventoryTypePK itemInventoryTypePK, Boolean inventorySerialized, SequencePK serialNumberSequencePK, Boolean shippingChargeExempt, Long shippingStartTime, Long shippingEndTime, Long salesOrderStartTime, Long salesOrderEndTime, Long purchaseOrderStartTime, Long purchaseOrderEndTime, Boolean allowClubDiscounts, Boolean allowCouponDiscounts, Boolean allowAssociatePayments, UnitOfMeasureKindPK unitOfMeasureKindPK, ItemPriceTypePK itemPriceTypePK, CancellationPolicyPK cancellationPolicyPK, ReturnPolicyPK returnPolicyPK, StylePathPK stylePathPK, Long fromTime, Long thruTime) 169 throws PersistenceNotNullException { 170 super(itemDetailPK); 171 constructFields(itemPK, itemName, itemTypePK, itemUseTypePK, itemCategoryPK, itemAccountingCategoryPK, itemPurchasingCategoryPK, companyPartyPK, itemDeliveryTypePK, itemInventoryTypePK, inventorySerialized, serialNumberSequencePK, shippingChargeExempt, shippingStartTime, shippingEndTime, salesOrderStartTime, salesOrderEndTime, purchaseOrderStartTime, purchaseOrderEndTime, allowClubDiscounts, allowCouponDiscounts, allowAssociatePayments, unitOfMeasureKindPK, itemPriceTypePK, cancellationPolicyPK, returnPolicyPK, stylePathPK, fromTime, thruTime); 172 } 173 174 /** Creates a new instance of ItemDetailValue */ 175 public ItemDetailValue(ItemPK itemPK, String itemName, ItemTypePK itemTypePK, ItemUseTypePK itemUseTypePK, ItemCategoryPK itemCategoryPK, ItemAccountingCategoryPK itemAccountingCategoryPK, ItemPurchasingCategoryPK itemPurchasingCategoryPK, PartyPK companyPartyPK, ItemDeliveryTypePK itemDeliveryTypePK, ItemInventoryTypePK itemInventoryTypePK, Boolean inventorySerialized, SequencePK serialNumberSequencePK, Boolean shippingChargeExempt, Long shippingStartTime, Long shippingEndTime, Long salesOrderStartTime, Long salesOrderEndTime, Long purchaseOrderStartTime, Long purchaseOrderEndTime, Boolean allowClubDiscounts, Boolean allowCouponDiscounts, Boolean allowAssociatePayments, UnitOfMeasureKindPK unitOfMeasureKindPK, ItemPriceTypePK itemPriceTypePK, CancellationPolicyPK cancellationPolicyPK, ReturnPolicyPK returnPolicyPK, StylePathPK stylePathPK, Long fromTime, Long thruTime) 176 throws PersistenceNotNullException { 177 super(); 178 constructFields(itemPK, itemName, itemTypePK, itemUseTypePK, itemCategoryPK, itemAccountingCategoryPK, itemPurchasingCategoryPK, companyPartyPK, itemDeliveryTypePK, itemInventoryTypePK, inventorySerialized, serialNumberSequencePK, shippingChargeExempt, shippingStartTime, shippingEndTime, salesOrderStartTime, salesOrderEndTime, purchaseOrderStartTime, purchaseOrderEndTime, allowClubDiscounts, allowCouponDiscounts, allowAssociatePayments, unitOfMeasureKindPK, itemPriceTypePK, cancellationPolicyPK, returnPolicyPK, stylePathPK, fromTime, thruTime); 179 } 180 181 @Override 182 public ItemDetailFactory getBaseFactoryInstance() { 183 return ItemDetailFactory.getInstance(); 184 } 185 186 @Override 187 public ItemDetailValue clone() { 188 Object result; 189 190 try { 191 result = super.clone(); 192 } catch (CloneNotSupportedException cnse) { 193 // This shouldn't happen, fail when it does. 194 throw new PersistenceCloneException(cnse); 195 } 196 197 return (ItemDetailValue)result; 198 } 199 200 @Override 201 public ItemDetailPK getPrimaryKey() { 202 if(_primaryKey == null) { 203 _primaryKey = new ItemDetailPK(entityId); 204 } 205 206 return _primaryKey; 207 } 208 209 private void clearHashAndString() { 210 _hashCode = null; 211 _stringValue = null; 212 } 213 214 @Override 215 public int hashCode() { 216 if(_hashCode == null) { 217 int hashCode = 17; 218 219 hashCode = 37 * hashCode + ((entityId != null) ? entityId.hashCode() : 0); 220 221 hashCode = 37 * hashCode + ((itemPK != null) ? itemPK.hashCode() : 0); 222 hashCode = 37 * hashCode + ((itemName != null) ? itemName.hashCode() : 0); 223 hashCode = 37 * hashCode + ((itemTypePK != null) ? itemTypePK.hashCode() : 0); 224 hashCode = 37 * hashCode + ((itemUseTypePK != null) ? itemUseTypePK.hashCode() : 0); 225 hashCode = 37 * hashCode + ((itemCategoryPK != null) ? itemCategoryPK.hashCode() : 0); 226 hashCode = 37 * hashCode + ((itemAccountingCategoryPK != null) ? itemAccountingCategoryPK.hashCode() : 0); 227 hashCode = 37 * hashCode + ((itemPurchasingCategoryPK != null) ? itemPurchasingCategoryPK.hashCode() : 0); 228 hashCode = 37 * hashCode + ((companyPartyPK != null) ? companyPartyPK.hashCode() : 0); 229 hashCode = 37 * hashCode + ((itemDeliveryTypePK != null) ? itemDeliveryTypePK.hashCode() : 0); 230 hashCode = 37 * hashCode + ((itemInventoryTypePK != null) ? itemInventoryTypePK.hashCode() : 0); 231 hashCode = 37 * hashCode + ((inventorySerialized != null) ? inventorySerialized.hashCode() : 0); 232 hashCode = 37 * hashCode + ((serialNumberSequencePK != null) ? serialNumberSequencePK.hashCode() : 0); 233 hashCode = 37 * hashCode + ((shippingChargeExempt != null) ? shippingChargeExempt.hashCode() : 0); 234 hashCode = 37 * hashCode + ((shippingStartTime != null) ? shippingStartTime.hashCode() : 0); 235 hashCode = 37 * hashCode + ((shippingEndTime != null) ? shippingEndTime.hashCode() : 0); 236 hashCode = 37 * hashCode + ((salesOrderStartTime != null) ? salesOrderStartTime.hashCode() : 0); 237 hashCode = 37 * hashCode + ((salesOrderEndTime != null) ? salesOrderEndTime.hashCode() : 0); 238 hashCode = 37 * hashCode + ((purchaseOrderStartTime != null) ? purchaseOrderStartTime.hashCode() : 0); 239 hashCode = 37 * hashCode + ((purchaseOrderEndTime != null) ? purchaseOrderEndTime.hashCode() : 0); 240 hashCode = 37 * hashCode + ((allowClubDiscounts != null) ? allowClubDiscounts.hashCode() : 0); 241 hashCode = 37 * hashCode + ((allowCouponDiscounts != null) ? allowCouponDiscounts.hashCode() : 0); 242 hashCode = 37 * hashCode + ((allowAssociatePayments != null) ? allowAssociatePayments.hashCode() : 0); 243 hashCode = 37 * hashCode + ((unitOfMeasureKindPK != null) ? unitOfMeasureKindPK.hashCode() : 0); 244 hashCode = 37 * hashCode + ((itemPriceTypePK != null) ? itemPriceTypePK.hashCode() : 0); 245 hashCode = 37 * hashCode + ((cancellationPolicyPK != null) ? cancellationPolicyPK.hashCode() : 0); 246 hashCode = 37 * hashCode + ((returnPolicyPK != null) ? returnPolicyPK.hashCode() : 0); 247 hashCode = 37 * hashCode + ((stylePathPK != null) ? stylePathPK.hashCode() : 0); 248 hashCode = 37 * hashCode + ((fromTime != null) ? fromTime.hashCode() : 0); 249 hashCode = 37 * hashCode + ((thruTime != null) ? thruTime.hashCode() : 0); 250 251 _hashCode = hashCode; 252 } 253 254 return _hashCode; 255 } 256 257 @Override 258 public String toString() { 259 if(_stringValue == null) { 260 StringBuilder stringValue = new StringBuilder("{"); 261 262 stringValue.append("entityId=").append(getEntityId()); 263 264 stringValue.append(", itemPK=").append(getItemPK()); 265 stringValue.append(", itemName=").append(getItemName()); 266 stringValue.append(", itemTypePK=").append(getItemTypePK()); 267 stringValue.append(", itemUseTypePK=").append(getItemUseTypePK()); 268 stringValue.append(", itemCategoryPK=").append(getItemCategoryPK()); 269 stringValue.append(", itemAccountingCategoryPK=").append(getItemAccountingCategoryPK()); 270 stringValue.append(", itemPurchasingCategoryPK=").append(getItemPurchasingCategoryPK()); 271 stringValue.append(", companyPartyPK=").append(getCompanyPartyPK()); 272 stringValue.append(", itemDeliveryTypePK=").append(getItemDeliveryTypePK()); 273 stringValue.append(", itemInventoryTypePK=").append(getItemInventoryTypePK()); 274 stringValue.append(", inventorySerialized=").append(getInventorySerialized()); 275 stringValue.append(", serialNumberSequencePK=").append(getSerialNumberSequencePK()); 276 stringValue.append(", shippingChargeExempt=").append(getShippingChargeExempt()); 277 stringValue.append(", shippingStartTime=").append(getShippingStartTime()); 278 stringValue.append(", shippingEndTime=").append(getShippingEndTime()); 279 stringValue.append(", salesOrderStartTime=").append(getSalesOrderStartTime()); 280 stringValue.append(", salesOrderEndTime=").append(getSalesOrderEndTime()); 281 stringValue.append(", purchaseOrderStartTime=").append(getPurchaseOrderStartTime()); 282 stringValue.append(", purchaseOrderEndTime=").append(getPurchaseOrderEndTime()); 283 stringValue.append(", allowClubDiscounts=").append(getAllowClubDiscounts()); 284 stringValue.append(", allowCouponDiscounts=").append(getAllowCouponDiscounts()); 285 stringValue.append(", allowAssociatePayments=").append(getAllowAssociatePayments()); 286 stringValue.append(", unitOfMeasureKindPK=").append(getUnitOfMeasureKindPK()); 287 stringValue.append(", itemPriceTypePK=").append(getItemPriceTypePK()); 288 stringValue.append(", cancellationPolicyPK=").append(getCancellationPolicyPK()); 289 stringValue.append(", returnPolicyPK=").append(getReturnPolicyPK()); 290 stringValue.append(", stylePathPK=").append(getStylePathPK()); 291 stringValue.append(", fromTime=").append(getFromTime()); 292 stringValue.append(", thruTime=").append(getThruTime()); 293 294 stringValue.append('}'); 295 296 _stringValue = stringValue.toString(); 297 } 298 return _stringValue; 299 } 300 301 @Override 302 public boolean equals(Object other) { 303 if(this == other) 304 return true; 305 306 if(!hasIdentity()) 307 return false; 308 309 if(other instanceof ItemDetailValue) { 310 ItemDetailValue that = (ItemDetailValue)other; 311 312 if(!that.hasIdentity()) 313 return false; 314 315 Long thisEntityId = getEntityId(); 316 Long thatEntityId = that.getEntityId(); 317 318 boolean objectsEqual = thisEntityId.equals(thatEntityId); 319 if(objectsEqual) 320 objectsEqual = objectsEqual && isIdentical(that); 321 322 return objectsEqual; 323 } else { 324 return false; 325 } 326 } 327 328 public boolean isIdentical(Object other) { 329 if(other instanceof ItemDetailValue) { 330 ItemDetailValue that = (ItemDetailValue)other; 331 boolean objectsEqual = true; 332 333 334 if(objectsEqual) { 335 ItemPK thisItemPK = getItemPK(); 336 ItemPK thatItemPK = that.getItemPK(); 337 338 if(thisItemPK == null) { 339 objectsEqual = objectsEqual && (thatItemPK == null); 340 } else { 341 objectsEqual = objectsEqual && thisItemPK.equals(thatItemPK); 342 } 343 } 344 345 if(objectsEqual) { 346 String thisItemName = getItemName(); 347 String thatItemName = that.getItemName(); 348 349 if(thisItemName == null) { 350 objectsEqual = objectsEqual && (thatItemName == null); 351 } else { 352 objectsEqual = objectsEqual && thisItemName.equals(thatItemName); 353 } 354 } 355 356 if(objectsEqual) { 357 ItemTypePK thisItemTypePK = getItemTypePK(); 358 ItemTypePK thatItemTypePK = that.getItemTypePK(); 359 360 if(thisItemTypePK == null) { 361 objectsEqual = objectsEqual && (thatItemTypePK == null); 362 } else { 363 objectsEqual = objectsEqual && thisItemTypePK.equals(thatItemTypePK); 364 } 365 } 366 367 if(objectsEqual) { 368 ItemUseTypePK thisItemUseTypePK = getItemUseTypePK(); 369 ItemUseTypePK thatItemUseTypePK = that.getItemUseTypePK(); 370 371 if(thisItemUseTypePK == null) { 372 objectsEqual = objectsEqual && (thatItemUseTypePK == null); 373 } else { 374 objectsEqual = objectsEqual && thisItemUseTypePK.equals(thatItemUseTypePK); 375 } 376 } 377 378 if(objectsEqual) { 379 ItemCategoryPK thisItemCategoryPK = getItemCategoryPK(); 380 ItemCategoryPK thatItemCategoryPK = that.getItemCategoryPK(); 381 382 if(thisItemCategoryPK == null) { 383 objectsEqual = objectsEqual && (thatItemCategoryPK == null); 384 } else { 385 objectsEqual = objectsEqual && thisItemCategoryPK.equals(thatItemCategoryPK); 386 } 387 } 388 389 if(objectsEqual) { 390 ItemAccountingCategoryPK thisItemAccountingCategoryPK = getItemAccountingCategoryPK(); 391 ItemAccountingCategoryPK thatItemAccountingCategoryPK = that.getItemAccountingCategoryPK(); 392 393 if(thisItemAccountingCategoryPK == null) { 394 objectsEqual = objectsEqual && (thatItemAccountingCategoryPK == null); 395 } else { 396 objectsEqual = objectsEqual && thisItemAccountingCategoryPK.equals(thatItemAccountingCategoryPK); 397 } 398 } 399 400 if(objectsEqual) { 401 ItemPurchasingCategoryPK thisItemPurchasingCategoryPK = getItemPurchasingCategoryPK(); 402 ItemPurchasingCategoryPK thatItemPurchasingCategoryPK = that.getItemPurchasingCategoryPK(); 403 404 if(thisItemPurchasingCategoryPK == null) { 405 objectsEqual = objectsEqual && (thatItemPurchasingCategoryPK == null); 406 } else { 407 objectsEqual = objectsEqual && thisItemPurchasingCategoryPK.equals(thatItemPurchasingCategoryPK); 408 } 409 } 410 411 if(objectsEqual) { 412 PartyPK thisCompanyPartyPK = getCompanyPartyPK(); 413 PartyPK thatCompanyPartyPK = that.getCompanyPartyPK(); 414 415 if(thisCompanyPartyPK == null) { 416 objectsEqual = objectsEqual && (thatCompanyPartyPK == null); 417 } else { 418 objectsEqual = objectsEqual && thisCompanyPartyPK.equals(thatCompanyPartyPK); 419 } 420 } 421 422 if(objectsEqual) { 423 ItemDeliveryTypePK thisItemDeliveryTypePK = getItemDeliveryTypePK(); 424 ItemDeliveryTypePK thatItemDeliveryTypePK = that.getItemDeliveryTypePK(); 425 426 if(thisItemDeliveryTypePK == null) { 427 objectsEqual = objectsEqual && (thatItemDeliveryTypePK == null); 428 } else { 429 objectsEqual = objectsEqual && thisItemDeliveryTypePK.equals(thatItemDeliveryTypePK); 430 } 431 } 432 433 if(objectsEqual) { 434 ItemInventoryTypePK thisItemInventoryTypePK = getItemInventoryTypePK(); 435 ItemInventoryTypePK thatItemInventoryTypePK = that.getItemInventoryTypePK(); 436 437 if(thisItemInventoryTypePK == null) { 438 objectsEqual = objectsEqual && (thatItemInventoryTypePK == null); 439 } else { 440 objectsEqual = objectsEqual && thisItemInventoryTypePK.equals(thatItemInventoryTypePK); 441 } 442 } 443 444 if(objectsEqual) { 445 Boolean thisInventorySerialized = getInventorySerialized(); 446 Boolean thatInventorySerialized = that.getInventorySerialized(); 447 448 if(thisInventorySerialized == null) { 449 objectsEqual = objectsEqual && (thatInventorySerialized == null); 450 } else { 451 objectsEqual = objectsEqual && thisInventorySerialized.equals(thatInventorySerialized); 452 } 453 } 454 455 if(objectsEqual) { 456 SequencePK thisSerialNumberSequencePK = getSerialNumberSequencePK(); 457 SequencePK thatSerialNumberSequencePK = that.getSerialNumberSequencePK(); 458 459 if(thisSerialNumberSequencePK == null) { 460 objectsEqual = objectsEqual && (thatSerialNumberSequencePK == null); 461 } else { 462 objectsEqual = objectsEqual && thisSerialNumberSequencePK.equals(thatSerialNumberSequencePK); 463 } 464 } 465 466 if(objectsEqual) { 467 Boolean thisShippingChargeExempt = getShippingChargeExempt(); 468 Boolean thatShippingChargeExempt = that.getShippingChargeExempt(); 469 470 if(thisShippingChargeExempt == null) { 471 objectsEqual = objectsEqual && (thatShippingChargeExempt == null); 472 } else { 473 objectsEqual = objectsEqual && thisShippingChargeExempt.equals(thatShippingChargeExempt); 474 } 475 } 476 477 if(objectsEqual) { 478 Long thisShippingStartTime = getShippingStartTime(); 479 Long thatShippingStartTime = that.getShippingStartTime(); 480 481 if(thisShippingStartTime == null) { 482 objectsEqual = objectsEqual && (thatShippingStartTime == null); 483 } else { 484 objectsEqual = objectsEqual && thisShippingStartTime.equals(thatShippingStartTime); 485 } 486 } 487 488 if(objectsEqual) { 489 Long thisShippingEndTime = getShippingEndTime(); 490 Long thatShippingEndTime = that.getShippingEndTime(); 491 492 if(thisShippingEndTime == null) { 493 objectsEqual = objectsEqual && (thatShippingEndTime == null); 494 } else { 495 objectsEqual = objectsEqual && thisShippingEndTime.equals(thatShippingEndTime); 496 } 497 } 498 499 if(objectsEqual) { 500 Long thisSalesOrderStartTime = getSalesOrderStartTime(); 501 Long thatSalesOrderStartTime = that.getSalesOrderStartTime(); 502 503 if(thisSalesOrderStartTime == null) { 504 objectsEqual = objectsEqual && (thatSalesOrderStartTime == null); 505 } else { 506 objectsEqual = objectsEqual && thisSalesOrderStartTime.equals(thatSalesOrderStartTime); 507 } 508 } 509 510 if(objectsEqual) { 511 Long thisSalesOrderEndTime = getSalesOrderEndTime(); 512 Long thatSalesOrderEndTime = that.getSalesOrderEndTime(); 513 514 if(thisSalesOrderEndTime == null) { 515 objectsEqual = objectsEqual && (thatSalesOrderEndTime == null); 516 } else { 517 objectsEqual = objectsEqual && thisSalesOrderEndTime.equals(thatSalesOrderEndTime); 518 } 519 } 520 521 if(objectsEqual) { 522 Long thisPurchaseOrderStartTime = getPurchaseOrderStartTime(); 523 Long thatPurchaseOrderStartTime = that.getPurchaseOrderStartTime(); 524 525 if(thisPurchaseOrderStartTime == null) { 526 objectsEqual = objectsEqual && (thatPurchaseOrderStartTime == null); 527 } else { 528 objectsEqual = objectsEqual && thisPurchaseOrderStartTime.equals(thatPurchaseOrderStartTime); 529 } 530 } 531 532 if(objectsEqual) { 533 Long thisPurchaseOrderEndTime = getPurchaseOrderEndTime(); 534 Long thatPurchaseOrderEndTime = that.getPurchaseOrderEndTime(); 535 536 if(thisPurchaseOrderEndTime == null) { 537 objectsEqual = objectsEqual && (thatPurchaseOrderEndTime == null); 538 } else { 539 objectsEqual = objectsEqual && thisPurchaseOrderEndTime.equals(thatPurchaseOrderEndTime); 540 } 541 } 542 543 if(objectsEqual) { 544 Boolean thisAllowClubDiscounts = getAllowClubDiscounts(); 545 Boolean thatAllowClubDiscounts = that.getAllowClubDiscounts(); 546 547 if(thisAllowClubDiscounts == null) { 548 objectsEqual = objectsEqual && (thatAllowClubDiscounts == null); 549 } else { 550 objectsEqual = objectsEqual && thisAllowClubDiscounts.equals(thatAllowClubDiscounts); 551 } 552 } 553 554 if(objectsEqual) { 555 Boolean thisAllowCouponDiscounts = getAllowCouponDiscounts(); 556 Boolean thatAllowCouponDiscounts = that.getAllowCouponDiscounts(); 557 558 if(thisAllowCouponDiscounts == null) { 559 objectsEqual = objectsEqual && (thatAllowCouponDiscounts == null); 560 } else { 561 objectsEqual = objectsEqual && thisAllowCouponDiscounts.equals(thatAllowCouponDiscounts); 562 } 563 } 564 565 if(objectsEqual) { 566 Boolean thisAllowAssociatePayments = getAllowAssociatePayments(); 567 Boolean thatAllowAssociatePayments = that.getAllowAssociatePayments(); 568 569 if(thisAllowAssociatePayments == null) { 570 objectsEqual = objectsEqual && (thatAllowAssociatePayments == null); 571 } else { 572 objectsEqual = objectsEqual && thisAllowAssociatePayments.equals(thatAllowAssociatePayments); 573 } 574 } 575 576 if(objectsEqual) { 577 UnitOfMeasureKindPK thisUnitOfMeasureKindPK = getUnitOfMeasureKindPK(); 578 UnitOfMeasureKindPK thatUnitOfMeasureKindPK = that.getUnitOfMeasureKindPK(); 579 580 if(thisUnitOfMeasureKindPK == null) { 581 objectsEqual = objectsEqual && (thatUnitOfMeasureKindPK == null); 582 } else { 583 objectsEqual = objectsEqual && thisUnitOfMeasureKindPK.equals(thatUnitOfMeasureKindPK); 584 } 585 } 586 587 if(objectsEqual) { 588 ItemPriceTypePK thisItemPriceTypePK = getItemPriceTypePK(); 589 ItemPriceTypePK thatItemPriceTypePK = that.getItemPriceTypePK(); 590 591 if(thisItemPriceTypePK == null) { 592 objectsEqual = objectsEqual && (thatItemPriceTypePK == null); 593 } else { 594 objectsEqual = objectsEqual && thisItemPriceTypePK.equals(thatItemPriceTypePK); 595 } 596 } 597 598 if(objectsEqual) { 599 CancellationPolicyPK thisCancellationPolicyPK = getCancellationPolicyPK(); 600 CancellationPolicyPK thatCancellationPolicyPK = that.getCancellationPolicyPK(); 601 602 if(thisCancellationPolicyPK == null) { 603 objectsEqual = objectsEqual && (thatCancellationPolicyPK == null); 604 } else { 605 objectsEqual = objectsEqual && thisCancellationPolicyPK.equals(thatCancellationPolicyPK); 606 } 607 } 608 609 if(objectsEqual) { 610 ReturnPolicyPK thisReturnPolicyPK = getReturnPolicyPK(); 611 ReturnPolicyPK thatReturnPolicyPK = that.getReturnPolicyPK(); 612 613 if(thisReturnPolicyPK == null) { 614 objectsEqual = objectsEqual && (thatReturnPolicyPK == null); 615 } else { 616 objectsEqual = objectsEqual && thisReturnPolicyPK.equals(thatReturnPolicyPK); 617 } 618 } 619 620 if(objectsEqual) { 621 StylePathPK thisStylePathPK = getStylePathPK(); 622 StylePathPK thatStylePathPK = that.getStylePathPK(); 623 624 if(thisStylePathPK == null) { 625 objectsEqual = objectsEqual && (thatStylePathPK == null); 626 } else { 627 objectsEqual = objectsEqual && thisStylePathPK.equals(thatStylePathPK); 628 } 629 } 630 631 if(objectsEqual) { 632 Long thisFromTime = getFromTime(); 633 Long thatFromTime = that.getFromTime(); 634 635 if(thisFromTime == null) { 636 objectsEqual = objectsEqual && (thatFromTime == null); 637 } else { 638 objectsEqual = objectsEqual && thisFromTime.equals(thatFromTime); 639 } 640 } 641 642 if(objectsEqual) { 643 Long thisThruTime = getThruTime(); 644 Long thatThruTime = that.getThruTime(); 645 646 if(thisThruTime == null) { 647 objectsEqual = objectsEqual && (thatThruTime == null); 648 } else { 649 objectsEqual = objectsEqual && thisThruTime.equals(thatThruTime); 650 } 651 } 652 653 return objectsEqual; 654 } else { 655 return false; 656 } 657 } 658 659 @Override 660 public boolean hasBeenModified() { 661 return itemPKHasBeenModified || itemNameHasBeenModified || itemTypePKHasBeenModified || itemUseTypePKHasBeenModified || itemCategoryPKHasBeenModified || itemAccountingCategoryPKHasBeenModified || itemPurchasingCategoryPKHasBeenModified || companyPartyPKHasBeenModified || itemDeliveryTypePKHasBeenModified || itemInventoryTypePKHasBeenModified || inventorySerializedHasBeenModified || serialNumberSequencePKHasBeenModified || shippingChargeExemptHasBeenModified || shippingStartTimeHasBeenModified || shippingEndTimeHasBeenModified || salesOrderStartTimeHasBeenModified || salesOrderEndTimeHasBeenModified || purchaseOrderStartTimeHasBeenModified || purchaseOrderEndTimeHasBeenModified || allowClubDiscountsHasBeenModified || allowCouponDiscountsHasBeenModified || allowAssociatePaymentsHasBeenModified || unitOfMeasureKindPKHasBeenModified || itemPriceTypePKHasBeenModified || cancellationPolicyPKHasBeenModified || returnPolicyPKHasBeenModified || stylePathPKHasBeenModified || fromTimeHasBeenModified || thruTimeHasBeenModified; 662 } 663 664 @Override 665 public void clearHasBeenModified() { 666 itemPKHasBeenModified = false; 667 itemNameHasBeenModified = false; 668 itemTypePKHasBeenModified = false; 669 itemUseTypePKHasBeenModified = false; 670 itemCategoryPKHasBeenModified = false; 671 itemAccountingCategoryPKHasBeenModified = false; 672 itemPurchasingCategoryPKHasBeenModified = false; 673 companyPartyPKHasBeenModified = false; 674 itemDeliveryTypePKHasBeenModified = false; 675 itemInventoryTypePKHasBeenModified = false; 676 inventorySerializedHasBeenModified = false; 677 serialNumberSequencePKHasBeenModified = false; 678 shippingChargeExemptHasBeenModified = false; 679 shippingStartTimeHasBeenModified = false; 680 shippingEndTimeHasBeenModified = false; 681 salesOrderStartTimeHasBeenModified = false; 682 salesOrderEndTimeHasBeenModified = false; 683 purchaseOrderStartTimeHasBeenModified = false; 684 purchaseOrderEndTimeHasBeenModified = false; 685 allowClubDiscountsHasBeenModified = false; 686 allowCouponDiscountsHasBeenModified = false; 687 allowAssociatePaymentsHasBeenModified = false; 688 unitOfMeasureKindPKHasBeenModified = false; 689 itemPriceTypePKHasBeenModified = false; 690 cancellationPolicyPKHasBeenModified = false; 691 returnPolicyPKHasBeenModified = false; 692 stylePathPKHasBeenModified = false; 693 fromTimeHasBeenModified = false; 694 thruTimeHasBeenModified = false; 695 } 696 697 public ItemPK getItemPK() { 698 return itemPK; 699 } 700 701 public void setItemPK(ItemPK itemPK) 702 throws PersistenceNotNullException { 703 checkForNull(itemPK); 704 705 boolean update = true; 706 707 if(this.itemPK != null) { 708 if(this.itemPK.equals(itemPK)) { 709 update = false; 710 } 711 } else if(itemPK == null) { 712 update = false; 713 } 714 715 if(update) { 716 this.itemPK = itemPK; 717 itemPKHasBeenModified = true; 718 clearHashAndString(); 719 } 720 } 721 722 public boolean getItemPKHasBeenModified() { 723 return itemPKHasBeenModified; 724 } 725 726 public String getItemName() { 727 return itemName; 728 } 729 730 public void setItemName(String itemName) 731 throws PersistenceNotNullException { 732 checkForNull(itemName); 733 734 boolean update = true; 735 736 if(this.itemName != null) { 737 if(this.itemName.equals(itemName)) { 738 update = false; 739 } 740 } else if(itemName == null) { 741 update = false; 742 } 743 744 if(update) { 745 this.itemName = itemName; 746 itemNameHasBeenModified = true; 747 clearHashAndString(); 748 } 749 } 750 751 public boolean getItemNameHasBeenModified() { 752 return itemNameHasBeenModified; 753 } 754 755 public ItemTypePK getItemTypePK() { 756 return itemTypePK; 757 } 758 759 public void setItemTypePK(ItemTypePK itemTypePK) 760 throws PersistenceNotNullException { 761 checkForNull(itemTypePK); 762 763 boolean update = true; 764 765 if(this.itemTypePK != null) { 766 if(this.itemTypePK.equals(itemTypePK)) { 767 update = false; 768 } 769 } else if(itemTypePK == null) { 770 update = false; 771 } 772 773 if(update) { 774 this.itemTypePK = itemTypePK; 775 itemTypePKHasBeenModified = true; 776 clearHashAndString(); 777 } 778 } 779 780 public boolean getItemTypePKHasBeenModified() { 781 return itemTypePKHasBeenModified; 782 } 783 784 public ItemUseTypePK getItemUseTypePK() { 785 return itemUseTypePK; 786 } 787 788 public void setItemUseTypePK(ItemUseTypePK itemUseTypePK) 789 throws PersistenceNotNullException { 790 checkForNull(itemUseTypePK); 791 792 boolean update = true; 793 794 if(this.itemUseTypePK != null) { 795 if(this.itemUseTypePK.equals(itemUseTypePK)) { 796 update = false; 797 } 798 } else if(itemUseTypePK == null) { 799 update = false; 800 } 801 802 if(update) { 803 this.itemUseTypePK = itemUseTypePK; 804 itemUseTypePKHasBeenModified = true; 805 clearHashAndString(); 806 } 807 } 808 809 public boolean getItemUseTypePKHasBeenModified() { 810 return itemUseTypePKHasBeenModified; 811 } 812 813 public ItemCategoryPK getItemCategoryPK() { 814 return itemCategoryPK; 815 } 816 817 public void setItemCategoryPK(ItemCategoryPK itemCategoryPK) 818 throws PersistenceNotNullException { 819 checkForNull(itemCategoryPK); 820 821 boolean update = true; 822 823 if(this.itemCategoryPK != null) { 824 if(this.itemCategoryPK.equals(itemCategoryPK)) { 825 update = false; 826 } 827 } else if(itemCategoryPK == null) { 828 update = false; 829 } 830 831 if(update) { 832 this.itemCategoryPK = itemCategoryPK; 833 itemCategoryPKHasBeenModified = true; 834 clearHashAndString(); 835 } 836 } 837 838 public boolean getItemCategoryPKHasBeenModified() { 839 return itemCategoryPKHasBeenModified; 840 } 841 842 public ItemAccountingCategoryPK getItemAccountingCategoryPK() { 843 return itemAccountingCategoryPK; 844 } 845 846 public void setItemAccountingCategoryPK(ItemAccountingCategoryPK itemAccountingCategoryPK) { 847 boolean update = true; 848 849 if(this.itemAccountingCategoryPK != null) { 850 if(this.itemAccountingCategoryPK.equals(itemAccountingCategoryPK)) { 851 update = false; 852 } 853 } else if(itemAccountingCategoryPK == null) { 854 update = false; 855 } 856 857 if(update) { 858 this.itemAccountingCategoryPK = itemAccountingCategoryPK; 859 itemAccountingCategoryPKHasBeenModified = true; 860 clearHashAndString(); 861 } 862 } 863 864 public boolean getItemAccountingCategoryPKHasBeenModified() { 865 return itemAccountingCategoryPKHasBeenModified; 866 } 867 868 public ItemPurchasingCategoryPK getItemPurchasingCategoryPK() { 869 return itemPurchasingCategoryPK; 870 } 871 872 public void setItemPurchasingCategoryPK(ItemPurchasingCategoryPK itemPurchasingCategoryPK) { 873 boolean update = true; 874 875 if(this.itemPurchasingCategoryPK != null) { 876 if(this.itemPurchasingCategoryPK.equals(itemPurchasingCategoryPK)) { 877 update = false; 878 } 879 } else if(itemPurchasingCategoryPK == null) { 880 update = false; 881 } 882 883 if(update) { 884 this.itemPurchasingCategoryPK = itemPurchasingCategoryPK; 885 itemPurchasingCategoryPKHasBeenModified = true; 886 clearHashAndString(); 887 } 888 } 889 890 public boolean getItemPurchasingCategoryPKHasBeenModified() { 891 return itemPurchasingCategoryPKHasBeenModified; 892 } 893 894 public PartyPK getCompanyPartyPK() { 895 return companyPartyPK; 896 } 897 898 public void setCompanyPartyPK(PartyPK companyPartyPK) 899 throws PersistenceNotNullException { 900 checkForNull(companyPartyPK); 901 902 boolean update = true; 903 904 if(this.companyPartyPK != null) { 905 if(this.companyPartyPK.equals(companyPartyPK)) { 906 update = false; 907 } 908 } else if(companyPartyPK == null) { 909 update = false; 910 } 911 912 if(update) { 913 this.companyPartyPK = companyPartyPK; 914 companyPartyPKHasBeenModified = true; 915 clearHashAndString(); 916 } 917 } 918 919 public boolean getCompanyPartyPKHasBeenModified() { 920 return companyPartyPKHasBeenModified; 921 } 922 923 public ItemDeliveryTypePK getItemDeliveryTypePK() { 924 return itemDeliveryTypePK; 925 } 926 927 public void setItemDeliveryTypePK(ItemDeliveryTypePK itemDeliveryTypePK) { 928 boolean update = true; 929 930 if(this.itemDeliveryTypePK != null) { 931 if(this.itemDeliveryTypePK.equals(itemDeliveryTypePK)) { 932 update = false; 933 } 934 } else if(itemDeliveryTypePK == null) { 935 update = false; 936 } 937 938 if(update) { 939 this.itemDeliveryTypePK = itemDeliveryTypePK; 940 itemDeliveryTypePKHasBeenModified = true; 941 clearHashAndString(); 942 } 943 } 944 945 public boolean getItemDeliveryTypePKHasBeenModified() { 946 return itemDeliveryTypePKHasBeenModified; 947 } 948 949 public ItemInventoryTypePK getItemInventoryTypePK() { 950 return itemInventoryTypePK; 951 } 952 953 public void setItemInventoryTypePK(ItemInventoryTypePK itemInventoryTypePK) { 954 boolean update = true; 955 956 if(this.itemInventoryTypePK != null) { 957 if(this.itemInventoryTypePK.equals(itemInventoryTypePK)) { 958 update = false; 959 } 960 } else if(itemInventoryTypePK == null) { 961 update = false; 962 } 963 964 if(update) { 965 this.itemInventoryTypePK = itemInventoryTypePK; 966 itemInventoryTypePKHasBeenModified = true; 967 clearHashAndString(); 968 } 969 } 970 971 public boolean getItemInventoryTypePKHasBeenModified() { 972 return itemInventoryTypePKHasBeenModified; 973 } 974 975 public Boolean getInventorySerialized() { 976 return inventorySerialized; 977 } 978 979 public void setInventorySerialized(Boolean inventorySerialized) { 980 boolean update = true; 981 982 if(this.inventorySerialized != null) { 983 if(this.inventorySerialized.equals(inventorySerialized)) { 984 update = false; 985 } 986 } else if(inventorySerialized == null) { 987 update = false; 988 } 989 990 if(update) { 991 this.inventorySerialized = inventorySerialized; 992 inventorySerializedHasBeenModified = true; 993 clearHashAndString(); 994 } 995 } 996 997 public boolean getInventorySerializedHasBeenModified() { 998 return inventorySerializedHasBeenModified; 999 } 1000 1001 public SequencePK getSerialNumberSequencePK() { 1002 return serialNumberSequencePK; 1003 } 1004 1005 public void setSerialNumberSequencePK(SequencePK serialNumberSequencePK) { 1006 boolean update = true; 1007 1008 if(this.serialNumberSequencePK != null) { 1009 if(this.serialNumberSequencePK.equals(serialNumberSequencePK)) { 1010 update = false; 1011 } 1012 } else if(serialNumberSequencePK == null) { 1013 update = false; 1014 } 1015 1016 if(update) { 1017 this.serialNumberSequencePK = serialNumberSequencePK; 1018 serialNumberSequencePKHasBeenModified = true; 1019 clearHashAndString(); 1020 } 1021 } 1022 1023 public boolean getSerialNumberSequencePKHasBeenModified() { 1024 return serialNumberSequencePKHasBeenModified; 1025 } 1026 1027 public Boolean getShippingChargeExempt() { 1028 return shippingChargeExempt; 1029 } 1030 1031 public void setShippingChargeExempt(Boolean shippingChargeExempt) 1032 throws PersistenceNotNullException { 1033 checkForNull(shippingChargeExempt); 1034 1035 boolean update = true; 1036 1037 if(this.shippingChargeExempt != null) { 1038 if(this.shippingChargeExempt.equals(shippingChargeExempt)) { 1039 update = false; 1040 } 1041 } else if(shippingChargeExempt == null) { 1042 update = false; 1043 } 1044 1045 if(update) { 1046 this.shippingChargeExempt = shippingChargeExempt; 1047 shippingChargeExemptHasBeenModified = true; 1048 clearHashAndString(); 1049 } 1050 } 1051 1052 public boolean getShippingChargeExemptHasBeenModified() { 1053 return shippingChargeExemptHasBeenModified; 1054 } 1055 1056 public Long getShippingStartTime() { 1057 return shippingStartTime; 1058 } 1059 1060 public void setShippingStartTime(Long shippingStartTime) 1061 throws PersistenceNotNullException { 1062 checkForNull(shippingStartTime); 1063 1064 boolean update = true; 1065 1066 if(this.shippingStartTime != null) { 1067 if(this.shippingStartTime.equals(shippingStartTime)) { 1068 update = false; 1069 } 1070 } else if(shippingStartTime == null) { 1071 update = false; 1072 } 1073 1074 if(update) { 1075 this.shippingStartTime = shippingStartTime; 1076 shippingStartTimeHasBeenModified = true; 1077 clearHashAndString(); 1078 } 1079 } 1080 1081 public boolean getShippingStartTimeHasBeenModified() { 1082 return shippingStartTimeHasBeenModified; 1083 } 1084 1085 public Long getShippingEndTime() { 1086 return shippingEndTime; 1087 } 1088 1089 public void setShippingEndTime(Long shippingEndTime) { 1090 boolean update = true; 1091 1092 if(this.shippingEndTime != null) { 1093 if(this.shippingEndTime.equals(shippingEndTime)) { 1094 update = false; 1095 } 1096 } else if(shippingEndTime == null) { 1097 update = false; 1098 } 1099 1100 if(update) { 1101 this.shippingEndTime = shippingEndTime; 1102 shippingEndTimeHasBeenModified = true; 1103 clearHashAndString(); 1104 } 1105 } 1106 1107 public boolean getShippingEndTimeHasBeenModified() { 1108 return shippingEndTimeHasBeenModified; 1109 } 1110 1111 public Long getSalesOrderStartTime() { 1112 return salesOrderStartTime; 1113 } 1114 1115 public void setSalesOrderStartTime(Long salesOrderStartTime) 1116 throws PersistenceNotNullException { 1117 checkForNull(salesOrderStartTime); 1118 1119 boolean update = true; 1120 1121 if(this.salesOrderStartTime != null) { 1122 if(this.salesOrderStartTime.equals(salesOrderStartTime)) { 1123 update = false; 1124 } 1125 } else if(salesOrderStartTime == null) { 1126 update = false; 1127 } 1128 1129 if(update) { 1130 this.salesOrderStartTime = salesOrderStartTime; 1131 salesOrderStartTimeHasBeenModified = true; 1132 clearHashAndString(); 1133 } 1134 } 1135 1136 public boolean getSalesOrderStartTimeHasBeenModified() { 1137 return salesOrderStartTimeHasBeenModified; 1138 } 1139 1140 public Long getSalesOrderEndTime() { 1141 return salesOrderEndTime; 1142 } 1143 1144 public void setSalesOrderEndTime(Long salesOrderEndTime) { 1145 boolean update = true; 1146 1147 if(this.salesOrderEndTime != null) { 1148 if(this.salesOrderEndTime.equals(salesOrderEndTime)) { 1149 update = false; 1150 } 1151 } else if(salesOrderEndTime == null) { 1152 update = false; 1153 } 1154 1155 if(update) { 1156 this.salesOrderEndTime = salesOrderEndTime; 1157 salesOrderEndTimeHasBeenModified = true; 1158 clearHashAndString(); 1159 } 1160 } 1161 1162 public boolean getSalesOrderEndTimeHasBeenModified() { 1163 return salesOrderEndTimeHasBeenModified; 1164 } 1165 1166 public Long getPurchaseOrderStartTime() { 1167 return purchaseOrderStartTime; 1168 } 1169 1170 public void setPurchaseOrderStartTime(Long purchaseOrderStartTime) { 1171 boolean update = true; 1172 1173 if(this.purchaseOrderStartTime != null) { 1174 if(this.purchaseOrderStartTime.equals(purchaseOrderStartTime)) { 1175 update = false; 1176 } 1177 } else if(purchaseOrderStartTime == null) { 1178 update = false; 1179 } 1180 1181 if(update) { 1182 this.purchaseOrderStartTime = purchaseOrderStartTime; 1183 purchaseOrderStartTimeHasBeenModified = true; 1184 clearHashAndString(); 1185 } 1186 } 1187 1188 public boolean getPurchaseOrderStartTimeHasBeenModified() { 1189 return purchaseOrderStartTimeHasBeenModified; 1190 } 1191 1192 public Long getPurchaseOrderEndTime() { 1193 return purchaseOrderEndTime; 1194 } 1195 1196 public void setPurchaseOrderEndTime(Long purchaseOrderEndTime) { 1197 boolean update = true; 1198 1199 if(this.purchaseOrderEndTime != null) { 1200 if(this.purchaseOrderEndTime.equals(purchaseOrderEndTime)) { 1201 update = false; 1202 } 1203 } else if(purchaseOrderEndTime == null) { 1204 update = false; 1205 } 1206 1207 if(update) { 1208 this.purchaseOrderEndTime = purchaseOrderEndTime; 1209 purchaseOrderEndTimeHasBeenModified = true; 1210 clearHashAndString(); 1211 } 1212 } 1213 1214 public boolean getPurchaseOrderEndTimeHasBeenModified() { 1215 return purchaseOrderEndTimeHasBeenModified; 1216 } 1217 1218 public Boolean getAllowClubDiscounts() { 1219 return allowClubDiscounts; 1220 } 1221 1222 public void setAllowClubDiscounts(Boolean allowClubDiscounts) 1223 throws PersistenceNotNullException { 1224 checkForNull(allowClubDiscounts); 1225 1226 boolean update = true; 1227 1228 if(this.allowClubDiscounts != null) { 1229 if(this.allowClubDiscounts.equals(allowClubDiscounts)) { 1230 update = false; 1231 } 1232 } else if(allowClubDiscounts == null) { 1233 update = false; 1234 } 1235 1236 if(update) { 1237 this.allowClubDiscounts = allowClubDiscounts; 1238 allowClubDiscountsHasBeenModified = true; 1239 clearHashAndString(); 1240 } 1241 } 1242 1243 public boolean getAllowClubDiscountsHasBeenModified() { 1244 return allowClubDiscountsHasBeenModified; 1245 } 1246 1247 public Boolean getAllowCouponDiscounts() { 1248 return allowCouponDiscounts; 1249 } 1250 1251 public void setAllowCouponDiscounts(Boolean allowCouponDiscounts) 1252 throws PersistenceNotNullException { 1253 checkForNull(allowCouponDiscounts); 1254 1255 boolean update = true; 1256 1257 if(this.allowCouponDiscounts != null) { 1258 if(this.allowCouponDiscounts.equals(allowCouponDiscounts)) { 1259 update = false; 1260 } 1261 } else if(allowCouponDiscounts == null) { 1262 update = false; 1263 } 1264 1265 if(update) { 1266 this.allowCouponDiscounts = allowCouponDiscounts; 1267 allowCouponDiscountsHasBeenModified = true; 1268 clearHashAndString(); 1269 } 1270 } 1271 1272 public boolean getAllowCouponDiscountsHasBeenModified() { 1273 return allowCouponDiscountsHasBeenModified; 1274 } 1275 1276 public Boolean getAllowAssociatePayments() { 1277 return allowAssociatePayments; 1278 } 1279 1280 public void setAllowAssociatePayments(Boolean allowAssociatePayments) 1281 throws PersistenceNotNullException { 1282 checkForNull(allowAssociatePayments); 1283 1284 boolean update = true; 1285 1286 if(this.allowAssociatePayments != null) { 1287 if(this.allowAssociatePayments.equals(allowAssociatePayments)) { 1288 update = false; 1289 } 1290 } else if(allowAssociatePayments == null) { 1291 update = false; 1292 } 1293 1294 if(update) { 1295 this.allowAssociatePayments = allowAssociatePayments; 1296 allowAssociatePaymentsHasBeenModified = true; 1297 clearHashAndString(); 1298 } 1299 } 1300 1301 public boolean getAllowAssociatePaymentsHasBeenModified() { 1302 return allowAssociatePaymentsHasBeenModified; 1303 } 1304 1305 public UnitOfMeasureKindPK getUnitOfMeasureKindPK() { 1306 return unitOfMeasureKindPK; 1307 } 1308 1309 public void setUnitOfMeasureKindPK(UnitOfMeasureKindPK unitOfMeasureKindPK) 1310 throws PersistenceNotNullException { 1311 checkForNull(unitOfMeasureKindPK); 1312 1313 boolean update = true; 1314 1315 if(this.unitOfMeasureKindPK != null) { 1316 if(this.unitOfMeasureKindPK.equals(unitOfMeasureKindPK)) { 1317 update = false; 1318 } 1319 } else if(unitOfMeasureKindPK == null) { 1320 update = false; 1321 } 1322 1323 if(update) { 1324 this.unitOfMeasureKindPK = unitOfMeasureKindPK; 1325 unitOfMeasureKindPKHasBeenModified = true; 1326 clearHashAndString(); 1327 } 1328 } 1329 1330 public boolean getUnitOfMeasureKindPKHasBeenModified() { 1331 return unitOfMeasureKindPKHasBeenModified; 1332 } 1333 1334 public ItemPriceTypePK getItemPriceTypePK() { 1335 return itemPriceTypePK; 1336 } 1337 1338 public void setItemPriceTypePK(ItemPriceTypePK itemPriceTypePK) 1339 throws PersistenceNotNullException { 1340 checkForNull(itemPriceTypePK); 1341 1342 boolean update = true; 1343 1344 if(this.itemPriceTypePK != null) { 1345 if(this.itemPriceTypePK.equals(itemPriceTypePK)) { 1346 update = false; 1347 } 1348 } else if(itemPriceTypePK == null) { 1349 update = false; 1350 } 1351 1352 if(update) { 1353 this.itemPriceTypePK = itemPriceTypePK; 1354 itemPriceTypePKHasBeenModified = true; 1355 clearHashAndString(); 1356 } 1357 } 1358 1359 public boolean getItemPriceTypePKHasBeenModified() { 1360 return itemPriceTypePKHasBeenModified; 1361 } 1362 1363 public CancellationPolicyPK getCancellationPolicyPK() { 1364 return cancellationPolicyPK; 1365 } 1366 1367 public void setCancellationPolicyPK(CancellationPolicyPK cancellationPolicyPK) { 1368 boolean update = true; 1369 1370 if(this.cancellationPolicyPK != null) { 1371 if(this.cancellationPolicyPK.equals(cancellationPolicyPK)) { 1372 update = false; 1373 } 1374 } else if(cancellationPolicyPK == null) { 1375 update = false; 1376 } 1377 1378 if(update) { 1379 this.cancellationPolicyPK = cancellationPolicyPK; 1380 cancellationPolicyPKHasBeenModified = true; 1381 clearHashAndString(); 1382 } 1383 } 1384 1385 public boolean getCancellationPolicyPKHasBeenModified() { 1386 return cancellationPolicyPKHasBeenModified; 1387 } 1388 1389 public ReturnPolicyPK getReturnPolicyPK() { 1390 return returnPolicyPK; 1391 } 1392 1393 public void setReturnPolicyPK(ReturnPolicyPK returnPolicyPK) { 1394 boolean update = true; 1395 1396 if(this.returnPolicyPK != null) { 1397 if(this.returnPolicyPK.equals(returnPolicyPK)) { 1398 update = false; 1399 } 1400 } else if(returnPolicyPK == null) { 1401 update = false; 1402 } 1403 1404 if(update) { 1405 this.returnPolicyPK = returnPolicyPK; 1406 returnPolicyPKHasBeenModified = true; 1407 clearHashAndString(); 1408 } 1409 } 1410 1411 public boolean getReturnPolicyPKHasBeenModified() { 1412 return returnPolicyPKHasBeenModified; 1413 } 1414 1415 public StylePathPK getStylePathPK() { 1416 return stylePathPK; 1417 } 1418 1419 public void setStylePathPK(StylePathPK stylePathPK) { 1420 boolean update = true; 1421 1422 if(this.stylePathPK != null) { 1423 if(this.stylePathPK.equals(stylePathPK)) { 1424 update = false; 1425 } 1426 } else if(stylePathPK == null) { 1427 update = false; 1428 } 1429 1430 if(update) { 1431 this.stylePathPK = stylePathPK; 1432 stylePathPKHasBeenModified = true; 1433 clearHashAndString(); 1434 } 1435 } 1436 1437 public boolean getStylePathPKHasBeenModified() { 1438 return stylePathPKHasBeenModified; 1439 } 1440 1441 public Long getFromTime() { 1442 return fromTime; 1443 } 1444 1445 public void setFromTime(Long fromTime) 1446 throws PersistenceNotNullException { 1447 checkForNull(fromTime); 1448 1449 boolean update = true; 1450 1451 if(this.fromTime != null) { 1452 if(this.fromTime.equals(fromTime)) { 1453 update = false; 1454 } 1455 } else if(fromTime == null) { 1456 update = false; 1457 } 1458 1459 if(update) { 1460 this.fromTime = fromTime; 1461 fromTimeHasBeenModified = true; 1462 clearHashAndString(); 1463 } 1464 } 1465 1466 public boolean getFromTimeHasBeenModified() { 1467 return fromTimeHasBeenModified; 1468 } 1469 1470 public Long getThruTime() { 1471 return thruTime; 1472 } 1473 1474 public void setThruTime(Long thruTime) 1475 throws PersistenceNotNullException { 1476 checkForNull(thruTime); 1477 1478 boolean update = true; 1479 1480 if(this.thruTime != null) { 1481 if(this.thruTime.equals(thruTime)) { 1482 update = false; 1483 } 1484 } else if(thruTime == null) { 1485 update = false; 1486 } 1487 1488 if(update) { 1489 this.thruTime = thruTime; 1490 thruTimeHasBeenModified = true; 1491 clearHashAndString(); 1492 } 1493 } 1494 1495 public boolean getThruTimeHasBeenModified() { 1496 return thruTimeHasBeenModified; 1497 } 1498 1499}