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