001: package org.julp.examples;
002:
003: public class Customer extends org.julp.AbstractDomainObject implements
004: java.io.Serializable, Cloneable {
005:
006: public Customer() {
007: }
008:
009: protected java.lang.Integer customerId;
010: protected java.lang.String firstName;
011: protected java.lang.String lastName;
012: protected java.lang.String street;
013: protected java.lang.String city;
014:
015: //protected java.lang.String phone;
016:
017: public java.lang.Integer getCustomerId() {
018: return this .customerId;
019: }
020:
021: public void setCustomerId(java.lang.Integer customerId) {
022: if (!isLoading()) {
023: /* DBColumn nullability: NoNulls - modify as needed */
024: if (customerId == null) {
025: throw new IllegalArgumentException(
026: "Missing field: customerId");
027: }
028: if (!customerId.equals(this .customerId)) {
029: this .modified = true;
030: }
031: }
032: this .customerId = customerId;
033: }
034:
035: public java.lang.String getFirstName() {
036: return this .firstName;
037: }
038:
039: public void setFirstName(java.lang.String firstName) {
040: if (!isLoading()) {
041: /* DBColumn nullability: NoNulls - modify as needed */
042: if (firstName == null) {
043: throw new IllegalArgumentException(
044: "Missing field: firstName");
045: }
046: if (!firstName.equals(this .firstName)) {
047: this .modified = true;
048: }
049: }
050: this .firstName = firstName;
051: }
052:
053: public java.lang.String getLastName() {
054: return this .lastName;
055: }
056:
057: public void setLastName(java.lang.String lastName) {
058: if (!isLoading()) {
059: /* DBColumn nullability: NoNulls - modify as needed */
060: if (lastName == null) {
061: throw new IllegalArgumentException(
062: "Missing field: lastName");
063: }
064: if (!lastName.equals(this .lastName)) {
065: this .modified = true;
066: }
067: }
068: this .lastName = lastName;
069: }
070:
071: public java.lang.String getStreet() {
072: return this .street;
073: }
074:
075: public void setStreet(java.lang.String street) {
076: if (!isLoading()) {
077: /* DBColumn nullability: NoNulls - modify as needed */
078: if (street == null) {
079: throw new IllegalArgumentException(
080: "Missing field: street");
081: }
082: if (!street.equals(this .street)) {
083: this .modified = true;
084: }
085: }
086: this .street = street;
087: }
088:
089: public java.lang.String getCity() {
090: return this .city;
091: }
092:
093: public void setCity(java.lang.String city) {
094: if (!isLoading()) {
095: /* DBColumn nullability: NoNulls - modify as needed */
096: if (city == null) {
097: throw new IllegalArgumentException(
098: "Missing field: city");
099: }
100: if (!city.equals(this .city)) {
101: this .modified = true;
102: }
103: }
104: this.city = city;
105: }
106: }
|