1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.synchronoss.cpo.meta.bean;
22
23 public class CpoAttributeBean implements java.io.Serializable {
24
25 private static final long serialVersionUID = 1L;
26
27
28
29
30 private java.lang.String javaName;
31 private java.lang.String javaType;
32 private java.lang.String dataName;
33 private java.lang.String dataType;
34 private java.lang.String transformClassName;
35 private java.lang.String description;
36
37 public CpoAttributeBean() {
38 }
39
40 public String getDataName() {
41 return dataName;
42 }
43
44 public void setDataName(String dataName) {
45 this.dataName = dataName;
46 }
47
48 public String getDataType() {
49 return dataType;
50 }
51
52 public void setDataType(String dataType) {
53 this.dataType = dataType;
54 }
55
56 public String getDescription() {
57 return description;
58 }
59
60 public void setDescription(String description) {
61 this.description = description;
62 }
63
64 public String getJavaName() {
65 return javaName;
66 }
67
68 public void setJavaName(String javaName) {
69 this.javaName = javaName;
70 }
71
72 public String getJavaType() {
73 return javaType;
74 }
75
76 public void setJavaType(String javaType) {
77 this.javaType = javaType;
78 }
79
80 public String getTransformClassName() {
81 return transformClassName;
82 }
83
84 public void setTransformClassName(String transformClassName) {
85 this.transformClassName = transformClassName;
86 }
87
88
89
90
91 @Override
92 public boolean equals(Object o) {
93 if (this == o) {
94 return true;
95 }
96 if (o == null || getClass() != o.getClass()) {
97 return false;
98 }
99
100 CpoAttributeBean that = (CpoAttributeBean) o;
101
102 if (getJavaName() != null ? !getJavaName().equals(that.getJavaName()) : that.getJavaName() != null) {
103 return false;
104 }
105 if (getJavaType() != null ? !getJavaType().equals(that.getJavaType()) : that.getJavaType() != null) {
106 return false;
107 }
108 if (getDataName() != null ? !getDataName().equals(that.getDataName()) : that.getDataName() != null) {
109 return false;
110 }
111 if (getDataType() != null ? !getDataType().equals(that.getDataType()) : that.getDataType() != null) {
112 return false;
113 }
114 if (getTransformClassName() != null ? !getTransformClassName().equals(that.getTransformClassName()) : that.getTransformClassName() != null) {
115 return false;
116 }
117 if (getDescription() != null ? !getDescription().equals(that.getDescription()) : that.getDescription() != null) {
118 return false;
119 }
120
121 return true;
122 }
123
124 @Override
125 public int hashCode() {
126 int result = 0;
127 result = 31 * result + getClass().getName().hashCode();
128 result = 31 * result + (getJavaName() != null ? getJavaName().hashCode() : 0);
129 result = 31 * result + (getJavaType() != null ? getJavaType().hashCode() : 0);
130 result = 31 * result + (getDataName() != null ? getDataName().hashCode() : 0);
131 result = 31 * result + (getDataType() != null ? getDataType().hashCode() : 0);
132 result = 31 * result + (getTransformClassName() != null ? getTransformClassName().hashCode() : 0);
133 result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0);
134 return result;
135 }
136
137 @Override
138 public String toString() {
139 StringBuilder str = new StringBuilder();
140 str.append("javaName = " + getJavaName() + "\n");
141 str.append("javaType = " + getJavaType() + "\n");
142 str.append("dataName = " + getDataName() + "\n");
143 str.append("dataType = " + getDataType() + "\n");
144 str.append("transformClass = " + getTransformClassName() + "\n");
145 str.append("description = " + getDescription() + "\n");
146 return str.toString();
147 }
148 }