KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > repository > UpdateResult


1 /**
2  * UpdateResult.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.repository;
9
10 public class UpdateResult implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc statement;
12     private org.alfresco.example.webservice.types.ResultSet updateCount;
13     private org.alfresco.example.webservice.types.Reference source;
14     private org.alfresco.example.webservice.types.Reference destination;
15
16     public UpdateResult() {
17     }
18
19     public UpdateResult(
20            java.lang.String JavaDoc statement,
21            org.alfresco.example.webservice.types.ResultSet updateCount,
22            org.alfresco.example.webservice.types.Reference source,
23            org.alfresco.example.webservice.types.Reference destination) {
24            this.statement = statement;
25            this.updateCount = updateCount;
26            this.source = source;
27            this.destination = destination;
28     }
29
30
31     /**
32      * Gets the statement value for this UpdateResult.
33      *
34      * @return statement
35      */

36     public java.lang.String JavaDoc getStatement() {
37         return statement;
38     }
39
40
41     /**
42      * Sets the statement value for this UpdateResult.
43      *
44      * @param statement
45      */

46     public void setStatement(java.lang.String JavaDoc statement) {
47         this.statement = statement;
48     }
49
50
51     /**
52      * Gets the updateCount value for this UpdateResult.
53      *
54      * @return updateCount
55      */

56     public org.alfresco.example.webservice.types.ResultSet getUpdateCount() {
57         return updateCount;
58     }
59
60
61     /**
62      * Sets the updateCount value for this UpdateResult.
63      *
64      * @param updateCount
65      */

66     public void setUpdateCount(org.alfresco.example.webservice.types.ResultSet updateCount) {
67         this.updateCount = updateCount;
68     }
69
70
71     /**
72      * Gets the source value for this UpdateResult.
73      *
74      * @return source
75      */

76     public org.alfresco.example.webservice.types.Reference getSource() {
77         return source;
78     }
79
80
81     /**
82      * Sets the source value for this UpdateResult.
83      *
84      * @param source
85      */

86     public void setSource(org.alfresco.example.webservice.types.Reference source) {
87         this.source = source;
88     }
89
90
91     /**
92      * Gets the destination value for this UpdateResult.
93      *
94      * @return destination
95      */

96     public org.alfresco.example.webservice.types.Reference getDestination() {
97         return destination;
98     }
99
100
101     /**
102      * Sets the destination value for this UpdateResult.
103      *
104      * @param destination
105      */

106     public void setDestination(org.alfresco.example.webservice.types.Reference destination) {
107         this.destination = destination;
108     }
109
110     private java.lang.Object JavaDoc __equalsCalc = null;
111     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
112         if (!(obj instanceof UpdateResult)) return false;
113         UpdateResult other = (UpdateResult) obj;
114         if (obj == null) return false;
115         if (this == obj) return true;
116         if (__equalsCalc != null) {
117             return (__equalsCalc == obj);
118         }
119         __equalsCalc = obj;
120         boolean _equals;
121         _equals = true &&
122             ((this.statement==null && other.getStatement()==null) ||
123              (this.statement!=null &&
124               this.statement.equals(other.getStatement()))) &&
125             ((this.updateCount==null && other.getUpdateCount()==null) ||
126              (this.updateCount!=null &&
127               this.updateCount.equals(other.getUpdateCount()))) &&
128             ((this.source==null && other.getSource()==null) ||
129              (this.source!=null &&
130               this.source.equals(other.getSource()))) &&
131             ((this.destination==null && other.getDestination()==null) ||
132              (this.destination!=null &&
133               this.destination.equals(other.getDestination())));
134         __equalsCalc = null;
135         return _equals;
136     }
137
138     private boolean __hashCodeCalc = false;
139     public synchronized int hashCode() {
140         if (__hashCodeCalc) {
141             return 0;
142         }
143         __hashCodeCalc = true;
144         int _hashCode = 1;
145         if (getStatement() != null) {
146             _hashCode += getStatement().hashCode();
147         }
148         if (getUpdateCount() != null) {
149             _hashCode += getUpdateCount().hashCode();
150         }
151         if (getSource() != null) {
152             _hashCode += getSource().hashCode();
153         }
154         if (getDestination() != null) {
155             _hashCode += getDestination().hashCode();
156         }
157         __hashCodeCalc = false;
158         return _hashCode;
159     }
160
161     // Type metadata
162
private static org.apache.axis.description.TypeDesc typeDesc =
163         new org.apache.axis.description.TypeDesc(UpdateResult.class, true);
164
165     static {
166         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "UpdateResult"));
167         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
168         elemField.setFieldName("statement");
169         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "statement"));
170         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
171         elemField.setNillable(false);
172         typeDesc.addFieldDesc(elemField);
173         elemField = new org.apache.axis.description.ElementDesc();
174         elemField.setFieldName("updateCount");
175         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "updateCount"));
176         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSet"));
177         elemField.setNillable(false);
178         typeDesc.addFieldDesc(elemField);
179         elemField = new org.apache.axis.description.ElementDesc();
180         elemField.setFieldName("source");
181         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "source"));
182         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
183         elemField.setNillable(false);
184         typeDesc.addFieldDesc(elemField);
185         elemField = new org.apache.axis.description.ElementDesc();
186         elemField.setFieldName("destination");
187         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "destination"));
188         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
189         elemField.setNillable(false);
190         typeDesc.addFieldDesc(elemField);
191     }
192
193     /**
194      * Return type metadata object
195      */

196     public static org.apache.axis.description.TypeDesc getTypeDesc() {
197         return typeDesc;
198     }
199
200     /**
201      * Get Custom Serializer
202      */

203     public static org.apache.axis.encoding.Serializer getSerializer(
204            java.lang.String JavaDoc mechType,
205            java.lang.Class JavaDoc _javaType,
206            javax.xml.namespace.QName JavaDoc _xmlType) {
207         return
208           new org.apache.axis.encoding.ser.BeanSerializer(
209             _javaType, _xmlType, typeDesc);
210     }
211
212     /**
213      * Get Custom Deserializer
214      */

215     public static org.apache.axis.encoding.Deserializer getDeserializer(
216            java.lang.String JavaDoc mechType,
217            java.lang.Class JavaDoc _javaType,
218            javax.xml.namespace.QName JavaDoc _xmlType) {
219         return
220           new org.apache.axis.encoding.ser.BeanDeserializer(
221             _javaType, _xmlType, typeDesc);
222     }
223
224 }
225
Popular Tags