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 * ContactPostalAddress.java
021 */
022
023package com.echothree.model.data.contact.server.entity;
024
025import com.echothree.model.data.contact.common.pk.ContactPostalAddressPK;
026
027import com.echothree.model.data.contact.common.pk.ContactMechanismPK;
028import com.echothree.model.data.party.common.pk.PersonalTitlePK;
029import com.echothree.model.data.party.common.pk.NameSuffixPK;
030import com.echothree.model.data.geo.common.pk.GeoCodePK;
031
032import com.echothree.model.data.contact.server.entity.ContactMechanism;
033import com.echothree.model.data.party.server.entity.PersonalTitle;
034import com.echothree.model.data.party.server.entity.NameSuffix;
035import com.echothree.model.data.geo.server.entity.GeoCode;
036
037import com.echothree.model.data.contact.server.factory.ContactMechanismFactory;
038import com.echothree.model.data.party.server.factory.PersonalTitleFactory;
039import com.echothree.model.data.party.server.factory.NameSuffixFactory;
040import com.echothree.model.data.geo.server.factory.GeoCodeFactory;
041
042import com.echothree.model.data.contact.common.pk.ContactPostalAddressPK;
043
044import com.echothree.model.data.contact.server.value.ContactPostalAddressValue;
045
046import com.echothree.model.data.contact.server.factory.ContactPostalAddressFactory;
047
048import com.echothree.util.common.exception.PersistenceException;
049import com.echothree.util.common.exception.PersistenceDatabaseException;
050import com.echothree.util.common.exception.PersistenceNotNullException;
051import com.echothree.util.common.exception.PersistenceReadOnlyException;
052
053import com.echothree.util.common.persistence.BasePK;
054
055import com.echothree.util.common.persistence.type.ByteArray;
056
057import com.echothree.util.server.persistence.BaseEntity;
058import com.echothree.util.server.persistence.EntityPermission;
059import com.echothree.util.server.persistence.Session;
060import com.echothree.util.server.persistence.ThreadSession;
061
062import java.io.Serializable;
063
064public class ContactPostalAddress
065        extends BaseEntity
066        implements Serializable {
067    
068    private ContactPostalAddressPK _pk;
069    private ContactPostalAddressValue _value;
070    
071    /** Creates a new instance of ContactPostalAddress */
072    public ContactPostalAddress()
073            throws PersistenceException {
074        super();
075    }
076    
077    /** Creates a new instance of ContactPostalAddress */
078    public ContactPostalAddress(ContactPostalAddressValue value, EntityPermission entityPermission) {
079        super(entityPermission);
080        
081        _value = value;
082        _pk = value.getPrimaryKey();
083    }
084    
085    @Override
086    public ContactPostalAddressFactory getBaseFactoryInstance() {
087        return ContactPostalAddressFactory.getInstance();
088    }
089    
090    @Override
091    public boolean hasBeenModified() {
092        return _value.hasBeenModified();
093    }
094    
095    @Override
096    public int hashCode() {
097        return _pk.hashCode();
098    }
099    
100    @Override
101    public String toString() {
102        return _pk.toString();
103    }
104    
105    @Override
106    public boolean equals(Object other) {
107        if(this == other)
108            return true;
109        
110        if(other instanceof ContactPostalAddress that) {
111            ContactPostalAddressValue thatValue = that.getContactPostalAddressValue();
112            return _value.equals(thatValue);
113        } else {
114            return false;
115        }
116    }
117    
118    @Override
119    public void store(Session session)
120            throws PersistenceDatabaseException {
121        getBaseFactoryInstance().store(session, this);
122    }
123    
124    @Override
125    public void remove(Session session)
126            throws PersistenceDatabaseException {
127        getBaseFactoryInstance().remove(session, this);
128    }
129    
130    @Override
131    public void remove()
132            throws PersistenceDatabaseException {
133        getBaseFactoryInstance().remove(ThreadSession.currentSession(), this);
134    }
135    
136    public ContactPostalAddressValue getContactPostalAddressValue() {
137        return _value;
138    }
139    
140    public void setContactPostalAddressValue(ContactPostalAddressValue value)
141            throws PersistenceReadOnlyException {
142        checkReadWrite();
143        _value = value;
144    }
145    
146    @Override
147    public ContactPostalAddressPK getPrimaryKey() {
148        return _pk;
149    }
150    
151    public ContactMechanismPK getContactMechanismPK() {
152        return _value.getContactMechanismPK();
153    }
154    
155    public ContactMechanism getContactMechanism(Session session, EntityPermission entityPermission) {
156        return ContactMechanismFactory.getInstance().getEntityFromPK(session, entityPermission, getContactMechanismPK());
157    }
158    
159    public ContactMechanism getContactMechanism(EntityPermission entityPermission) {
160        return getContactMechanism(ThreadSession.currentSession(), entityPermission);
161    }
162    
163    public ContactMechanism getContactMechanism(Session session) {
164        return getContactMechanism(session, EntityPermission.READ_ONLY);
165    }
166    
167    public ContactMechanism getContactMechanism() {
168        return getContactMechanism(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
169    }
170    
171    public ContactMechanism getContactMechanismForUpdate(Session session) {
172        return getContactMechanism(session, EntityPermission.READ_WRITE);
173    }
174    
175    public ContactMechanism getContactMechanismForUpdate() {
176        return getContactMechanism(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
177    }
178    
179    public void setContactMechanismPK(ContactMechanismPK contactMechanismPK)
180            throws PersistenceNotNullException, PersistenceReadOnlyException {
181        checkReadWrite();
182        _value.setContactMechanismPK(contactMechanismPK);
183    }
184    
185    public void setContactMechanism(ContactMechanism entity) {
186        setContactMechanismPK(entity == null? null: entity.getPrimaryKey());
187    }
188    
189    public boolean getContactMechanismPKHasBeenModified() {
190        return _value.getContactMechanismPKHasBeenModified();
191    }
192    
193    public PersonalTitlePK getPersonalTitlePK() {
194        return _value.getPersonalTitlePK();
195    }
196    
197    public PersonalTitle getPersonalTitle(Session session, EntityPermission entityPermission) {
198        PersonalTitlePK pk = getPersonalTitlePK();
199        PersonalTitle entity = pk == null? null: PersonalTitleFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
200        
201        return entity;
202    }
203    
204    public PersonalTitle getPersonalTitle(EntityPermission entityPermission) {
205        return getPersonalTitle(ThreadSession.currentSession(), entityPermission);
206    }
207    
208    public PersonalTitle getPersonalTitle(Session session) {
209        return getPersonalTitle(session, EntityPermission.READ_ONLY);
210    }
211    
212    public PersonalTitle getPersonalTitle() {
213        return getPersonalTitle(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
214    }
215    
216    public PersonalTitle getPersonalTitleForUpdate(Session session) {
217        return getPersonalTitle(session, EntityPermission.READ_WRITE);
218    }
219    
220    public PersonalTitle getPersonalTitleForUpdate() {
221        return getPersonalTitle(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
222    }
223    
224    public void setPersonalTitlePK(PersonalTitlePK personalTitlePK)
225            throws PersistenceNotNullException, PersistenceReadOnlyException {
226        checkReadWrite();
227        _value.setPersonalTitlePK(personalTitlePK);
228    }
229    
230    public void setPersonalTitle(PersonalTitle entity) {
231        setPersonalTitlePK(entity == null? null: entity.getPrimaryKey());
232    }
233    
234    public boolean getPersonalTitlePKHasBeenModified() {
235        return _value.getPersonalTitlePKHasBeenModified();
236    }
237    
238    public String getFirstName() {
239        return _value.getFirstName();
240    }
241    
242    public void setFirstName(String firstName)
243            throws PersistenceNotNullException, PersistenceReadOnlyException {
244        checkReadWrite();
245        _value.setFirstName(firstName);
246    }
247    
248    public boolean getFirstNameHasBeenModified() {
249        return _value.getFirstNameHasBeenModified();
250    }
251    
252    public String getFirstNameSdx() {
253        return _value.getFirstNameSdx();
254    }
255    
256    public void setFirstNameSdx(String firstNameSdx)
257            throws PersistenceNotNullException, PersistenceReadOnlyException {
258        checkReadWrite();
259        _value.setFirstNameSdx(firstNameSdx);
260    }
261    
262    public boolean getFirstNameSdxHasBeenModified() {
263        return _value.getFirstNameSdxHasBeenModified();
264    }
265    
266    public String getMiddleName() {
267        return _value.getMiddleName();
268    }
269    
270    public void setMiddleName(String middleName)
271            throws PersistenceNotNullException, PersistenceReadOnlyException {
272        checkReadWrite();
273        _value.setMiddleName(middleName);
274    }
275    
276    public boolean getMiddleNameHasBeenModified() {
277        return _value.getMiddleNameHasBeenModified();
278    }
279    
280    public String getMiddleNameSdx() {
281        return _value.getMiddleNameSdx();
282    }
283    
284    public void setMiddleNameSdx(String middleNameSdx)
285            throws PersistenceNotNullException, PersistenceReadOnlyException {
286        checkReadWrite();
287        _value.setMiddleNameSdx(middleNameSdx);
288    }
289    
290    public boolean getMiddleNameSdxHasBeenModified() {
291        return _value.getMiddleNameSdxHasBeenModified();
292    }
293    
294    public String getLastName() {
295        return _value.getLastName();
296    }
297    
298    public void setLastName(String lastName)
299            throws PersistenceNotNullException, PersistenceReadOnlyException {
300        checkReadWrite();
301        _value.setLastName(lastName);
302    }
303    
304    public boolean getLastNameHasBeenModified() {
305        return _value.getLastNameHasBeenModified();
306    }
307    
308    public String getLastNameSdx() {
309        return _value.getLastNameSdx();
310    }
311    
312    public void setLastNameSdx(String lastNameSdx)
313            throws PersistenceNotNullException, PersistenceReadOnlyException {
314        checkReadWrite();
315        _value.setLastNameSdx(lastNameSdx);
316    }
317    
318    public boolean getLastNameSdxHasBeenModified() {
319        return _value.getLastNameSdxHasBeenModified();
320    }
321    
322    public NameSuffixPK getNameSuffixPK() {
323        return _value.getNameSuffixPK();
324    }
325    
326    public NameSuffix getNameSuffix(Session session, EntityPermission entityPermission) {
327        NameSuffixPK pk = getNameSuffixPK();
328        NameSuffix entity = pk == null? null: NameSuffixFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
329        
330        return entity;
331    }
332    
333    public NameSuffix getNameSuffix(EntityPermission entityPermission) {
334        return getNameSuffix(ThreadSession.currentSession(), entityPermission);
335    }
336    
337    public NameSuffix getNameSuffix(Session session) {
338        return getNameSuffix(session, EntityPermission.READ_ONLY);
339    }
340    
341    public NameSuffix getNameSuffix() {
342        return getNameSuffix(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
343    }
344    
345    public NameSuffix getNameSuffixForUpdate(Session session) {
346        return getNameSuffix(session, EntityPermission.READ_WRITE);
347    }
348    
349    public NameSuffix getNameSuffixForUpdate() {
350        return getNameSuffix(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
351    }
352    
353    public void setNameSuffixPK(NameSuffixPK nameSuffixPK)
354            throws PersistenceNotNullException, PersistenceReadOnlyException {
355        checkReadWrite();
356        _value.setNameSuffixPK(nameSuffixPK);
357    }
358    
359    public void setNameSuffix(NameSuffix entity) {
360        setNameSuffixPK(entity == null? null: entity.getPrimaryKey());
361    }
362    
363    public boolean getNameSuffixPKHasBeenModified() {
364        return _value.getNameSuffixPKHasBeenModified();
365    }
366    
367    public String getCompanyName() {
368        return _value.getCompanyName();
369    }
370    
371    public void setCompanyName(String companyName)
372            throws PersistenceNotNullException, PersistenceReadOnlyException {
373        checkReadWrite();
374        _value.setCompanyName(companyName);
375    }
376    
377    public boolean getCompanyNameHasBeenModified() {
378        return _value.getCompanyNameHasBeenModified();
379    }
380    
381    public String getAttention() {
382        return _value.getAttention();
383    }
384    
385    public void setAttention(String attention)
386            throws PersistenceNotNullException, PersistenceReadOnlyException {
387        checkReadWrite();
388        _value.setAttention(attention);
389    }
390    
391    public boolean getAttentionHasBeenModified() {
392        return _value.getAttentionHasBeenModified();
393    }
394    
395    public String getAddress1() {
396        return _value.getAddress1();
397    }
398    
399    public void setAddress1(String address1)
400            throws PersistenceNotNullException, PersistenceReadOnlyException {
401        checkReadWrite();
402        _value.setAddress1(address1);
403    }
404    
405    public boolean getAddress1HasBeenModified() {
406        return _value.getAddress1HasBeenModified();
407    }
408    
409    public String getAddress2() {
410        return _value.getAddress2();
411    }
412    
413    public void setAddress2(String address2)
414            throws PersistenceNotNullException, PersistenceReadOnlyException {
415        checkReadWrite();
416        _value.setAddress2(address2);
417    }
418    
419    public boolean getAddress2HasBeenModified() {
420        return _value.getAddress2HasBeenModified();
421    }
422    
423    public String getAddress3() {
424        return _value.getAddress3();
425    }
426    
427    public void setAddress3(String address3)
428            throws PersistenceNotNullException, PersistenceReadOnlyException {
429        checkReadWrite();
430        _value.setAddress3(address3);
431    }
432    
433    public boolean getAddress3HasBeenModified() {
434        return _value.getAddress3HasBeenModified();
435    }
436    
437    public String getCity() {
438        return _value.getCity();
439    }
440    
441    public void setCity(String city)
442            throws PersistenceNotNullException, PersistenceReadOnlyException {
443        checkReadWrite();
444        _value.setCity(city);
445    }
446    
447    public boolean getCityHasBeenModified() {
448        return _value.getCityHasBeenModified();
449    }
450    
451    public GeoCodePK getCityGeoCodePK() {
452        return _value.getCityGeoCodePK();
453    }
454    
455    public GeoCode getCityGeoCode(Session session, EntityPermission entityPermission) {
456        GeoCodePK pk = getCityGeoCodePK();
457        GeoCode entity = pk == null? null: GeoCodeFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
458        
459        return entity;
460    }
461    
462    public GeoCode getCityGeoCode(EntityPermission entityPermission) {
463        return getCityGeoCode(ThreadSession.currentSession(), entityPermission);
464    }
465    
466    public GeoCode getCityGeoCode(Session session) {
467        return getCityGeoCode(session, EntityPermission.READ_ONLY);
468    }
469    
470    public GeoCode getCityGeoCode() {
471        return getCityGeoCode(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
472    }
473    
474    public GeoCode getCityGeoCodeForUpdate(Session session) {
475        return getCityGeoCode(session, EntityPermission.READ_WRITE);
476    }
477    
478    public GeoCode getCityGeoCodeForUpdate() {
479        return getCityGeoCode(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
480    }
481    
482    public void setCityGeoCodePK(GeoCodePK cityGeoCodePK)
483            throws PersistenceNotNullException, PersistenceReadOnlyException {
484        checkReadWrite();
485        _value.setCityGeoCodePK(cityGeoCodePK);
486    }
487    
488    public void setCityGeoCode(GeoCode entity) {
489        setCityGeoCodePK(entity == null? null: entity.getPrimaryKey());
490    }
491    
492    public boolean getCityGeoCodePKHasBeenModified() {
493        return _value.getCityGeoCodePKHasBeenModified();
494    }
495    
496    public GeoCodePK getCountyGeoCodePK() {
497        return _value.getCountyGeoCodePK();
498    }
499    
500    public GeoCode getCountyGeoCode(Session session, EntityPermission entityPermission) {
501        GeoCodePK pk = getCountyGeoCodePK();
502        GeoCode entity = pk == null? null: GeoCodeFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
503        
504        return entity;
505    }
506    
507    public GeoCode getCountyGeoCode(EntityPermission entityPermission) {
508        return getCountyGeoCode(ThreadSession.currentSession(), entityPermission);
509    }
510    
511    public GeoCode getCountyGeoCode(Session session) {
512        return getCountyGeoCode(session, EntityPermission.READ_ONLY);
513    }
514    
515    public GeoCode getCountyGeoCode() {
516        return getCountyGeoCode(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
517    }
518    
519    public GeoCode getCountyGeoCodeForUpdate(Session session) {
520        return getCountyGeoCode(session, EntityPermission.READ_WRITE);
521    }
522    
523    public GeoCode getCountyGeoCodeForUpdate() {
524        return getCountyGeoCode(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
525    }
526    
527    public void setCountyGeoCodePK(GeoCodePK countyGeoCodePK)
528            throws PersistenceNotNullException, PersistenceReadOnlyException {
529        checkReadWrite();
530        _value.setCountyGeoCodePK(countyGeoCodePK);
531    }
532    
533    public void setCountyGeoCode(GeoCode entity) {
534        setCountyGeoCodePK(entity == null? null: entity.getPrimaryKey());
535    }
536    
537    public boolean getCountyGeoCodePKHasBeenModified() {
538        return _value.getCountyGeoCodePKHasBeenModified();
539    }
540    
541    public String getState() {
542        return _value.getState();
543    }
544    
545    public void setState(String state)
546            throws PersistenceNotNullException, PersistenceReadOnlyException {
547        checkReadWrite();
548        _value.setState(state);
549    }
550    
551    public boolean getStateHasBeenModified() {
552        return _value.getStateHasBeenModified();
553    }
554    
555    public GeoCodePK getStateGeoCodePK() {
556        return _value.getStateGeoCodePK();
557    }
558    
559    public GeoCode getStateGeoCode(Session session, EntityPermission entityPermission) {
560        GeoCodePK pk = getStateGeoCodePK();
561        GeoCode entity = pk == null? null: GeoCodeFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
562        
563        return entity;
564    }
565    
566    public GeoCode getStateGeoCode(EntityPermission entityPermission) {
567        return getStateGeoCode(ThreadSession.currentSession(), entityPermission);
568    }
569    
570    public GeoCode getStateGeoCode(Session session) {
571        return getStateGeoCode(session, EntityPermission.READ_ONLY);
572    }
573    
574    public GeoCode getStateGeoCode() {
575        return getStateGeoCode(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
576    }
577    
578    public GeoCode getStateGeoCodeForUpdate(Session session) {
579        return getStateGeoCode(session, EntityPermission.READ_WRITE);
580    }
581    
582    public GeoCode getStateGeoCodeForUpdate() {
583        return getStateGeoCode(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
584    }
585    
586    public void setStateGeoCodePK(GeoCodePK stateGeoCodePK)
587            throws PersistenceNotNullException, PersistenceReadOnlyException {
588        checkReadWrite();
589        _value.setStateGeoCodePK(stateGeoCodePK);
590    }
591    
592    public void setStateGeoCode(GeoCode entity) {
593        setStateGeoCodePK(entity == null? null: entity.getPrimaryKey());
594    }
595    
596    public boolean getStateGeoCodePKHasBeenModified() {
597        return _value.getStateGeoCodePKHasBeenModified();
598    }
599    
600    public String getPostalCode() {
601        return _value.getPostalCode();
602    }
603    
604    public void setPostalCode(String postalCode)
605            throws PersistenceNotNullException, PersistenceReadOnlyException {
606        checkReadWrite();
607        _value.setPostalCode(postalCode);
608    }
609    
610    public boolean getPostalCodeHasBeenModified() {
611        return _value.getPostalCodeHasBeenModified();
612    }
613    
614    public GeoCodePK getPostalCodeGeoCodePK() {
615        return _value.getPostalCodeGeoCodePK();
616    }
617    
618    public GeoCode getPostalCodeGeoCode(Session session, EntityPermission entityPermission) {
619        GeoCodePK pk = getPostalCodeGeoCodePK();
620        GeoCode entity = pk == null? null: GeoCodeFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
621        
622        return entity;
623    }
624    
625    public GeoCode getPostalCodeGeoCode(EntityPermission entityPermission) {
626        return getPostalCodeGeoCode(ThreadSession.currentSession(), entityPermission);
627    }
628    
629    public GeoCode getPostalCodeGeoCode(Session session) {
630        return getPostalCodeGeoCode(session, EntityPermission.READ_ONLY);
631    }
632    
633    public GeoCode getPostalCodeGeoCode() {
634        return getPostalCodeGeoCode(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
635    }
636    
637    public GeoCode getPostalCodeGeoCodeForUpdate(Session session) {
638        return getPostalCodeGeoCode(session, EntityPermission.READ_WRITE);
639    }
640    
641    public GeoCode getPostalCodeGeoCodeForUpdate() {
642        return getPostalCodeGeoCode(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
643    }
644    
645    public void setPostalCodeGeoCodePK(GeoCodePK postalCodeGeoCodePK)
646            throws PersistenceNotNullException, PersistenceReadOnlyException {
647        checkReadWrite();
648        _value.setPostalCodeGeoCodePK(postalCodeGeoCodePK);
649    }
650    
651    public void setPostalCodeGeoCode(GeoCode entity) {
652        setPostalCodeGeoCodePK(entity == null? null: entity.getPrimaryKey());
653    }
654    
655    public boolean getPostalCodeGeoCodePKHasBeenModified() {
656        return _value.getPostalCodeGeoCodePKHasBeenModified();
657    }
658    
659    public GeoCodePK getCountryGeoCodePK() {
660        return _value.getCountryGeoCodePK();
661    }
662    
663    public GeoCode getCountryGeoCode(Session session, EntityPermission entityPermission) {
664        return GeoCodeFactory.getInstance().getEntityFromPK(session, entityPermission, getCountryGeoCodePK());
665    }
666    
667    public GeoCode getCountryGeoCode(EntityPermission entityPermission) {
668        return getCountryGeoCode(ThreadSession.currentSession(), entityPermission);
669    }
670    
671    public GeoCode getCountryGeoCode(Session session) {
672        return getCountryGeoCode(session, EntityPermission.READ_ONLY);
673    }
674    
675    public GeoCode getCountryGeoCode() {
676        return getCountryGeoCode(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
677    }
678    
679    public GeoCode getCountryGeoCodeForUpdate(Session session) {
680        return getCountryGeoCode(session, EntityPermission.READ_WRITE);
681    }
682    
683    public GeoCode getCountryGeoCodeForUpdate() {
684        return getCountryGeoCode(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
685    }
686    
687    public void setCountryGeoCodePK(GeoCodePK countryGeoCodePK)
688            throws PersistenceNotNullException, PersistenceReadOnlyException {
689        checkReadWrite();
690        _value.setCountryGeoCodePK(countryGeoCodePK);
691    }
692    
693    public void setCountryGeoCode(GeoCode entity) {
694        setCountryGeoCodePK(entity == null? null: entity.getPrimaryKey());
695    }
696    
697    public boolean getCountryGeoCodePKHasBeenModified() {
698        return _value.getCountryGeoCodePKHasBeenModified();
699    }
700    
701    public Boolean getIsCommercial() {
702        return _value.getIsCommercial();
703    }
704    
705    public void setIsCommercial(Boolean isCommercial)
706            throws PersistenceNotNullException, PersistenceReadOnlyException {
707        checkReadWrite();
708        _value.setIsCommercial(isCommercial);
709    }
710    
711    public boolean getIsCommercialHasBeenModified() {
712        return _value.getIsCommercialHasBeenModified();
713    }
714    
715    public Long getFromTime() {
716        return _value.getFromTime();
717    }
718    
719    public void setFromTime(Long fromTime)
720            throws PersistenceNotNullException, PersistenceReadOnlyException {
721        checkReadWrite();
722        _value.setFromTime(fromTime);
723    }
724    
725    public boolean getFromTimeHasBeenModified() {
726        return _value.getFromTimeHasBeenModified();
727    }
728    
729    public Long getThruTime() {
730        return _value.getThruTime();
731    }
732    
733    public void setThruTime(Long thruTime)
734            throws PersistenceNotNullException, PersistenceReadOnlyException {
735        checkReadWrite();
736        _value.setThruTime(thruTime);
737    }
738    
739    public boolean getThruTimeHasBeenModified() {
740        return _value.getThruTimeHasBeenModified();
741    }
742    
743}