1
2
3
4
5
6
7
8 package org.ogf.srm11.bean;
9
10 public class RequestStatus implements java.io.Serializable {
11 private int requestId;
12
13 private java.lang.String type;
14
15 private java.lang.String state;
16
17 private java.util.Calendar submitTime;
18
19 private java.util.Calendar startTime;
20
21 private java.util.Calendar finishTime;
22
23 private int estTimeToStart;
24
25 private org.ogf.srm11.bean.RequestFileStatus[] fileStatuses;
26
27 private java.lang.String errorMessage;
28
29 private int retryDeltaTime;
30
31 public RequestStatus() {
32 }
33
34 public RequestStatus(
35 int requestId,
36 java.lang.String type,
37 java.lang.String state,
38 java.util.Calendar submitTime,
39 java.util.Calendar startTime,
40 java.util.Calendar finishTime,
41 int estTimeToStart,
42 org.ogf.srm11.bean.RequestFileStatus[] fileStatuses,
43 java.lang.String errorMessage,
44 int retryDeltaTime) {
45 this.requestId = requestId;
46 this.type = type;
47 this.state = state;
48 this.submitTime = submitTime;
49 this.startTime = startTime;
50 this.finishTime = finishTime;
51 this.estTimeToStart = estTimeToStart;
52 this.fileStatuses = fileStatuses;
53 this.errorMessage = errorMessage;
54 this.retryDeltaTime = retryDeltaTime;
55 }
56
57
58
59
60
61
62
63 public int getRequestId() {
64 return requestId;
65 }
66
67
68
69
70
71
72
73 public void setRequestId(int requestId) {
74 this.requestId = requestId;
75 }
76
77
78
79
80
81
82
83 public java.lang.String getType() {
84 return type;
85 }
86
87
88
89
90
91
92
93 public void setType(java.lang.String type) {
94 this.type = type;
95 }
96
97
98
99
100
101
102
103 public java.lang.String getState() {
104 return state;
105 }
106
107
108
109
110
111
112
113 public void setState(java.lang.String state) {
114 this.state = state;
115 }
116
117
118
119
120
121
122
123 public java.util.Calendar getSubmitTime() {
124 return submitTime;
125 }
126
127
128
129
130
131
132
133 public void setSubmitTime(java.util.Calendar submitTime) {
134 this.submitTime = submitTime;
135 }
136
137
138
139
140
141
142
143 public java.util.Calendar getStartTime() {
144 return startTime;
145 }
146
147
148
149
150
151
152
153 public void setStartTime(java.util.Calendar startTime) {
154 this.startTime = startTime;
155 }
156
157
158
159
160
161
162
163 public java.util.Calendar getFinishTime() {
164 return finishTime;
165 }
166
167
168
169
170
171
172
173 public void setFinishTime(java.util.Calendar finishTime) {
174 this.finishTime = finishTime;
175 }
176
177
178
179
180
181
182
183 public int getEstTimeToStart() {
184 return estTimeToStart;
185 }
186
187
188
189
190
191
192
193 public void setEstTimeToStart(int estTimeToStart) {
194 this.estTimeToStart = estTimeToStart;
195 }
196
197
198
199
200
201
202
203 public org.ogf.srm11.bean.RequestFileStatus[] getFileStatuses() {
204 return fileStatuses;
205 }
206
207
208
209
210
211
212
213 public void setFileStatuses(org.ogf.srm11.bean.RequestFileStatus[] fileStatuses) {
214 this.fileStatuses = fileStatuses;
215 }
216
217
218
219
220
221
222
223 public java.lang.String getErrorMessage() {
224 return errorMessage;
225 }
226
227
228
229
230
231
232
233 public void setErrorMessage(java.lang.String errorMessage) {
234 this.errorMessage = errorMessage;
235 }
236
237
238
239
240
241
242
243 public int getRetryDeltaTime() {
244 return retryDeltaTime;
245 }
246
247
248
249
250
251
252
253 public void setRetryDeltaTime(int retryDeltaTime) {
254 this.retryDeltaTime = retryDeltaTime;
255 }
256
257 private java.lang.Object __equalsCalc = null;
258 public synchronized boolean equals(java.lang.Object obj) {
259 if (!(obj instanceof RequestStatus)) return false;
260 RequestStatus other = (RequestStatus) 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.requestId == other.getRequestId() &&
270 ((this.type==null && other.getType()==null) ||
271 (this.type!=null &&
272 this.type.equals(other.getType()))) &&
273 ((this.state==null && other.getState()==null) ||
274 (this.state!=null &&
275 this.state.equals(other.getState()))) &&
276 ((this.submitTime==null && other.getSubmitTime()==null) ||
277 (this.submitTime!=null &&
278 this.submitTime.equals(other.getSubmitTime()))) &&
279 ((this.startTime==null && other.getStartTime()==null) ||
280 (this.startTime!=null &&
281 this.startTime.equals(other.getStartTime()))) &&
282 ((this.finishTime==null && other.getFinishTime()==null) ||
283 (this.finishTime!=null &&
284 this.finishTime.equals(other.getFinishTime()))) &&
285 this.estTimeToStart == other.getEstTimeToStart() &&
286 ((this.fileStatuses==null && other.getFileStatuses()==null) ||
287 (this.fileStatuses!=null &&
288 java.util.Arrays.equals(this.fileStatuses, other.getFileStatuses()))) &&
289 ((this.errorMessage==null && other.getErrorMessage()==null) ||
290 (this.errorMessage!=null &&
291 this.errorMessage.equals(other.getErrorMessage()))) &&
292 this.retryDeltaTime == other.getRetryDeltaTime();
293 __equalsCalc = null;
294 return _equals;
295 }
296
297 private boolean __hashCodeCalc = false;
298 public synchronized int hashCode() {
299 if (__hashCodeCalc) {
300 return 0;
301 }
302 __hashCodeCalc = true;
303 int _hashCode = 1;
304 _hashCode += getRequestId();
305 if (getType() != null) {
306 _hashCode += getType().hashCode();
307 }
308 if (getState() != null) {
309 _hashCode += getState().hashCode();
310 }
311 if (getSubmitTime() != null) {
312 _hashCode += getSubmitTime().hashCode();
313 }
314 if (getStartTime() != null) {
315 _hashCode += getStartTime().hashCode();
316 }
317 if (getFinishTime() != null) {
318 _hashCode += getFinishTime().hashCode();
319 }
320 _hashCode += getEstTimeToStart();
321 if (getFileStatuses() != null) {
322 for (int i=0;
323 i<java.lang.reflect.Array.getLength(getFileStatuses());
324 i++) {
325 java.lang.Object obj = java.lang.reflect.Array.get(getFileStatuses(), i);
326 if (obj != null &&
327 !obj.getClass().isArray()) {
328 _hashCode += obj.hashCode();
329 }
330 }
331 }
332 if (getErrorMessage() != null) {
333 _hashCode += getErrorMessage().hashCode();
334 }
335 _hashCode += getRetryDeltaTime();
336 __hashCodeCalc = false;
337 return _hashCode;
338 }
339
340
341 private static org.apache.axis.description.TypeDesc typeDesc =
342 new org.apache.axis.description.TypeDesc(RequestStatus.class, true);
343
344 static {
345 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.themindelectric.com/package/diskCacheV111.srm/", "RequestStatus"));
346 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
347 elemField.setFieldName("requestId");
348 elemField.setXmlName(new javax.xml.namespace.QName("", "requestId"));
349 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
350 elemField.setNillable(false);
351 typeDesc.addFieldDesc(elemField);
352 elemField = new org.apache.axis.description.ElementDesc();
353 elemField.setFieldName("type");
354 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
355 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
356 elemField.setNillable(true);
357 typeDesc.addFieldDesc(elemField);
358 elemField = new org.apache.axis.description.ElementDesc();
359 elemField.setFieldName("state");
360 elemField.setXmlName(new javax.xml.namespace.QName("", "state"));
361 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
362 elemField.setNillable(true);
363 typeDesc.addFieldDesc(elemField);
364 elemField = new org.apache.axis.description.ElementDesc();
365 elemField.setFieldName("submitTime");
366 elemField.setXmlName(new javax.xml.namespace.QName("", "submitTime"));
367 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
368 elemField.setNillable(true);
369 typeDesc.addFieldDesc(elemField);
370 elemField = new org.apache.axis.description.ElementDesc();
371 elemField.setFieldName("startTime");
372 elemField.setXmlName(new javax.xml.namespace.QName("", "startTime"));
373 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
374 elemField.setNillable(true);
375 typeDesc.addFieldDesc(elemField);
376 elemField = new org.apache.axis.description.ElementDesc();
377 elemField.setFieldName("finishTime");
378 elemField.setXmlName(new javax.xml.namespace.QName("", "finishTime"));
379 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
380 elemField.setNillable(true);
381 typeDesc.addFieldDesc(elemField);
382 elemField = new org.apache.axis.description.ElementDesc();
383 elemField.setFieldName("estTimeToStart");
384 elemField.setXmlName(new javax.xml.namespace.QName("", "estTimeToStart"));
385 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
386 elemField.setNillable(false);
387 typeDesc.addFieldDesc(elemField);
388 elemField = new org.apache.axis.description.ElementDesc();
389 elemField.setFieldName("fileStatuses");
390 elemField.setXmlName(new javax.xml.namespace.QName("", "fileStatuses"));
391 elemField.setXmlType(new javax.xml.namespace.QName("http://www.themindelectric.com/package/diskCacheV111.srm/", "RequestFileStatus"));
392 elemField.setNillable(true);
393 typeDesc.addFieldDesc(elemField);
394 elemField = new org.apache.axis.description.ElementDesc();
395 elemField.setFieldName("errorMessage");
396 elemField.setXmlName(new javax.xml.namespace.QName("", "errorMessage"));
397 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
398 elemField.setNillable(true);
399 typeDesc.addFieldDesc(elemField);
400 elemField = new org.apache.axis.description.ElementDesc();
401 elemField.setFieldName("retryDeltaTime");
402 elemField.setXmlName(new javax.xml.namespace.QName("", "retryDeltaTime"));
403 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
404 elemField.setNillable(false);
405 typeDesc.addFieldDesc(elemField);
406 }
407
408
409
410
411 public static org.apache.axis.description.TypeDesc getTypeDesc() {
412 return typeDesc;
413 }
414
415
416
417
418 public static org.apache.axis.encoding.Serializer getSerializer(
419 java.lang.String mechType,
420 java.lang.Class _javaType,
421 javax.xml.namespace.QName _xmlType) {
422 return
423 new org.apache.axis.encoding.ser.BeanSerializer(
424 _javaType, _xmlType, typeDesc);
425 }
426
427
428
429
430 public static org.apache.axis.encoding.Deserializer getDeserializer(
431 java.lang.String mechType,
432 java.lang.Class _javaType,
433 javax.xml.namespace.QName _xmlType) {
434 return
435 new org.apache.axis.encoding.ser.BeanDeserializer(
436 _javaType, _xmlType, typeDesc);
437 }
438
439 }