1
7
8 package com.liferay.client.portlet.bookmarks.model;
9
10 public class BookmarksFolderSoap implements java.io.Serializable {
11 private long companyId;
12
13 private java.util.Calendar createDate;
14
15 private java.lang.String description;
16
17 private long folderId;
18
19 private long groupId;
20
21 private java.util.Calendar modifiedDate;
22
23 private java.lang.String name;
24
25 private long parentFolderId;
26
27 private long primaryKey;
28
29 private long userId;
30
31 public BookmarksFolderSoap() {
32 }
33
34 public BookmarksFolderSoap(
35 long companyId,
36 java.util.Calendar createDate,
37 java.lang.String description,
38 long folderId,
39 long groupId,
40 java.util.Calendar modifiedDate,
41 java.lang.String name,
42 long parentFolderId,
43 long primaryKey,
44 long userId) {
45 this.companyId = companyId;
46 this.createDate = createDate;
47 this.description = description;
48 this.folderId = folderId;
49 this.groupId = groupId;
50 this.modifiedDate = modifiedDate;
51 this.name = name;
52 this.parentFolderId = parentFolderId;
53 this.primaryKey = primaryKey;
54 this.userId = userId;
55 }
56
57
58
63 public long getCompanyId() {
64 return companyId;
65 }
66
67
68
73 public void setCompanyId(long companyId) {
74 this.companyId = companyId;
75 }
76
77
78
83 public java.util.Calendar getCreateDate() {
84 return createDate;
85 }
86
87
88
93 public void setCreateDate(java.util.Calendar createDate) {
94 this.createDate = createDate;
95 }
96
97
98
103 public java.lang.String getDescription() {
104 return description;
105 }
106
107
108
113 public void setDescription(java.lang.String description) {
114 this.description = description;
115 }
116
117
118
123 public long getFolderId() {
124 return folderId;
125 }
126
127
128
133 public void setFolderId(long folderId) {
134 this.folderId = folderId;
135 }
136
137
138
143 public long getGroupId() {
144 return groupId;
145 }
146
147
148
153 public void setGroupId(long groupId) {
154 this.groupId = groupId;
155 }
156
157
158
163 public java.util.Calendar getModifiedDate() {
164 return modifiedDate;
165 }
166
167
168
173 public void setModifiedDate(java.util.Calendar modifiedDate) {
174 this.modifiedDate = modifiedDate;
175 }
176
177
178
183 public java.lang.String getName() {
184 return name;
185 }
186
187
188
193 public void setName(java.lang.String name) {
194 this.name = name;
195 }
196
197
198
203 public long getParentFolderId() {
204 return parentFolderId;
205 }
206
207
208
213 public void setParentFolderId(long parentFolderId) {
214 this.parentFolderId = parentFolderId;
215 }
216
217
218
223 public long getPrimaryKey() {
224 return primaryKey;
225 }
226
227
228
233 public void setPrimaryKey(long primaryKey) {
234 this.primaryKey = primaryKey;
235 }
236
237
238
243 public long getUserId() {
244 return userId;
245 }
246
247
248
253 public void setUserId(long userId) {
254 this.userId = userId;
255 }
256
257 private java.lang.Object __equalsCalc = null;
258 public synchronized boolean equals(java.lang.Object obj) {
259 if (!(obj instanceof BookmarksFolderSoap)) return false;
260 BookmarksFolderSoap other = (BookmarksFolderSoap) obj;
261 if (obj == null) return false;
262 if (this == obj) return true;
263 if (__equalsCalc != null) {
264 return (__equalsCalc == obj);
265 }
266 __equalsCalc = obj;
267 boolean _equals;
268 _equals = true &&
269 this.companyId == other.getCompanyId() &&
270 ((this.createDate==null && other.getCreateDate()==null) ||
271 (this.createDate!=null &&
272 this.createDate.equals(other.getCreateDate()))) &&
273 ((this.description==null && other.getDescription()==null) ||
274 (this.description!=null &&
275 this.description.equals(other.getDescription()))) &&
276 this.folderId == other.getFolderId() &&
277 this.groupId == other.getGroupId() &&
278 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
279 (this.modifiedDate!=null &&
280 this.modifiedDate.equals(other.getModifiedDate()))) &&
281 ((this.name==null && other.getName()==null) ||
282 (this.name!=null &&
283 this.name.equals(other.getName()))) &&
284 this.parentFolderId == other.getParentFolderId() &&
285 this.primaryKey == other.getPrimaryKey() &&
286 this.userId == other.getUserId();
287 __equalsCalc = null;
288 return _equals;
289 }
290
291 private boolean __hashCodeCalc = false;
292 public synchronized int hashCode() {
293 if (__hashCodeCalc) {
294 return 0;
295 }
296 __hashCodeCalc = true;
297 int _hashCode = 1;
298 _hashCode += new Long(getCompanyId()).hashCode();
299 if (getCreateDate() != null) {
300 _hashCode += getCreateDate().hashCode();
301 }
302 if (getDescription() != null) {
303 _hashCode += getDescription().hashCode();
304 }
305 _hashCode += new Long(getFolderId()).hashCode();
306 _hashCode += new Long(getGroupId()).hashCode();
307 if (getModifiedDate() != null) {
308 _hashCode += getModifiedDate().hashCode();
309 }
310 if (getName() != null) {
311 _hashCode += getName().hashCode();
312 }
313 _hashCode += new Long(getParentFolderId()).hashCode();
314 _hashCode += new Long(getPrimaryKey()).hashCode();
315 _hashCode += new Long(getUserId()).hashCode();
316 __hashCodeCalc = false;
317 return _hashCode;
318 }
319
320 private static org.apache.axis.description.TypeDesc typeDesc =
322 new org.apache.axis.description.TypeDesc(BookmarksFolderSoap.class, true);
323
324 static {
325 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.bookmarks.portlet.liferay.com", "BookmarksFolderSoap"));
326 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
327 elemField.setFieldName("companyId");
328 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
329 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
330 elemField.setNillable(false);
331 typeDesc.addFieldDesc(elemField);
332 elemField = new org.apache.axis.description.ElementDesc();
333 elemField.setFieldName("createDate");
334 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
335 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
336 elemField.setNillable(true);
337 typeDesc.addFieldDesc(elemField);
338 elemField = new org.apache.axis.description.ElementDesc();
339 elemField.setFieldName("description");
340 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
341 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
342 elemField.setNillable(true);
343 typeDesc.addFieldDesc(elemField);
344 elemField = new org.apache.axis.description.ElementDesc();
345 elemField.setFieldName("folderId");
346 elemField.setXmlName(new javax.xml.namespace.QName("", "folderId"));
347 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
348 elemField.setNillable(false);
349 typeDesc.addFieldDesc(elemField);
350 elemField = new org.apache.axis.description.ElementDesc();
351 elemField.setFieldName("groupId");
352 elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
353 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
354 elemField.setNillable(false);
355 typeDesc.addFieldDesc(elemField);
356 elemField = new org.apache.axis.description.ElementDesc();
357 elemField.setFieldName("modifiedDate");
358 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
359 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
360 elemField.setNillable(true);
361 typeDesc.addFieldDesc(elemField);
362 elemField = new org.apache.axis.description.ElementDesc();
363 elemField.setFieldName("name");
364 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
365 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
366 elemField.setNillable(true);
367 typeDesc.addFieldDesc(elemField);
368 elemField = new org.apache.axis.description.ElementDesc();
369 elemField.setFieldName("parentFolderId");
370 elemField.setXmlName(new javax.xml.namespace.QName("", "parentFolderId"));
371 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
372 elemField.setNillable(false);
373 typeDesc.addFieldDesc(elemField);
374 elemField = new org.apache.axis.description.ElementDesc();
375 elemField.setFieldName("primaryKey");
376 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
377 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
378 elemField.setNillable(false);
379 typeDesc.addFieldDesc(elemField);
380 elemField = new org.apache.axis.description.ElementDesc();
381 elemField.setFieldName("userId");
382 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
383 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
384 elemField.setNillable(false);
385 typeDesc.addFieldDesc(elemField);
386 }
387
388
391 public static org.apache.axis.description.TypeDesc getTypeDesc() {
392 return typeDesc;
393 }
394
395
398 public static org.apache.axis.encoding.Serializer getSerializer(
399 java.lang.String mechType,
400 java.lang.Class _javaType,
401 javax.xml.namespace.QName _xmlType) {
402 return
403 new org.apache.axis.encoding.ser.BeanSerializer(
404 _javaType, _xmlType, typeDesc);
405 }
406
407
410 public static org.apache.axis.encoding.Deserializer getDeserializer(
411 java.lang.String mechType,
412 java.lang.Class _javaType,
413 javax.xml.namespace.QName _xmlType) {
414 return
415 new org.apache.axis.encoding.ser.BeanDeserializer(
416 _javaType, _xmlType, typeDesc);
417 }
418
419 }
420