示例#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);
 }