001: /**
002: * GENERATED CODE: DO NOT MODIFY IT UNDER ANY CIRCUMSTANCES!!!
003: */package com.completex.objective.persistency.examples.ex004a.beans;
004:
005: import java.util.Date;
006:
007: public class ContactBean implements java.io.Serializable {
008:
009: public ContactBean() {
010: }
011:
012: //
013: // Basic object stuff:
014: //
015: public ContactBean(Long contactId) {
016: this ();
017: setContactId(contactId);
018: }
019:
020: private Long contactId;
021: private String firstName;
022: private String lastName;
023: private Date lastUpdated;
024: private String phone;
025: private String shipAddress;
026: private Date creationDate;
027:
028: //
029: // contactId:
030: //
031: public Long getContactId() {
032: return this .contactId;
033: }
034:
035: public void setContactId(Long contactId) {
036: this .contactId = contactId;
037: }
038:
039: //
040: // firstName:
041: //
042: public String getFirstName() {
043: return this .firstName;
044: }
045:
046: public void setFirstName(String firstName) {
047: this .firstName = firstName;
048: }
049:
050: //
051: // lastName:
052: //
053: public String getLastName() {
054: return this .lastName;
055: }
056:
057: public void setLastName(String lastName) {
058: this .lastName = lastName;
059: }
060:
061: //
062: // lastUpdated:
063: //
064: public Date getLastUpdated() {
065: return this .lastUpdated;
066: }
067:
068: public void setLastUpdated(Date lastUpdated) {
069: this .lastUpdated = lastUpdated;
070: }
071:
072: //
073: // phone:
074: //
075: public String getPhone() {
076: return this .phone;
077: }
078:
079: public void setPhone(String phone) {
080: this .phone = phone;
081: }
082:
083: //
084: // shipAddress:
085: //
086: public String getShipAddress() {
087: return this .shipAddress;
088: }
089:
090: public void setShipAddress(String shipAddress) {
091: this .shipAddress = shipAddress;
092: }
093:
094: //
095: // creationDate:
096: //
097: public Date getCreationDate() {
098: return this .creationDate;
099: }
100:
101: public void setCreationDate(Date creationDate) {
102: this .creationDate = creationDate;
103: }
104:
105: public void copyBasic(ContactBean src) {
106: if (src != null) {
107: contactId = src.contactId;
108: firstName = src.firstName;
109: lastName = src.lastName;
110: lastUpdated = src.lastUpdated;
111: phone = src.phone;
112: shipAddress = src.shipAddress;
113: creationDate = src.creationDate;
114: }
115: }
116:
117: //
118: // Complex object part:
119: //
120:
121: //
122: // Compound object part:
123: //
124:
125: public String toString() {
126: StringBuffer buffer = new StringBuffer();
127: buffer.append("{ " + "class = \"").append(
128: this .getClass().getName()).append("\" fields = ")
129: .append("{ ");
130:
131: buffer.append("contactId").append(" = \"").append(contactId)
132: .append("\" ");
133: buffer.append("firstName").append(" = \"").append(firstName)
134: .append("\" ");
135: buffer.append("lastName").append(" = \"").append(lastName)
136: .append("\" ");
137: buffer.append("lastUpdated").append(" = \"")
138: .append(lastUpdated).append("\" ");
139: buffer.append("phone").append(" = \"").append(phone).append(
140: "\" ");
141: buffer.append("shipAddress").append(" = \"")
142: .append(shipAddress).append("\" ");
143: buffer.append("creationDate").append(" = \"").append(
144: creationDate).append("\" ");
145: buffer.append("}}");
146: return buffer.toString();
147: }
148:
149: }
|