01: /*
02: * CustomerWithPhone.java
03: *
04: * Created on February 9, 2004, 11:51 AM
05: */
06:
07: package org.julp.examples;
08:
09: /**
10: *
11: * @author leonard
12: */
13: public class CustomerWithPhone extends Customer {
14:
15: /** Creates a new instance of CustomerWithPhone */
16: public CustomerWithPhone() {
17: }
18:
19: protected java.lang.String phone;
20:
21: public java.lang.String getPhone() {
22: return this .phone;
23: }
24:
25: public void setPhone(java.lang.String phone) {
26: if (!isLoading()) {
27: /* DBColumn nullability: Nullable - modify as needed */
28: if (phone == null && this .phone != null) {
29: this .modified = true;
30: } else if (phone != null && this .phone == null) {
31: this .modified = true;
32: } else if (!phone.equals(this .phone)) {
33: this .modified = true;
34: }
35: }
36: this.phone = phone;
37: }
38:
39: }
|