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 CpxCustomerBean implements java.io.Serializable {
008:
009: public CpxCustomerBean() {
010: }
011:
012: //
013: // Basic object stuff:
014: //
015: public CpxCustomerBean(Long customerId) {
016: this ();
017: setCustomerId(customerId);
018: }
019:
020: private Long customerId;
021: private Long contactId;
022: private String orgName;
023: private String url;
024: private Date lastUpdated;
025: private Date creationDate;
026:
027: //
028: // customerId:
029: //
030: public Long getCustomerId() {
031: return this .customerId;
032: }
033:
034: public void setCustomerId(Long customerId) {
035: this .customerId = customerId;
036: }
037:
038: //
039: // contactId:
040: //
041: public Long getContactId() {
042: return this .contactId;
043: }
044:
045: public void setContactId(Long contactId) {
046: this .contactId = contactId;
047: }
048:
049: //
050: // orgName:
051: //
052: public String getOrgName() {
053: return this .orgName;
054: }
055:
056: public void setOrgName(String orgName) {
057: this .orgName = orgName;
058: }
059:
060: //
061: // url:
062: //
063: public String getUrl() {
064: return this .url;
065: }
066:
067: public void setUrl(String url) {
068: this .url = url;
069: }
070:
071: //
072: // lastUpdated:
073: //
074: public Date getLastUpdated() {
075: return this .lastUpdated;
076: }
077:
078: public void setLastUpdated(Date lastUpdated) {
079: this .lastUpdated = lastUpdated;
080: }
081:
082: //
083: // creationDate:
084: //
085: public Date getCreationDate() {
086: return this .creationDate;
087: }
088:
089: public void setCreationDate(Date creationDate) {
090: this .creationDate = creationDate;
091: }
092:
093: public void copyBasic(CpxCustomerBean src) {
094: if (src != null) {
095: customerId = src.customerId;
096: contactId = src.contactId;
097: orgName = src.orgName;
098: url = src.url;
099: lastUpdated = src.lastUpdated;
100: creationDate = src.creationDate;
101: }
102: }
103:
104: //
105: // Complex object part:
106: //
107: private ContactBean contact;
108:
109: public ContactBean getContact() {
110: return contact;
111: }
112:
113: public void setContact(ContactBean contact) {
114: this .contact = contact;
115: }
116:
117: //
118: // Compound object part:
119: //
120:
121: public String toString() {
122: StringBuffer buffer = new StringBuffer();
123: buffer.append("{ " + "class = \"").append(
124: this .getClass().getName()).append("\" fields = ")
125: .append("{ ");
126:
127: buffer.append("customerId").append(" = \"").append(customerId)
128: .append("\" ");
129: buffer.append("contactId").append(" = \"").append(contactId)
130: .append("\" ");
131: buffer.append("orgName").append(" = \"").append(orgName)
132: .append("\" ");
133: buffer.append("url").append(" = \"").append(url).append("\" ");
134: buffer.append("lastUpdated").append(" = \"")
135: .append(lastUpdated).append("\" ");
136: buffer.append("creationDate").append(" = \"").append(
137: creationDate).append("\" ");
138: buffer.append("}}");
139: return buffer.toString();
140: }
141:
142: }
|