1 7 8 package org.alfresco.repo.webservice.repository; 9 10 public class UpdateResult implements java.io.Serializable { 11 private java.lang.String 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 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 39 public java.lang.String getStatement() { 40 return statement; 41 } 42 43 44 49 public void setStatement(java.lang.String statement) { 50 this.statement = statement; 51 } 52 53 54 59 public org.alfresco.repo.webservice.types.ResultSet getUpdateCount() { 60 return updateCount; 61 } 62 63 64 69 public void setUpdateCount(org.alfresco.repo.webservice.types.ResultSet updateCount) { 70 this.updateCount = updateCount; 71 } 72 73 74 79 public org.alfresco.repo.webservice.types.Reference getSource() { 80 return source; 81 } 82 83 84 89 public void setSource(org.alfresco.repo.webservice.types.Reference source) { 90 this.source = source; 91 } 92 93 94 99 public org.alfresco.repo.webservice.types.Reference getDestination() { 100 return destination; 101 } 102 103 104 109 public void setDestination(org.alfresco.repo.webservice.types.Reference destination) { 110 this.destination = destination; 111 } 112 113 private java.lang.Object __equalsCalc = null; 114 public synchronized boolean equals(java.lang.Object 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 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 ("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 ("http://www.alfresco.org/ws/service/repository/1.0", "statement")); 173 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/repository/1.0", "updateCount")); 179 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/repository/1.0", "source")); 185 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/repository/1.0", "destination")); 191 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 192 elemField.setNillable(true); 193 typeDesc.addFieldDesc(elemField); 194 } 195 196 199 public static org.apache.axis.description.TypeDesc getTypeDesc() { 200 return typeDesc; 201 } 202 203 206 public static org.apache.axis.encoding.Serializer getSerializer( 207 java.lang.String mechType, 208 java.lang.Class _javaType, 209 javax.xml.namespace.QName _xmlType) { 210 return 211 new org.apache.axis.encoding.ser.BeanSerializer( 212 _javaType, _xmlType, typeDesc); 213 } 214 215 218 public static org.apache.axis.encoding.Deserializer getDeserializer( 219 java.lang.String mechType, 220 java.lang.Class _javaType, 221 javax.xml.namespace.QName _xmlType) { 222 return 223 new org.apache.axis.encoding.ser.BeanDeserializer( 224 _javaType, _xmlType, typeDesc); 225 } 226 227 } 228 | Popular Tags |