KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * UpdateResult.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

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

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

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

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

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

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

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

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

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

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

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

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