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 * ShipmentDetailValue.java
021 */
022
023package com.echothree.model.data.shipment.server.value;
024
025import com.echothree.model.data.shipment.common.pk.ShipmentDetailPK;
026
027import com.echothree.model.data.shipment.server.factory.ShipmentDetailFactory;
028
029import com.echothree.model.data.shipment.common.pk.ShipmentPK;
030import com.echothree.model.data.shipment.common.pk.ShipmentTypePK;
031import com.echothree.model.data.party.common.pk.PartyPK;
032import com.echothree.model.data.contact.common.pk.PartyContactMechanismPK;
033import com.echothree.model.data.shipping.common.pk.ShippingMethodPK;
034
035import com.echothree.util.common.exception.PersistenceCloneException;
036import com.echothree.util.common.exception.PersistenceNotNullException;
037
038import com.echothree.util.server.persistence.BaseValue;
039
040import java.io.Serializable;
041
042public class ShipmentDetailValue
043        extends BaseValue<ShipmentDetailPK>
044        implements Cloneable, Serializable {
045    
046    private ShipmentPK shipmentPK;
047    private boolean shipmentPKHasBeenModified = false;
048    private ShipmentTypePK shipmentTypePK;
049    private boolean shipmentTypePKHasBeenModified = false;
050    private String shipmentName;
051    private boolean shipmentNameHasBeenModified = false;
052    private PartyPK originPartyPK;
053    private boolean originPartyPKHasBeenModified = false;
054    private PartyPK originWarehousePartyPK;
055    private boolean originWarehousePartyPKHasBeenModified = false;
056    private PartyContactMechanismPK originPartyContactMechanismPK;
057    private boolean originPartyContactMechanismPKHasBeenModified = false;
058    private PartyPK destinationPartyPK;
059    private boolean destinationPartyPKHasBeenModified = false;
060    private PartyPK destinationWarehousePartyPK;
061    private boolean destinationWarehousePartyPKHasBeenModified = false;
062    private PartyContactMechanismPK destinationPartyContactMechanismPK;
063    private boolean destinationPartyContactMechanismPKHasBeenModified = false;
064    private ShippingMethodPK shippingMethodPK;
065    private boolean shippingMethodPKHasBeenModified = false;
066    private Long fromTime;
067    private boolean fromTimeHasBeenModified = false;
068    private Long thruTime;
069    private boolean thruTimeHasBeenModified = false;
070    
071    private transient Integer _hashCode = null;
072    private transient String _stringValue = null;
073    
074    private void constructFields(ShipmentPK shipmentPK, ShipmentTypePK shipmentTypePK, String shipmentName, PartyPK originPartyPK, PartyPK originWarehousePartyPK, PartyContactMechanismPK originPartyContactMechanismPK, PartyPK destinationPartyPK, PartyPK destinationWarehousePartyPK, PartyContactMechanismPK destinationPartyContactMechanismPK, ShippingMethodPK shippingMethodPK, Long fromTime, Long thruTime)
075            throws PersistenceNotNullException {
076        checkForNull(shipmentPK);
077        this.shipmentPK = shipmentPK;
078        checkForNull(shipmentTypePK);
079        this.shipmentTypePK = shipmentTypePK;
080        checkForNull(shipmentName);
081        this.shipmentName = shipmentName;
082        checkForNull(originPartyPK);
083        this.originPartyPK = originPartyPK;
084        this.originWarehousePartyPK = originWarehousePartyPK;
085        this.originPartyContactMechanismPK = originPartyContactMechanismPK;
086        checkForNull(destinationPartyPK);
087        this.destinationPartyPK = destinationPartyPK;
088        this.destinationWarehousePartyPK = destinationWarehousePartyPK;
089        this.destinationPartyContactMechanismPK = destinationPartyContactMechanismPK;
090        this.shippingMethodPK = shippingMethodPK;
091        checkForNull(fromTime);
092        this.fromTime = fromTime;
093        checkForNull(thruTime);
094        this.thruTime = thruTime;
095    }
096    
097    /** Creates a new instance of ShipmentDetailValue */
098    public ShipmentDetailValue(ShipmentDetailPK shipmentDetailPK, ShipmentPK shipmentPK, ShipmentTypePK shipmentTypePK, String shipmentName, PartyPK originPartyPK, PartyPK originWarehousePartyPK, PartyContactMechanismPK originPartyContactMechanismPK, PartyPK destinationPartyPK, PartyPK destinationWarehousePartyPK, PartyContactMechanismPK destinationPartyContactMechanismPK, ShippingMethodPK shippingMethodPK, Long fromTime, Long thruTime)
099            throws PersistenceNotNullException {
100        super(shipmentDetailPK);
101        constructFields(shipmentPK, shipmentTypePK, shipmentName, originPartyPK, originWarehousePartyPK, originPartyContactMechanismPK, destinationPartyPK, destinationWarehousePartyPK, destinationPartyContactMechanismPK, shippingMethodPK, fromTime, thruTime);
102    }
103    
104    /** Creates a new instance of ShipmentDetailValue */
105    public ShipmentDetailValue(ShipmentPK shipmentPK, ShipmentTypePK shipmentTypePK, String shipmentName, PartyPK originPartyPK, PartyPK originWarehousePartyPK, PartyContactMechanismPK originPartyContactMechanismPK, PartyPK destinationPartyPK, PartyPK destinationWarehousePartyPK, PartyContactMechanismPK destinationPartyContactMechanismPK, ShippingMethodPK shippingMethodPK, Long fromTime, Long thruTime)
106            throws PersistenceNotNullException {
107        super();
108        constructFields(shipmentPK, shipmentTypePK, shipmentName, originPartyPK, originWarehousePartyPK, originPartyContactMechanismPK, destinationPartyPK, destinationWarehousePartyPK, destinationPartyContactMechanismPK, shippingMethodPK, fromTime, thruTime);
109    }
110    
111   @Override
112   public ShipmentDetailFactory getBaseFactoryInstance() {
113        return ShipmentDetailFactory.getInstance();
114    }
115    
116    @Override
117    public ShipmentDetailValue clone() {
118        Object result;
119        
120        try {
121            result = super.clone();
122        } catch (CloneNotSupportedException cnse) {
123            // This shouldn't happen, fail when it does.
124            throw new PersistenceCloneException(cnse);
125        }
126        
127        return (ShipmentDetailValue)result;
128    }
129    
130   @Override
131    public ShipmentDetailPK getPrimaryKey() {
132        if(_primaryKey == null) {
133            _primaryKey = new ShipmentDetailPK(entityId);
134        }
135        
136        return _primaryKey;
137    }
138    
139    private void clearHashAndString() {
140        _hashCode = null;
141        _stringValue = null;
142    }
143    
144    @Override
145    public int hashCode() {
146        if(_hashCode == null) {
147            int hashCode = 17;
148            
149            hashCode = 37 * hashCode + ((entityId != null) ? entityId.hashCode() : 0);
150            
151            hashCode = 37 * hashCode + ((shipmentPK != null) ? shipmentPK.hashCode() : 0);
152            hashCode = 37 * hashCode + ((shipmentTypePK != null) ? shipmentTypePK.hashCode() : 0);
153            hashCode = 37 * hashCode + ((shipmentName != null) ? shipmentName.hashCode() : 0);
154            hashCode = 37 * hashCode + ((originPartyPK != null) ? originPartyPK.hashCode() : 0);
155            hashCode = 37 * hashCode + ((originWarehousePartyPK != null) ? originWarehousePartyPK.hashCode() : 0);
156            hashCode = 37 * hashCode + ((originPartyContactMechanismPK != null) ? originPartyContactMechanismPK.hashCode() : 0);
157            hashCode = 37 * hashCode + ((destinationPartyPK != null) ? destinationPartyPK.hashCode() : 0);
158            hashCode = 37 * hashCode + ((destinationWarehousePartyPK != null) ? destinationWarehousePartyPK.hashCode() : 0);
159            hashCode = 37 * hashCode + ((destinationPartyContactMechanismPK != null) ? destinationPartyContactMechanismPK.hashCode() : 0);
160            hashCode = 37 * hashCode + ((shippingMethodPK != null) ? shippingMethodPK.hashCode() : 0);
161            hashCode = 37 * hashCode + ((fromTime != null) ? fromTime.hashCode() : 0);
162            hashCode = 37 * hashCode + ((thruTime != null) ? thruTime.hashCode() : 0);
163            
164            _hashCode = hashCode;
165        }
166        
167        return _hashCode;
168    }
169    
170    @Override
171    public String toString() {
172        if(_stringValue == null) {
173            StringBuilder stringValue = new StringBuilder("{");
174            
175            stringValue.append("entityId=").append(getEntityId());
176            
177            stringValue.append(", shipmentPK=").append(getShipmentPK());
178            stringValue.append(", shipmentTypePK=").append(getShipmentTypePK());
179            stringValue.append(", shipmentName=").append(getShipmentName());
180            stringValue.append(", originPartyPK=").append(getOriginPartyPK());
181            stringValue.append(", originWarehousePartyPK=").append(getOriginWarehousePartyPK());
182            stringValue.append(", originPartyContactMechanismPK=").append(getOriginPartyContactMechanismPK());
183            stringValue.append(", destinationPartyPK=").append(getDestinationPartyPK());
184            stringValue.append(", destinationWarehousePartyPK=").append(getDestinationWarehousePartyPK());
185            stringValue.append(", destinationPartyContactMechanismPK=").append(getDestinationPartyContactMechanismPK());
186            stringValue.append(", shippingMethodPK=").append(getShippingMethodPK());
187            stringValue.append(", fromTime=").append(getFromTime());
188            stringValue.append(", thruTime=").append(getThruTime());
189            
190            stringValue.append('}');
191            
192            _stringValue = stringValue.toString();
193        }
194        return _stringValue;
195    }
196    
197    @Override
198    public boolean equals(Object other) {
199        if(this == other)
200            return true;
201        
202        if(!hasIdentity())
203            return false;
204        
205        if(other instanceof  ShipmentDetailValue) {
206            ShipmentDetailValue that = (ShipmentDetailValue)other;
207            
208            if(!that.hasIdentity())
209                return false;
210            
211            Long thisEntityId = getEntityId();
212            Long thatEntityId = that.getEntityId();
213            
214            boolean objectsEqual = thisEntityId.equals(thatEntityId);
215            if(objectsEqual)
216                objectsEqual = objectsEqual && isIdentical(that);
217            
218            return objectsEqual;
219        } else {
220            return false;
221        }
222    }
223    
224    public boolean isIdentical(Object other) {
225        if(other instanceof ShipmentDetailValue) {
226            ShipmentDetailValue that = (ShipmentDetailValue)other;
227            boolean objectsEqual = true;
228            
229            
230            if(objectsEqual) {
231                ShipmentPK thisShipmentPK = getShipmentPK();
232                ShipmentPK thatShipmentPK = that.getShipmentPK();
233                
234                if(thisShipmentPK == null) {
235                    objectsEqual = objectsEqual && (thatShipmentPK == null);
236                } else {
237                    objectsEqual = objectsEqual && thisShipmentPK.equals(thatShipmentPK);
238                }
239            }
240            
241            if(objectsEqual) {
242                ShipmentTypePK thisShipmentTypePK = getShipmentTypePK();
243                ShipmentTypePK thatShipmentTypePK = that.getShipmentTypePK();
244                
245                if(thisShipmentTypePK == null) {
246                    objectsEqual = objectsEqual && (thatShipmentTypePK == null);
247                } else {
248                    objectsEqual = objectsEqual && thisShipmentTypePK.equals(thatShipmentTypePK);
249                }
250            }
251            
252            if(objectsEqual) {
253                String thisShipmentName = getShipmentName();
254                String thatShipmentName = that.getShipmentName();
255                
256                if(thisShipmentName == null) {
257                    objectsEqual = objectsEqual && (thatShipmentName == null);
258                } else {
259                    objectsEqual = objectsEqual && thisShipmentName.equals(thatShipmentName);
260                }
261            }
262            
263            if(objectsEqual) {
264                PartyPK thisOriginPartyPK = getOriginPartyPK();
265                PartyPK thatOriginPartyPK = that.getOriginPartyPK();
266                
267                if(thisOriginPartyPK == null) {
268                    objectsEqual = objectsEqual && (thatOriginPartyPK == null);
269                } else {
270                    objectsEqual = objectsEqual && thisOriginPartyPK.equals(thatOriginPartyPK);
271                }
272            }
273            
274            if(objectsEqual) {
275                PartyPK thisOriginWarehousePartyPK = getOriginWarehousePartyPK();
276                PartyPK thatOriginWarehousePartyPK = that.getOriginWarehousePartyPK();
277                
278                if(thisOriginWarehousePartyPK == null) {
279                    objectsEqual = objectsEqual && (thatOriginWarehousePartyPK == null);
280                } else {
281                    objectsEqual = objectsEqual && thisOriginWarehousePartyPK.equals(thatOriginWarehousePartyPK);
282                }
283            }
284            
285            if(objectsEqual) {
286                PartyContactMechanismPK thisOriginPartyContactMechanismPK = getOriginPartyContactMechanismPK();
287                PartyContactMechanismPK thatOriginPartyContactMechanismPK = that.getOriginPartyContactMechanismPK();
288                
289                if(thisOriginPartyContactMechanismPK == null) {
290                    objectsEqual = objectsEqual && (thatOriginPartyContactMechanismPK == null);
291                } else {
292                    objectsEqual = objectsEqual && thisOriginPartyContactMechanismPK.equals(thatOriginPartyContactMechanismPK);
293                }
294            }
295            
296            if(objectsEqual) {
297                PartyPK thisDestinationPartyPK = getDestinationPartyPK();
298                PartyPK thatDestinationPartyPK = that.getDestinationPartyPK();
299                
300                if(thisDestinationPartyPK == null) {
301                    objectsEqual = objectsEqual && (thatDestinationPartyPK == null);
302                } else {
303                    objectsEqual = objectsEqual && thisDestinationPartyPK.equals(thatDestinationPartyPK);
304                }
305            }
306            
307            if(objectsEqual) {
308                PartyPK thisDestinationWarehousePartyPK = getDestinationWarehousePartyPK();
309                PartyPK thatDestinationWarehousePartyPK = that.getDestinationWarehousePartyPK();
310                
311                if(thisDestinationWarehousePartyPK == null) {
312                    objectsEqual = objectsEqual && (thatDestinationWarehousePartyPK == null);
313                } else {
314                    objectsEqual = objectsEqual && thisDestinationWarehousePartyPK.equals(thatDestinationWarehousePartyPK);
315                }
316            }
317            
318            if(objectsEqual) {
319                PartyContactMechanismPK thisDestinationPartyContactMechanismPK = getDestinationPartyContactMechanismPK();
320                PartyContactMechanismPK thatDestinationPartyContactMechanismPK = that.getDestinationPartyContactMechanismPK();
321                
322                if(thisDestinationPartyContactMechanismPK == null) {
323                    objectsEqual = objectsEqual && (thatDestinationPartyContactMechanismPK == null);
324                } else {
325                    objectsEqual = objectsEqual && thisDestinationPartyContactMechanismPK.equals(thatDestinationPartyContactMechanismPK);
326                }
327            }
328            
329            if(objectsEqual) {
330                ShippingMethodPK thisShippingMethodPK = getShippingMethodPK();
331                ShippingMethodPK thatShippingMethodPK = that.getShippingMethodPK();
332                
333                if(thisShippingMethodPK == null) {
334                    objectsEqual = objectsEqual && (thatShippingMethodPK == null);
335                } else {
336                    objectsEqual = objectsEqual && thisShippingMethodPK.equals(thatShippingMethodPK);
337                }
338            }
339            
340            if(objectsEqual) {
341                Long thisFromTime = getFromTime();
342                Long thatFromTime = that.getFromTime();
343                
344                if(thisFromTime == null) {
345                    objectsEqual = objectsEqual && (thatFromTime == null);
346                } else {
347                    objectsEqual = objectsEqual && thisFromTime.equals(thatFromTime);
348                }
349            }
350            
351            if(objectsEqual) {
352                Long thisThruTime = getThruTime();
353                Long thatThruTime = that.getThruTime();
354                
355                if(thisThruTime == null) {
356                    objectsEqual = objectsEqual && (thatThruTime == null);
357                } else {
358                    objectsEqual = objectsEqual && thisThruTime.equals(thatThruTime);
359                }
360            }
361            
362            return objectsEqual;
363        } else {
364            return false;
365        }
366    }
367    
368    @Override
369    public boolean hasBeenModified() {
370        return shipmentPKHasBeenModified || shipmentTypePKHasBeenModified || shipmentNameHasBeenModified || originPartyPKHasBeenModified || originWarehousePartyPKHasBeenModified || originPartyContactMechanismPKHasBeenModified || destinationPartyPKHasBeenModified || destinationWarehousePartyPKHasBeenModified || destinationPartyContactMechanismPKHasBeenModified || shippingMethodPKHasBeenModified || fromTimeHasBeenModified || thruTimeHasBeenModified;
371    }
372    
373    @Override
374    public void clearHasBeenModified() {
375        shipmentPKHasBeenModified = false;
376        shipmentTypePKHasBeenModified = false;
377        shipmentNameHasBeenModified = false;
378        originPartyPKHasBeenModified = false;
379        originWarehousePartyPKHasBeenModified = false;
380        originPartyContactMechanismPKHasBeenModified = false;
381        destinationPartyPKHasBeenModified = false;
382        destinationWarehousePartyPKHasBeenModified = false;
383        destinationPartyContactMechanismPKHasBeenModified = false;
384        shippingMethodPKHasBeenModified = false;
385        fromTimeHasBeenModified = false;
386        thruTimeHasBeenModified = false;
387    }
388    
389    public ShipmentPK getShipmentPK() {
390        return shipmentPK;
391    }
392    
393    public void setShipmentPK(ShipmentPK shipmentPK)
394            throws PersistenceNotNullException {
395        checkForNull(shipmentPK);
396        
397        boolean update = true;
398        
399        if(this.shipmentPK != null) {
400            if(this.shipmentPK.equals(shipmentPK)) {
401                update = false;
402            }
403        } else if(shipmentPK == null) {
404            update = false;
405        }
406        
407        if(update) {
408            this.shipmentPK = shipmentPK;
409            shipmentPKHasBeenModified = true;
410            clearHashAndString();
411        }
412    }
413    
414    public boolean getShipmentPKHasBeenModified() {
415        return shipmentPKHasBeenModified;
416    }
417    
418    public ShipmentTypePK getShipmentTypePK() {
419        return shipmentTypePK;
420    }
421    
422    public void setShipmentTypePK(ShipmentTypePK shipmentTypePK)
423            throws PersistenceNotNullException {
424        checkForNull(shipmentTypePK);
425        
426        boolean update = true;
427        
428        if(this.shipmentTypePK != null) {
429            if(this.shipmentTypePK.equals(shipmentTypePK)) {
430                update = false;
431            }
432        } else if(shipmentTypePK == null) {
433            update = false;
434        }
435        
436        if(update) {
437            this.shipmentTypePK = shipmentTypePK;
438            shipmentTypePKHasBeenModified = true;
439            clearHashAndString();
440        }
441    }
442    
443    public boolean getShipmentTypePKHasBeenModified() {
444        return shipmentTypePKHasBeenModified;
445    }
446    
447    public String getShipmentName() {
448        return shipmentName;
449    }
450    
451    public void setShipmentName(String shipmentName)
452            throws PersistenceNotNullException {
453        checkForNull(shipmentName);
454        
455        boolean update = true;
456        
457        if(this.shipmentName != null) {
458            if(this.shipmentName.equals(shipmentName)) {
459                update = false;
460            }
461        } else if(shipmentName == null) {
462            update = false;
463        }
464        
465        if(update) {
466            this.shipmentName = shipmentName;
467            shipmentNameHasBeenModified = true;
468            clearHashAndString();
469        }
470    }
471    
472    public boolean getShipmentNameHasBeenModified() {
473        return shipmentNameHasBeenModified;
474    }
475    
476    public PartyPK getOriginPartyPK() {
477        return originPartyPK;
478    }
479    
480    public void setOriginPartyPK(PartyPK originPartyPK)
481            throws PersistenceNotNullException {
482        checkForNull(originPartyPK);
483        
484        boolean update = true;
485        
486        if(this.originPartyPK != null) {
487            if(this.originPartyPK.equals(originPartyPK)) {
488                update = false;
489            }
490        } else if(originPartyPK == null) {
491            update = false;
492        }
493        
494        if(update) {
495            this.originPartyPK = originPartyPK;
496            originPartyPKHasBeenModified = true;
497            clearHashAndString();
498        }
499    }
500    
501    public boolean getOriginPartyPKHasBeenModified() {
502        return originPartyPKHasBeenModified;
503    }
504    
505    public PartyPK getOriginWarehousePartyPK() {
506        return originWarehousePartyPK;
507    }
508    
509    public void setOriginWarehousePartyPK(PartyPK originWarehousePartyPK) {
510        boolean update = true;
511        
512        if(this.originWarehousePartyPK != null) {
513            if(this.originWarehousePartyPK.equals(originWarehousePartyPK)) {
514                update = false;
515            }
516        } else if(originWarehousePartyPK == null) {
517            update = false;
518        }
519        
520        if(update) {
521            this.originWarehousePartyPK = originWarehousePartyPK;
522            originWarehousePartyPKHasBeenModified = true;
523            clearHashAndString();
524        }
525    }
526    
527    public boolean getOriginWarehousePartyPKHasBeenModified() {
528        return originWarehousePartyPKHasBeenModified;
529    }
530    
531    public PartyContactMechanismPK getOriginPartyContactMechanismPK() {
532        return originPartyContactMechanismPK;
533    }
534    
535    public void setOriginPartyContactMechanismPK(PartyContactMechanismPK originPartyContactMechanismPK) {
536        boolean update = true;
537        
538        if(this.originPartyContactMechanismPK != null) {
539            if(this.originPartyContactMechanismPK.equals(originPartyContactMechanismPK)) {
540                update = false;
541            }
542        } else if(originPartyContactMechanismPK == null) {
543            update = false;
544        }
545        
546        if(update) {
547            this.originPartyContactMechanismPK = originPartyContactMechanismPK;
548            originPartyContactMechanismPKHasBeenModified = true;
549            clearHashAndString();
550        }
551    }
552    
553    public boolean getOriginPartyContactMechanismPKHasBeenModified() {
554        return originPartyContactMechanismPKHasBeenModified;
555    }
556    
557    public PartyPK getDestinationPartyPK() {
558        return destinationPartyPK;
559    }
560    
561    public void setDestinationPartyPK(PartyPK destinationPartyPK)
562            throws PersistenceNotNullException {
563        checkForNull(destinationPartyPK);
564        
565        boolean update = true;
566        
567        if(this.destinationPartyPK != null) {
568            if(this.destinationPartyPK.equals(destinationPartyPK)) {
569                update = false;
570            }
571        } else if(destinationPartyPK == null) {
572            update = false;
573        }
574        
575        if(update) {
576            this.destinationPartyPK = destinationPartyPK;
577            destinationPartyPKHasBeenModified = true;
578            clearHashAndString();
579        }
580    }
581    
582    public boolean getDestinationPartyPKHasBeenModified() {
583        return destinationPartyPKHasBeenModified;
584    }
585    
586    public PartyPK getDestinationWarehousePartyPK() {
587        return destinationWarehousePartyPK;
588    }
589    
590    public void setDestinationWarehousePartyPK(PartyPK destinationWarehousePartyPK) {
591        boolean update = true;
592        
593        if(this.destinationWarehousePartyPK != null) {
594            if(this.destinationWarehousePartyPK.equals(destinationWarehousePartyPK)) {
595                update = false;
596            }
597        } else if(destinationWarehousePartyPK == null) {
598            update = false;
599        }
600        
601        if(update) {
602            this.destinationWarehousePartyPK = destinationWarehousePartyPK;
603            destinationWarehousePartyPKHasBeenModified = true;
604            clearHashAndString();
605        }
606    }
607    
608    public boolean getDestinationWarehousePartyPKHasBeenModified() {
609        return destinationWarehousePartyPKHasBeenModified;
610    }
611    
612    public PartyContactMechanismPK getDestinationPartyContactMechanismPK() {
613        return destinationPartyContactMechanismPK;
614    }
615    
616    public void setDestinationPartyContactMechanismPK(PartyContactMechanismPK destinationPartyContactMechanismPK) {
617        boolean update = true;
618        
619        if(this.destinationPartyContactMechanismPK != null) {
620            if(this.destinationPartyContactMechanismPK.equals(destinationPartyContactMechanismPK)) {
621                update = false;
622            }
623        } else if(destinationPartyContactMechanismPK == null) {
624            update = false;
625        }
626        
627        if(update) {
628            this.destinationPartyContactMechanismPK = destinationPartyContactMechanismPK;
629            destinationPartyContactMechanismPKHasBeenModified = true;
630            clearHashAndString();
631        }
632    }
633    
634    public boolean getDestinationPartyContactMechanismPKHasBeenModified() {
635        return destinationPartyContactMechanismPKHasBeenModified;
636    }
637    
638    public ShippingMethodPK getShippingMethodPK() {
639        return shippingMethodPK;
640    }
641    
642    public void setShippingMethodPK(ShippingMethodPK shippingMethodPK) {
643        boolean update = true;
644        
645        if(this.shippingMethodPK != null) {
646            if(this.shippingMethodPK.equals(shippingMethodPK)) {
647                update = false;
648            }
649        } else if(shippingMethodPK == null) {
650            update = false;
651        }
652        
653        if(update) {
654            this.shippingMethodPK = shippingMethodPK;
655            shippingMethodPKHasBeenModified = true;
656            clearHashAndString();
657        }
658    }
659    
660    public boolean getShippingMethodPKHasBeenModified() {
661        return shippingMethodPKHasBeenModified;
662    }
663    
664    public Long getFromTime() {
665        return fromTime;
666    }
667    
668    public void setFromTime(Long fromTime)
669            throws PersistenceNotNullException {
670        checkForNull(fromTime);
671        
672        boolean update = true;
673        
674        if(this.fromTime != null) {
675            if(this.fromTime.equals(fromTime)) {
676                update = false;
677            }
678        } else if(fromTime == null) {
679            update = false;
680        }
681        
682        if(update) {
683            this.fromTime = fromTime;
684            fromTimeHasBeenModified = true;
685            clearHashAndString();
686        }
687    }
688    
689    public boolean getFromTimeHasBeenModified() {
690        return fromTimeHasBeenModified;
691    }
692    
693    public Long getThruTime() {
694        return thruTime;
695    }
696    
697    public void setThruTime(Long thruTime)
698            throws PersistenceNotNullException {
699        checkForNull(thruTime);
700        
701        boolean update = true;
702        
703        if(this.thruTime != null) {
704            if(this.thruTime.equals(thruTime)) {
705                update = false;
706            }
707        } else if(thruTime == null) {
708            update = false;
709        }
710        
711        if(update) {
712            this.thruTime = thruTime;
713            thruTimeHasBeenModified = true;
714            clearHashAndString();
715        }
716    }
717    
718    public boolean getThruTimeHasBeenModified() {
719        return thruTimeHasBeenModified;
720    }
721    
722}