예제 #1
0
 public boolean select(String whereclause) {
   boolean result = super.select(whereclause);
   if (result) {
     currAdd.setFk_PersonID(this.personID);
     permAdd.setFk_PersonID(this.personID);
     currAdd.setAddressType(Address.CURRENT_ADDRESS);
     permAdd.setAddressType(Address.PERMANENT_ADDRESS);
     if (!currAdd.select()) {
       currAdd.persist();
     }
     if (!permAdd.select()) {
       permAdd.persist();
     }
   }
   return result;
 }
예제 #2
0
 public void updateNoDate() {
   super.update();
   currAdd.setFk_PersonID(this.personID);
   permAdd.setFk_PersonID(this.personID);
   currAdd.setAddressType(Address.CURRENT_ADDRESS);
   permAdd.setAddressType(Address.PERMANENT_ADDRESS);
   currAdd.persist();
   permAdd.persist();
 }
예제 #3
0
 public boolean update() {
   setDateChanged(new Date());
   setChangedBy("CRS");
   boolean result = super.update();
   currAdd.setFk_PersonID(this.personID);
   permAdd.setFk_PersonID(this.personID);
   currAdd.setAddressType(Address.CURRENT_ADDRESS);
   permAdd.setAddressType(Address.PERMANENT_ADDRESS);
   currAdd.update();
   permAdd.update();
   return result;
 }
예제 #4
0
 public String getCity() {
   return currAdd.getCity();
 }
예제 #5
0
 public String getPermanentCity() {
   return permAdd.getCity();
 }
예제 #6
0
 public void setPermanentPhone(String permanentPhone) {
   permAdd.setHomePhone(permanentPhone);
 }
예제 #7
0
 public boolean delete() {
   currAdd.delete();
   permAdd.delete();
   return super.delete();
 }
예제 #8
0
 public void setPermanentZip(String permanentZip) {
   permAdd.setZip(permanentZip);
 }
예제 #9
0
 public void setPermanentCountry(String permanentCountry) {
   permAdd.setCountry(permanentCountry);
 }
예제 #10
0
 public String getCountry() {
   return currAdd.getCountry();
 }
예제 #11
0
 public void setPermanentState(String permanentState) {
   permAdd.setState(permanentState);
 }
예제 #12
0
 public String getZip() {
   return currAdd.getZip();
 }
예제 #13
0
 public void setZip(String zip) {
   currAdd.setZip(zip);
 }
예제 #14
0
 public void setState(String state) {
   currAdd.setState(state);
 }
예제 #15
0
 public String getState() {
   return currAdd.getState();
 }
예제 #16
0
 public void setCity(String city) {
   currAdd.setCity(city);
 }
예제 #17
0
 public void setPermanentCity(String permanentCity) {
   permAdd.setCity(permanentCity);
 }
예제 #18
0
 public void setCountry(String country) {
   currAdd.setCountry(country);
 }
예제 #19
0
 public String getPermanentState() {
   return permAdd.getState();
 }
예제 #20
0
 public String getHomePhone() {
   return currAdd.getHomePhone();
 }
예제 #21
0
 public String getPermanentZip() {
   return permAdd.getZip();
 }
예제 #22
0
 public void setHomePhone(String homePhone) {
   currAdd.setHomePhone(homePhone);
 }
예제 #23
0
 public String getPermanentCountry() {
   return permAdd.getCountry();
 }
예제 #24
0
 public void setPermanentAddress1(String permanentAddress1) {
   permAdd.setAddress1(permanentAddress1);
 }
예제 #25
0
 public String getPermanentPhone() {
   return permAdd.getHomePhone();
 }
예제 #26
0
 public void setAddress1(String address1) {
   currAdd.setAddress1(address1);
 }
예제 #27
0
 public String getAddress2() {
   return currAdd.getAddress2();
 }
예제 #28
0
 public void setPermanentAddress2(String permanentAddress2) {
   permAdd.setAddress2(permanentAddress2);
 }
예제 #29
0
 public String getPermanentAddress2() {
   return permAdd.getAddress2();
 }
예제 #30
0
 public void setAddress2(String address2) {
   currAdd.setAddress2(address2);
 }