1 7 8 package org.alfresco.example.webservice.repository; 9 10 public class UpdateResult implements java.io.Serializable { 11 private java.lang.String 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 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 36 public java.lang.String getStatement() { 37 return statement; 38 } 39 40 41 46 public void setStatement(java.lang.String statement) { 47 this.statement = statement; 48 } 49 50 51 56 public org.alfresco.example.webservice.types.ResultSet getUpdateCount() { 57 return updateCount; 58 } 59 60 61 66 public void setUpdateCount(org.alfresco.example.webservice.types.ResultSet updateCount) { 67 this.updateCount = updateCount; 68 } 69 70 71 76 public org.alfresco.example.webservice.types.Reference getSource() { 77 return source; 78 } 79 80 81 86 public void setSource(org.alfresco.example.webservice.types.Reference source) { 87 this.source = source; 88 } 89 90 91 96 public org.alfresco.example.webservice.types.Reference getDestination() { 97 return destination; 98 } 99 100 101 106 public void setDestination(org.alfresco.example.webservice.types.Reference destination) { 107 this.destination = destination; 108 } 109 110 private java.lang.Object __equalsCalc = null; 111 public synchronized boolean equals(java.lang.Object 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 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 ("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 ("http://www.alfresco.org/ws/service/repository/1.0", "statement")); 170 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/repository/1.0", "updateCount")); 176 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/repository/1.0", "source")); 182 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/repository/1.0", "destination")); 188 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 189 elemField.setNillable(false); 190 typeDesc.addFieldDesc(elemField); 191 } 192 193 196 public static org.apache.axis.description.TypeDesc getTypeDesc() { 197 return typeDesc; 198 } 199 200 203 public static org.apache.axis.encoding.Serializer getSerializer( 204 java.lang.String mechType, 205 java.lang.Class _javaType, 206 javax.xml.namespace.QName _xmlType) { 207 return 208 new org.apache.axis.encoding.ser.BeanSerializer( 209 _javaType, _xmlType, typeDesc); 210 } 211 212 215 public static org.apache.axis.encoding.Deserializer getDeserializer( 216 java.lang.String mechType, 217 java.lang.Class _javaType, 218 javax.xml.namespace.QName _xmlType) { 219 return 220 new org.apache.axis.encoding.ser.BeanDeserializer( 221 _javaType, _xmlType, typeDesc); 222 } 223 224 } 225 | Popular Tags |