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