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 * GeoCodeCountryValue.java
021 */
022
023package com.echothree.model.data.geo.server.value;
024
025import com.echothree.model.data.geo.common.pk.GeoCodeCountryPK;
026
027import com.echothree.model.data.geo.server.factory.GeoCodeCountryFactory;
028
029import com.echothree.model.data.geo.common.pk.GeoCodePK;
030import com.echothree.model.data.contact.common.pk.PostalAddressFormatPK;
031
032import com.echothree.util.common.exception.PersistenceCloneException;
033import com.echothree.util.common.exception.PersistenceNotNullException;
034
035import com.echothree.util.server.persistence.BaseValue;
036
037import java.io.Serializable;
038
039public class GeoCodeCountryValue
040        extends BaseValue<GeoCodeCountryPK>
041        implements Cloneable, Serializable {
042    
043    private GeoCodePK geoCodePK;
044    private boolean geoCodePKHasBeenModified = false;
045    private String telephoneCode;
046    private boolean telephoneCodeHasBeenModified = false;
047    private String areaCodePattern;
048    private boolean areaCodePatternHasBeenModified = false;
049    private Boolean areaCodeRequired;
050    private boolean areaCodeRequiredHasBeenModified = false;
051    private String areaCodeExample;
052    private boolean areaCodeExampleHasBeenModified = false;
053    private String telephoneNumberPattern;
054    private boolean telephoneNumberPatternHasBeenModified = false;
055    private String telephoneNumberExample;
056    private boolean telephoneNumberExampleHasBeenModified = false;
057    private PostalAddressFormatPK postalAddressFormatPK;
058    private boolean postalAddressFormatPKHasBeenModified = false;
059    private Boolean cityRequired;
060    private boolean cityRequiredHasBeenModified = false;
061    private Boolean cityGeoCodeRequired;
062    private boolean cityGeoCodeRequiredHasBeenModified = false;
063    private Boolean stateRequired;
064    private boolean stateRequiredHasBeenModified = false;
065    private Boolean stateGeoCodeRequired;
066    private boolean stateGeoCodeRequiredHasBeenModified = false;
067    private String postalCodePattern;
068    private boolean postalCodePatternHasBeenModified = false;
069    private Boolean postalCodeRequired;
070    private boolean postalCodeRequiredHasBeenModified = false;
071    private Boolean postalCodeGeoCodeRequired;
072    private boolean postalCodeGeoCodeRequiredHasBeenModified = false;
073    private Integer postalCodeLength;
074    private boolean postalCodeLengthHasBeenModified = false;
075    private Integer postalCodeGeoCodeLength;
076    private boolean postalCodeGeoCodeLengthHasBeenModified = false;
077    private String postalCodeExample;
078    private boolean postalCodeExampleHasBeenModified = false;
079    private Long fromTime;
080    private boolean fromTimeHasBeenModified = false;
081    private Long thruTime;
082    private boolean thruTimeHasBeenModified = false;
083    
084    private transient Integer _hashCode = null;
085    private transient String _stringValue = null;
086    
087    private void constructFields(GeoCodePK geoCodePK, String telephoneCode, String areaCodePattern, Boolean areaCodeRequired, String areaCodeExample, String telephoneNumberPattern, String telephoneNumberExample, PostalAddressFormatPK postalAddressFormatPK, Boolean cityRequired, Boolean cityGeoCodeRequired, Boolean stateRequired, Boolean stateGeoCodeRequired, String postalCodePattern, Boolean postalCodeRequired, Boolean postalCodeGeoCodeRequired, Integer postalCodeLength, Integer postalCodeGeoCodeLength, String postalCodeExample, Long fromTime, Long thruTime)
088            throws PersistenceNotNullException {
089        checkForNull(geoCodePK);
090        this.geoCodePK = geoCodePK;
091        this.telephoneCode = telephoneCode;
092        this.areaCodePattern = areaCodePattern;
093        checkForNull(areaCodeRequired);
094        this.areaCodeRequired = areaCodeRequired;
095        this.areaCodeExample = areaCodeExample;
096        this.telephoneNumberPattern = telephoneNumberPattern;
097        this.telephoneNumberExample = telephoneNumberExample;
098        checkForNull(postalAddressFormatPK);
099        this.postalAddressFormatPK = postalAddressFormatPK;
100        checkForNull(cityRequired);
101        this.cityRequired = cityRequired;
102        checkForNull(cityGeoCodeRequired);
103        this.cityGeoCodeRequired = cityGeoCodeRequired;
104        checkForNull(stateRequired);
105        this.stateRequired = stateRequired;
106        checkForNull(stateGeoCodeRequired);
107        this.stateGeoCodeRequired = stateGeoCodeRequired;
108        this.postalCodePattern = postalCodePattern;
109        checkForNull(postalCodeRequired);
110        this.postalCodeRequired = postalCodeRequired;
111        checkForNull(postalCodeGeoCodeRequired);
112        this.postalCodeGeoCodeRequired = postalCodeGeoCodeRequired;
113        this.postalCodeLength = postalCodeLength;
114        this.postalCodeGeoCodeLength = postalCodeGeoCodeLength;
115        this.postalCodeExample = postalCodeExample;
116        checkForNull(fromTime);
117        this.fromTime = fromTime;
118        checkForNull(thruTime);
119        this.thruTime = thruTime;
120    }
121    
122    /** Creates a new instance of GeoCodeCountryValue */
123    public GeoCodeCountryValue(GeoCodeCountryPK geoCodeCountryPK, GeoCodePK geoCodePK, String telephoneCode, String areaCodePattern, Boolean areaCodeRequired, String areaCodeExample, String telephoneNumberPattern, String telephoneNumberExample, PostalAddressFormatPK postalAddressFormatPK, Boolean cityRequired, Boolean cityGeoCodeRequired, Boolean stateRequired, Boolean stateGeoCodeRequired, String postalCodePattern, Boolean postalCodeRequired, Boolean postalCodeGeoCodeRequired, Integer postalCodeLength, Integer postalCodeGeoCodeLength, String postalCodeExample, Long fromTime, Long thruTime)
124            throws PersistenceNotNullException {
125        super(geoCodeCountryPK);
126        constructFields(geoCodePK, telephoneCode, areaCodePattern, areaCodeRequired, areaCodeExample, telephoneNumberPattern, telephoneNumberExample, postalAddressFormatPK, cityRequired, cityGeoCodeRequired, stateRequired, stateGeoCodeRequired, postalCodePattern, postalCodeRequired, postalCodeGeoCodeRequired, postalCodeLength, postalCodeGeoCodeLength, postalCodeExample, fromTime, thruTime);
127    }
128    
129    /** Creates a new instance of GeoCodeCountryValue */
130    public GeoCodeCountryValue(GeoCodePK geoCodePK, String telephoneCode, String areaCodePattern, Boolean areaCodeRequired, String areaCodeExample, String telephoneNumberPattern, String telephoneNumberExample, PostalAddressFormatPK postalAddressFormatPK, Boolean cityRequired, Boolean cityGeoCodeRequired, Boolean stateRequired, Boolean stateGeoCodeRequired, String postalCodePattern, Boolean postalCodeRequired, Boolean postalCodeGeoCodeRequired, Integer postalCodeLength, Integer postalCodeGeoCodeLength, String postalCodeExample, Long fromTime, Long thruTime)
131            throws PersistenceNotNullException {
132        super();
133        constructFields(geoCodePK, telephoneCode, areaCodePattern, areaCodeRequired, areaCodeExample, telephoneNumberPattern, telephoneNumberExample, postalAddressFormatPK, cityRequired, cityGeoCodeRequired, stateRequired, stateGeoCodeRequired, postalCodePattern, postalCodeRequired, postalCodeGeoCodeRequired, postalCodeLength, postalCodeGeoCodeLength, postalCodeExample, fromTime, thruTime);
134    }
135    
136   @Override
137   public GeoCodeCountryFactory getBaseFactoryInstance() {
138        return GeoCodeCountryFactory.getInstance();
139    }
140    
141    @Override
142    public GeoCodeCountryValue clone() {
143        Object result;
144        
145        try {
146            result = super.clone();
147        } catch (CloneNotSupportedException cnse) {
148            // This shouldn't happen, fail when it does.
149            throw new PersistenceCloneException(cnse);
150        }
151        
152        return (GeoCodeCountryValue)result;
153    }
154    
155   @Override
156    public GeoCodeCountryPK getPrimaryKey() {
157        if(_primaryKey == null) {
158            _primaryKey = new GeoCodeCountryPK(entityId);
159        }
160        
161        return _primaryKey;
162    }
163    
164    private void clearHashAndString() {
165        _hashCode = null;
166        _stringValue = null;
167    }
168    
169    @Override
170    public int hashCode() {
171        if(_hashCode == null) {
172            int hashCode = 17;
173            
174            hashCode = 37 * hashCode + ((entityId != null) ? entityId.hashCode() : 0);
175            
176            hashCode = 37 * hashCode + ((geoCodePK != null) ? geoCodePK.hashCode() : 0);
177            hashCode = 37 * hashCode + ((telephoneCode != null) ? telephoneCode.hashCode() : 0);
178            hashCode = 37 * hashCode + ((areaCodePattern != null) ? areaCodePattern.hashCode() : 0);
179            hashCode = 37 * hashCode + ((areaCodeRequired != null) ? areaCodeRequired.hashCode() : 0);
180            hashCode = 37 * hashCode + ((areaCodeExample != null) ? areaCodeExample.hashCode() : 0);
181            hashCode = 37 * hashCode + ((telephoneNumberPattern != null) ? telephoneNumberPattern.hashCode() : 0);
182            hashCode = 37 * hashCode + ((telephoneNumberExample != null) ? telephoneNumberExample.hashCode() : 0);
183            hashCode = 37 * hashCode + ((postalAddressFormatPK != null) ? postalAddressFormatPK.hashCode() : 0);
184            hashCode = 37 * hashCode + ((cityRequired != null) ? cityRequired.hashCode() : 0);
185            hashCode = 37 * hashCode + ((cityGeoCodeRequired != null) ? cityGeoCodeRequired.hashCode() : 0);
186            hashCode = 37 * hashCode + ((stateRequired != null) ? stateRequired.hashCode() : 0);
187            hashCode = 37 * hashCode + ((stateGeoCodeRequired != null) ? stateGeoCodeRequired.hashCode() : 0);
188            hashCode = 37 * hashCode + ((postalCodePattern != null) ? postalCodePattern.hashCode() : 0);
189            hashCode = 37 * hashCode + ((postalCodeRequired != null) ? postalCodeRequired.hashCode() : 0);
190            hashCode = 37 * hashCode + ((postalCodeGeoCodeRequired != null) ? postalCodeGeoCodeRequired.hashCode() : 0);
191            hashCode = 37 * hashCode + ((postalCodeLength != null) ? postalCodeLength.hashCode() : 0);
192            hashCode = 37 * hashCode + ((postalCodeGeoCodeLength != null) ? postalCodeGeoCodeLength.hashCode() : 0);
193            hashCode = 37 * hashCode + ((postalCodeExample != null) ? postalCodeExample.hashCode() : 0);
194            hashCode = 37 * hashCode + ((fromTime != null) ? fromTime.hashCode() : 0);
195            hashCode = 37 * hashCode + ((thruTime != null) ? thruTime.hashCode() : 0);
196            
197            _hashCode = hashCode;
198        }
199        
200        return _hashCode;
201    }
202    
203    @Override
204    public String toString() {
205        if(_stringValue == null) {
206            _stringValue = "{" + 
207                    "entityId=" + getEntityId() +
208                    ", geoCodePK=" + getGeoCodePK() +
209                    ", telephoneCode=" + getTelephoneCode() +
210                    ", areaCodePattern=" + getAreaCodePattern() +
211                    ", areaCodeRequired=" + getAreaCodeRequired() +
212                    ", areaCodeExample=" + getAreaCodeExample() +
213                    ", telephoneNumberPattern=" + getTelephoneNumberPattern() +
214                    ", telephoneNumberExample=" + getTelephoneNumberExample() +
215                    ", postalAddressFormatPK=" + getPostalAddressFormatPK() +
216                    ", cityRequired=" + getCityRequired() +
217                    ", cityGeoCodeRequired=" + getCityGeoCodeRequired() +
218                    ", stateRequired=" + getStateRequired() +
219                    ", stateGeoCodeRequired=" + getStateGeoCodeRequired() +
220                    ", postalCodePattern=" + getPostalCodePattern() +
221                    ", postalCodeRequired=" + getPostalCodeRequired() +
222                    ", postalCodeGeoCodeRequired=" + getPostalCodeGeoCodeRequired() +
223                    ", postalCodeLength=" + getPostalCodeLength() +
224                    ", postalCodeGeoCodeLength=" + getPostalCodeGeoCodeLength() +
225                    ", postalCodeExample=" + getPostalCodeExample() +
226                    ", fromTime=" + getFromTime() +
227                    ", thruTime=" + getThruTime() +
228                    "}";
229        }
230        return _stringValue;
231    }
232    
233    @Override
234    public boolean equals(Object other) {
235        if(this == other)
236            return true;
237        
238        if(!hasIdentity())
239            return false;
240        
241        if(other instanceof  GeoCodeCountryValue that) {
242            if(!that.hasIdentity())
243                return false;
244            
245            Long thisEntityId = getEntityId();
246            Long thatEntityId = that.getEntityId();
247            
248            boolean objectsEqual = thisEntityId.equals(thatEntityId);
249            if(objectsEqual)
250                objectsEqual = isIdentical(that);
251            
252            return objectsEqual;
253        } else {
254            return false;
255        }
256    }
257    
258    public boolean isIdentical(Object other) {
259        if(other instanceof GeoCodeCountryValue that) {
260            boolean objectsEqual = true;
261            
262            
263            if(objectsEqual) {
264                GeoCodePK thisGeoCodePK = getGeoCodePK();
265                GeoCodePK thatGeoCodePK = that.getGeoCodePK();
266                
267                if(thisGeoCodePK == null) {
268                    objectsEqual = objectsEqual && (thatGeoCodePK == null);
269                } else {
270                    objectsEqual = objectsEqual && thisGeoCodePK.equals(thatGeoCodePK);
271                }
272            }
273            
274            if(objectsEqual) {
275                String thisTelephoneCode = getTelephoneCode();
276                String thatTelephoneCode = that.getTelephoneCode();
277                
278                if(thisTelephoneCode == null) {
279                    objectsEqual = objectsEqual && (thatTelephoneCode == null);
280                } else {
281                    objectsEqual = objectsEqual && thisTelephoneCode.equals(thatTelephoneCode);
282                }
283            }
284            
285            if(objectsEqual) {
286                String thisAreaCodePattern = getAreaCodePattern();
287                String thatAreaCodePattern = that.getAreaCodePattern();
288                
289                if(thisAreaCodePattern == null) {
290                    objectsEqual = objectsEqual && (thatAreaCodePattern == null);
291                } else {
292                    objectsEqual = objectsEqual && thisAreaCodePattern.equals(thatAreaCodePattern);
293                }
294            }
295            
296            if(objectsEqual) {
297                Boolean thisAreaCodeRequired = getAreaCodeRequired();
298                Boolean thatAreaCodeRequired = that.getAreaCodeRequired();
299                
300                if(thisAreaCodeRequired == null) {
301                    objectsEqual = objectsEqual && (thatAreaCodeRequired == null);
302                } else {
303                    objectsEqual = objectsEqual && thisAreaCodeRequired.equals(thatAreaCodeRequired);
304                }
305            }
306            
307            if(objectsEqual) {
308                String thisAreaCodeExample = getAreaCodeExample();
309                String thatAreaCodeExample = that.getAreaCodeExample();
310                
311                if(thisAreaCodeExample == null) {
312                    objectsEqual = objectsEqual && (thatAreaCodeExample == null);
313                } else {
314                    objectsEqual = objectsEqual && thisAreaCodeExample.equals(thatAreaCodeExample);
315                }
316            }
317            
318            if(objectsEqual) {
319                String thisTelephoneNumberPattern = getTelephoneNumberPattern();
320                String thatTelephoneNumberPattern = that.getTelephoneNumberPattern();
321                
322                if(thisTelephoneNumberPattern == null) {
323                    objectsEqual = objectsEqual && (thatTelephoneNumberPattern == null);
324                } else {
325                    objectsEqual = objectsEqual && thisTelephoneNumberPattern.equals(thatTelephoneNumberPattern);
326                }
327            }
328            
329            if(objectsEqual) {
330                String thisTelephoneNumberExample = getTelephoneNumberExample();
331                String thatTelephoneNumberExample = that.getTelephoneNumberExample();
332                
333                if(thisTelephoneNumberExample == null) {
334                    objectsEqual = objectsEqual && (thatTelephoneNumberExample == null);
335                } else {
336                    objectsEqual = objectsEqual && thisTelephoneNumberExample.equals(thatTelephoneNumberExample);
337                }
338            }
339            
340            if(objectsEqual) {
341                PostalAddressFormatPK thisPostalAddressFormatPK = getPostalAddressFormatPK();
342                PostalAddressFormatPK thatPostalAddressFormatPK = that.getPostalAddressFormatPK();
343                
344                if(thisPostalAddressFormatPK == null) {
345                    objectsEqual = objectsEqual && (thatPostalAddressFormatPK == null);
346                } else {
347                    objectsEqual = objectsEqual && thisPostalAddressFormatPK.equals(thatPostalAddressFormatPK);
348                }
349            }
350            
351            if(objectsEqual) {
352                Boolean thisCityRequired = getCityRequired();
353                Boolean thatCityRequired = that.getCityRequired();
354                
355                if(thisCityRequired == null) {
356                    objectsEqual = objectsEqual && (thatCityRequired == null);
357                } else {
358                    objectsEqual = objectsEqual && thisCityRequired.equals(thatCityRequired);
359                }
360            }
361            
362            if(objectsEqual) {
363                Boolean thisCityGeoCodeRequired = getCityGeoCodeRequired();
364                Boolean thatCityGeoCodeRequired = that.getCityGeoCodeRequired();
365                
366                if(thisCityGeoCodeRequired == null) {
367                    objectsEqual = objectsEqual && (thatCityGeoCodeRequired == null);
368                } else {
369                    objectsEqual = objectsEqual && thisCityGeoCodeRequired.equals(thatCityGeoCodeRequired);
370                }
371            }
372            
373            if(objectsEqual) {
374                Boolean thisStateRequired = getStateRequired();
375                Boolean thatStateRequired = that.getStateRequired();
376                
377                if(thisStateRequired == null) {
378                    objectsEqual = objectsEqual && (thatStateRequired == null);
379                } else {
380                    objectsEqual = objectsEqual && thisStateRequired.equals(thatStateRequired);
381                }
382            }
383            
384            if(objectsEqual) {
385                Boolean thisStateGeoCodeRequired = getStateGeoCodeRequired();
386                Boolean thatStateGeoCodeRequired = that.getStateGeoCodeRequired();
387                
388                if(thisStateGeoCodeRequired == null) {
389                    objectsEqual = objectsEqual && (thatStateGeoCodeRequired == null);
390                } else {
391                    objectsEqual = objectsEqual && thisStateGeoCodeRequired.equals(thatStateGeoCodeRequired);
392                }
393            }
394            
395            if(objectsEqual) {
396                String thisPostalCodePattern = getPostalCodePattern();
397                String thatPostalCodePattern = that.getPostalCodePattern();
398                
399                if(thisPostalCodePattern == null) {
400                    objectsEqual = objectsEqual && (thatPostalCodePattern == null);
401                } else {
402                    objectsEqual = objectsEqual && thisPostalCodePattern.equals(thatPostalCodePattern);
403                }
404            }
405            
406            if(objectsEqual) {
407                Boolean thisPostalCodeRequired = getPostalCodeRequired();
408                Boolean thatPostalCodeRequired = that.getPostalCodeRequired();
409                
410                if(thisPostalCodeRequired == null) {
411                    objectsEqual = objectsEqual && (thatPostalCodeRequired == null);
412                } else {
413                    objectsEqual = objectsEqual && thisPostalCodeRequired.equals(thatPostalCodeRequired);
414                }
415            }
416            
417            if(objectsEqual) {
418                Boolean thisPostalCodeGeoCodeRequired = getPostalCodeGeoCodeRequired();
419                Boolean thatPostalCodeGeoCodeRequired = that.getPostalCodeGeoCodeRequired();
420                
421                if(thisPostalCodeGeoCodeRequired == null) {
422                    objectsEqual = objectsEqual && (thatPostalCodeGeoCodeRequired == null);
423                } else {
424                    objectsEqual = objectsEqual && thisPostalCodeGeoCodeRequired.equals(thatPostalCodeGeoCodeRequired);
425                }
426            }
427            
428            if(objectsEqual) {
429                Integer thisPostalCodeLength = getPostalCodeLength();
430                Integer thatPostalCodeLength = that.getPostalCodeLength();
431                
432                if(thisPostalCodeLength == null) {
433                    objectsEqual = objectsEqual && (thatPostalCodeLength == null);
434                } else {
435                    objectsEqual = objectsEqual && thisPostalCodeLength.equals(thatPostalCodeLength);
436                }
437            }
438            
439            if(objectsEqual) {
440                Integer thisPostalCodeGeoCodeLength = getPostalCodeGeoCodeLength();
441                Integer thatPostalCodeGeoCodeLength = that.getPostalCodeGeoCodeLength();
442                
443                if(thisPostalCodeGeoCodeLength == null) {
444                    objectsEqual = objectsEqual && (thatPostalCodeGeoCodeLength == null);
445                } else {
446                    objectsEqual = objectsEqual && thisPostalCodeGeoCodeLength.equals(thatPostalCodeGeoCodeLength);
447                }
448            }
449            
450            if(objectsEqual) {
451                String thisPostalCodeExample = getPostalCodeExample();
452                String thatPostalCodeExample = that.getPostalCodeExample();
453                
454                if(thisPostalCodeExample == null) {
455                    objectsEqual = objectsEqual && (thatPostalCodeExample == null);
456                } else {
457                    objectsEqual = objectsEqual && thisPostalCodeExample.equals(thatPostalCodeExample);
458                }
459            }
460            
461            if(objectsEqual) {
462                Long thisFromTime = getFromTime();
463                Long thatFromTime = that.getFromTime();
464                
465                if(thisFromTime == null) {
466                    objectsEqual = objectsEqual && (thatFromTime == null);
467                } else {
468                    objectsEqual = objectsEqual && thisFromTime.equals(thatFromTime);
469                }
470            }
471            
472            if(objectsEqual) {
473                Long thisThruTime = getThruTime();
474                Long thatThruTime = that.getThruTime();
475                
476                if(thisThruTime == null) {
477                    objectsEqual = objectsEqual && (thatThruTime == null);
478                } else {
479                    objectsEqual = objectsEqual && thisThruTime.equals(thatThruTime);
480                }
481            }
482            
483            return objectsEqual;
484        } else {
485            return false;
486        }
487    }
488    
489    @Override
490    public boolean hasBeenModified() {
491        return geoCodePKHasBeenModified || telephoneCodeHasBeenModified || areaCodePatternHasBeenModified || areaCodeRequiredHasBeenModified || areaCodeExampleHasBeenModified || telephoneNumberPatternHasBeenModified || telephoneNumberExampleHasBeenModified || postalAddressFormatPKHasBeenModified || cityRequiredHasBeenModified || cityGeoCodeRequiredHasBeenModified || stateRequiredHasBeenModified || stateGeoCodeRequiredHasBeenModified || postalCodePatternHasBeenModified || postalCodeRequiredHasBeenModified || postalCodeGeoCodeRequiredHasBeenModified || postalCodeLengthHasBeenModified || postalCodeGeoCodeLengthHasBeenModified || postalCodeExampleHasBeenModified || fromTimeHasBeenModified || thruTimeHasBeenModified;
492    }
493    
494    @Override
495    public void clearHasBeenModified() {
496        geoCodePKHasBeenModified = false;
497        telephoneCodeHasBeenModified = false;
498        areaCodePatternHasBeenModified = false;
499        areaCodeRequiredHasBeenModified = false;
500        areaCodeExampleHasBeenModified = false;
501        telephoneNumberPatternHasBeenModified = false;
502        telephoneNumberExampleHasBeenModified = false;
503        postalAddressFormatPKHasBeenModified = false;
504        cityRequiredHasBeenModified = false;
505        cityGeoCodeRequiredHasBeenModified = false;
506        stateRequiredHasBeenModified = false;
507        stateGeoCodeRequiredHasBeenModified = false;
508        postalCodePatternHasBeenModified = false;
509        postalCodeRequiredHasBeenModified = false;
510        postalCodeGeoCodeRequiredHasBeenModified = false;
511        postalCodeLengthHasBeenModified = false;
512        postalCodeGeoCodeLengthHasBeenModified = false;
513        postalCodeExampleHasBeenModified = false;
514        fromTimeHasBeenModified = false;
515        thruTimeHasBeenModified = false;
516    }
517    
518    public GeoCodePK getGeoCodePK() {
519        return geoCodePK;
520    }
521    
522    public void setGeoCodePK(GeoCodePK geoCodePK)
523            throws PersistenceNotNullException {
524        checkForNull(geoCodePK);
525        
526        boolean update = true;
527        
528        if(this.geoCodePK != null) {
529            if(this.geoCodePK.equals(geoCodePK)) {
530                update = false;
531            }
532        } else if(geoCodePK == null) {
533            update = false;
534        }
535        
536        if(update) {
537            this.geoCodePK = geoCodePK;
538            geoCodePKHasBeenModified = true;
539            clearHashAndString();
540        }
541    }
542    
543    public boolean getGeoCodePKHasBeenModified() {
544        return geoCodePKHasBeenModified;
545    }
546    
547    public String getTelephoneCode() {
548        return telephoneCode;
549    }
550    
551    public void setTelephoneCode(String telephoneCode) {
552        boolean update = true;
553        
554        if(this.telephoneCode != null) {
555            if(this.telephoneCode.equals(telephoneCode)) {
556                update = false;
557            }
558        } else if(telephoneCode == null) {
559            update = false;
560        }
561        
562        if(update) {
563            this.telephoneCode = telephoneCode;
564            telephoneCodeHasBeenModified = true;
565            clearHashAndString();
566        }
567    }
568    
569    public boolean getTelephoneCodeHasBeenModified() {
570        return telephoneCodeHasBeenModified;
571    }
572    
573    public String getAreaCodePattern() {
574        return areaCodePattern;
575    }
576    
577    public void setAreaCodePattern(String areaCodePattern) {
578        boolean update = true;
579        
580        if(this.areaCodePattern != null) {
581            if(this.areaCodePattern.equals(areaCodePattern)) {
582                update = false;
583            }
584        } else if(areaCodePattern == null) {
585            update = false;
586        }
587        
588        if(update) {
589            this.areaCodePattern = areaCodePattern;
590            areaCodePatternHasBeenModified = true;
591            clearHashAndString();
592        }
593    }
594    
595    public boolean getAreaCodePatternHasBeenModified() {
596        return areaCodePatternHasBeenModified;
597    }
598    
599    public Boolean getAreaCodeRequired() {
600        return areaCodeRequired;
601    }
602    
603    public void setAreaCodeRequired(Boolean areaCodeRequired)
604            throws PersistenceNotNullException {
605        checkForNull(areaCodeRequired);
606        
607        boolean update = true;
608        
609        if(this.areaCodeRequired != null) {
610            if(this.areaCodeRequired.equals(areaCodeRequired)) {
611                update = false;
612            }
613        } else if(areaCodeRequired == null) {
614            update = false;
615        }
616        
617        if(update) {
618            this.areaCodeRequired = areaCodeRequired;
619            areaCodeRequiredHasBeenModified = true;
620            clearHashAndString();
621        }
622    }
623    
624    public boolean getAreaCodeRequiredHasBeenModified() {
625        return areaCodeRequiredHasBeenModified;
626    }
627    
628    public String getAreaCodeExample() {
629        return areaCodeExample;
630    }
631    
632    public void setAreaCodeExample(String areaCodeExample) {
633        boolean update = true;
634        
635        if(this.areaCodeExample != null) {
636            if(this.areaCodeExample.equals(areaCodeExample)) {
637                update = false;
638            }
639        } else if(areaCodeExample == null) {
640            update = false;
641        }
642        
643        if(update) {
644            this.areaCodeExample = areaCodeExample;
645            areaCodeExampleHasBeenModified = true;
646            clearHashAndString();
647        }
648    }
649    
650    public boolean getAreaCodeExampleHasBeenModified() {
651        return areaCodeExampleHasBeenModified;
652    }
653    
654    public String getTelephoneNumberPattern() {
655        return telephoneNumberPattern;
656    }
657    
658    public void setTelephoneNumberPattern(String telephoneNumberPattern) {
659        boolean update = true;
660        
661        if(this.telephoneNumberPattern != null) {
662            if(this.telephoneNumberPattern.equals(telephoneNumberPattern)) {
663                update = false;
664            }
665        } else if(telephoneNumberPattern == null) {
666            update = false;
667        }
668        
669        if(update) {
670            this.telephoneNumberPattern = telephoneNumberPattern;
671            telephoneNumberPatternHasBeenModified = true;
672            clearHashAndString();
673        }
674    }
675    
676    public boolean getTelephoneNumberPatternHasBeenModified() {
677        return telephoneNumberPatternHasBeenModified;
678    }
679    
680    public String getTelephoneNumberExample() {
681        return telephoneNumberExample;
682    }
683    
684    public void setTelephoneNumberExample(String telephoneNumberExample) {
685        boolean update = true;
686        
687        if(this.telephoneNumberExample != null) {
688            if(this.telephoneNumberExample.equals(telephoneNumberExample)) {
689                update = false;
690            }
691        } else if(telephoneNumberExample == null) {
692            update = false;
693        }
694        
695        if(update) {
696            this.telephoneNumberExample = telephoneNumberExample;
697            telephoneNumberExampleHasBeenModified = true;
698            clearHashAndString();
699        }
700    }
701    
702    public boolean getTelephoneNumberExampleHasBeenModified() {
703        return telephoneNumberExampleHasBeenModified;
704    }
705    
706    public PostalAddressFormatPK getPostalAddressFormatPK() {
707        return postalAddressFormatPK;
708    }
709    
710    public void setPostalAddressFormatPK(PostalAddressFormatPK postalAddressFormatPK)
711            throws PersistenceNotNullException {
712        checkForNull(postalAddressFormatPK);
713        
714        boolean update = true;
715        
716        if(this.postalAddressFormatPK != null) {
717            if(this.postalAddressFormatPK.equals(postalAddressFormatPK)) {
718                update = false;
719            }
720        } else if(postalAddressFormatPK == null) {
721            update = false;
722        }
723        
724        if(update) {
725            this.postalAddressFormatPK = postalAddressFormatPK;
726            postalAddressFormatPKHasBeenModified = true;
727            clearHashAndString();
728        }
729    }
730    
731    public boolean getPostalAddressFormatPKHasBeenModified() {
732        return postalAddressFormatPKHasBeenModified;
733    }
734    
735    public Boolean getCityRequired() {
736        return cityRequired;
737    }
738    
739    public void setCityRequired(Boolean cityRequired)
740            throws PersistenceNotNullException {
741        checkForNull(cityRequired);
742        
743        boolean update = true;
744        
745        if(this.cityRequired != null) {
746            if(this.cityRequired.equals(cityRequired)) {
747                update = false;
748            }
749        } else if(cityRequired == null) {
750            update = false;
751        }
752        
753        if(update) {
754            this.cityRequired = cityRequired;
755            cityRequiredHasBeenModified = true;
756            clearHashAndString();
757        }
758    }
759    
760    public boolean getCityRequiredHasBeenModified() {
761        return cityRequiredHasBeenModified;
762    }
763    
764    public Boolean getCityGeoCodeRequired() {
765        return cityGeoCodeRequired;
766    }
767    
768    public void setCityGeoCodeRequired(Boolean cityGeoCodeRequired)
769            throws PersistenceNotNullException {
770        checkForNull(cityGeoCodeRequired);
771        
772        boolean update = true;
773        
774        if(this.cityGeoCodeRequired != null) {
775            if(this.cityGeoCodeRequired.equals(cityGeoCodeRequired)) {
776                update = false;
777            }
778        } else if(cityGeoCodeRequired == null) {
779            update = false;
780        }
781        
782        if(update) {
783            this.cityGeoCodeRequired = cityGeoCodeRequired;
784            cityGeoCodeRequiredHasBeenModified = true;
785            clearHashAndString();
786        }
787    }
788    
789    public boolean getCityGeoCodeRequiredHasBeenModified() {
790        return cityGeoCodeRequiredHasBeenModified;
791    }
792    
793    public Boolean getStateRequired() {
794        return stateRequired;
795    }
796    
797    public void setStateRequired(Boolean stateRequired)
798            throws PersistenceNotNullException {
799        checkForNull(stateRequired);
800        
801        boolean update = true;
802        
803        if(this.stateRequired != null) {
804            if(this.stateRequired.equals(stateRequired)) {
805                update = false;
806            }
807        } else if(stateRequired == null) {
808            update = false;
809        }
810        
811        if(update) {
812            this.stateRequired = stateRequired;
813            stateRequiredHasBeenModified = true;
814            clearHashAndString();
815        }
816    }
817    
818    public boolean getStateRequiredHasBeenModified() {
819        return stateRequiredHasBeenModified;
820    }
821    
822    public Boolean getStateGeoCodeRequired() {
823        return stateGeoCodeRequired;
824    }
825    
826    public void setStateGeoCodeRequired(Boolean stateGeoCodeRequired)
827            throws PersistenceNotNullException {
828        checkForNull(stateGeoCodeRequired);
829        
830        boolean update = true;
831        
832        if(this.stateGeoCodeRequired != null) {
833            if(this.stateGeoCodeRequired.equals(stateGeoCodeRequired)) {
834                update = false;
835            }
836        } else if(stateGeoCodeRequired == null) {
837            update = false;
838        }
839        
840        if(update) {
841            this.stateGeoCodeRequired = stateGeoCodeRequired;
842            stateGeoCodeRequiredHasBeenModified = true;
843            clearHashAndString();
844        }
845    }
846    
847    public boolean getStateGeoCodeRequiredHasBeenModified() {
848        return stateGeoCodeRequiredHasBeenModified;
849    }
850    
851    public String getPostalCodePattern() {
852        return postalCodePattern;
853    }
854    
855    public void setPostalCodePattern(String postalCodePattern) {
856        boolean update = true;
857        
858        if(this.postalCodePattern != null) {
859            if(this.postalCodePattern.equals(postalCodePattern)) {
860                update = false;
861            }
862        } else if(postalCodePattern == null) {
863            update = false;
864        }
865        
866        if(update) {
867            this.postalCodePattern = postalCodePattern;
868            postalCodePatternHasBeenModified = true;
869            clearHashAndString();
870        }
871    }
872    
873    public boolean getPostalCodePatternHasBeenModified() {
874        return postalCodePatternHasBeenModified;
875    }
876    
877    public Boolean getPostalCodeRequired() {
878        return postalCodeRequired;
879    }
880    
881    public void setPostalCodeRequired(Boolean postalCodeRequired)
882            throws PersistenceNotNullException {
883        checkForNull(postalCodeRequired);
884        
885        boolean update = true;
886        
887        if(this.postalCodeRequired != null) {
888            if(this.postalCodeRequired.equals(postalCodeRequired)) {
889                update = false;
890            }
891        } else if(postalCodeRequired == null) {
892            update = false;
893        }
894        
895        if(update) {
896            this.postalCodeRequired = postalCodeRequired;
897            postalCodeRequiredHasBeenModified = true;
898            clearHashAndString();
899        }
900    }
901    
902    public boolean getPostalCodeRequiredHasBeenModified() {
903        return postalCodeRequiredHasBeenModified;
904    }
905    
906    public Boolean getPostalCodeGeoCodeRequired() {
907        return postalCodeGeoCodeRequired;
908    }
909    
910    public void setPostalCodeGeoCodeRequired(Boolean postalCodeGeoCodeRequired)
911            throws PersistenceNotNullException {
912        checkForNull(postalCodeGeoCodeRequired);
913        
914        boolean update = true;
915        
916        if(this.postalCodeGeoCodeRequired != null) {
917            if(this.postalCodeGeoCodeRequired.equals(postalCodeGeoCodeRequired)) {
918                update = false;
919            }
920        } else if(postalCodeGeoCodeRequired == null) {
921            update = false;
922        }
923        
924        if(update) {
925            this.postalCodeGeoCodeRequired = postalCodeGeoCodeRequired;
926            postalCodeGeoCodeRequiredHasBeenModified = true;
927            clearHashAndString();
928        }
929    }
930    
931    public boolean getPostalCodeGeoCodeRequiredHasBeenModified() {
932        return postalCodeGeoCodeRequiredHasBeenModified;
933    }
934    
935    public Integer getPostalCodeLength() {
936        return postalCodeLength;
937    }
938    
939    public void setPostalCodeLength(Integer postalCodeLength) {
940        boolean update = true;
941        
942        if(this.postalCodeLength != null) {
943            if(this.postalCodeLength.equals(postalCodeLength)) {
944                update = false;
945            }
946        } else if(postalCodeLength == null) {
947            update = false;
948        }
949        
950        if(update) {
951            this.postalCodeLength = postalCodeLength;
952            postalCodeLengthHasBeenModified = true;
953            clearHashAndString();
954        }
955    }
956    
957    public boolean getPostalCodeLengthHasBeenModified() {
958        return postalCodeLengthHasBeenModified;
959    }
960    
961    public Integer getPostalCodeGeoCodeLength() {
962        return postalCodeGeoCodeLength;
963    }
964    
965    public void setPostalCodeGeoCodeLength(Integer postalCodeGeoCodeLength) {
966        boolean update = true;
967        
968        if(this.postalCodeGeoCodeLength != null) {
969            if(this.postalCodeGeoCodeLength.equals(postalCodeGeoCodeLength)) {
970                update = false;
971            }
972        } else if(postalCodeGeoCodeLength == null) {
973            update = false;
974        }
975        
976        if(update) {
977            this.postalCodeGeoCodeLength = postalCodeGeoCodeLength;
978            postalCodeGeoCodeLengthHasBeenModified = true;
979            clearHashAndString();
980        }
981    }
982    
983    public boolean getPostalCodeGeoCodeLengthHasBeenModified() {
984        return postalCodeGeoCodeLengthHasBeenModified;
985    }
986    
987    public String getPostalCodeExample() {
988        return postalCodeExample;
989    }
990    
991    public void setPostalCodeExample(String postalCodeExample) {
992        boolean update = true;
993        
994        if(this.postalCodeExample != null) {
995            if(this.postalCodeExample.equals(postalCodeExample)) {
996                update = false;
997            }
998        } else if(postalCodeExample == null) {
999            update = false;
1000        }
1001        
1002        if(update) {
1003            this.postalCodeExample = postalCodeExample;
1004            postalCodeExampleHasBeenModified = true;
1005            clearHashAndString();
1006        }
1007    }
1008    
1009    public boolean getPostalCodeExampleHasBeenModified() {
1010        return postalCodeExampleHasBeenModified;
1011    }
1012    
1013    public Long getFromTime() {
1014        return fromTime;
1015    }
1016    
1017    public void setFromTime(Long fromTime)
1018            throws PersistenceNotNullException {
1019        checkForNull(fromTime);
1020        
1021        boolean update = true;
1022        
1023        if(this.fromTime != null) {
1024            if(this.fromTime.equals(fromTime)) {
1025                update = false;
1026            }
1027        } else if(fromTime == null) {
1028            update = false;
1029        }
1030        
1031        if(update) {
1032            this.fromTime = fromTime;
1033            fromTimeHasBeenModified = true;
1034            clearHashAndString();
1035        }
1036    }
1037    
1038    public boolean getFromTimeHasBeenModified() {
1039        return fromTimeHasBeenModified;
1040    }
1041    
1042    public Long getThruTime() {
1043        return thruTime;
1044    }
1045    
1046    public void setThruTime(Long thruTime)
1047            throws PersistenceNotNullException {
1048        checkForNull(thruTime);
1049        
1050        boolean update = true;
1051        
1052        if(this.thruTime != null) {
1053            if(this.thruTime.equals(thruTime)) {
1054                update = false;
1055            }
1056        } else if(thruTime == null) {
1057            update = false;
1058        }
1059        
1060        if(update) {
1061            this.thruTime = thruTime;
1062            thruTimeHasBeenModified = true;
1063            clearHashAndString();
1064        }
1065    }
1066    
1067    public boolean getThruTimeHasBeenModified() {
1068        return thruTimeHasBeenModified;
1069    }
1070    
1071}