1 7 8 package org.alfresco.example.webservice.types; 9 10 public class ResultSet implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.ResultSetRow[] rows; 12 private long totalRowCount; 13 private org.alfresco.example.webservice.types.ResultSetMetaData metaData; 14 15 public ResultSet() { 16 } 17 18 public ResultSet( 19 org.alfresco.example.webservice.types.ResultSetRow[] rows, 20 long totalRowCount, 21 org.alfresco.example.webservice.types.ResultSetMetaData metaData) { 22 this.rows = rows; 23 this.totalRowCount = totalRowCount; 24 this.metaData = metaData; 25 } 26 27 28 33 public org.alfresco.example.webservice.types.ResultSetRow[] getRows() { 34 return rows; 35 } 36 37 38 43 public void setRows(org.alfresco.example.webservice.types.ResultSetRow[] rows) { 44 this.rows = rows; 45 } 46 47 public org.alfresco.example.webservice.types.ResultSetRow getRows(int i) { 48 return this.rows[i]; 49 } 50 51 public void setRows(int i, org.alfresco.example.webservice.types.ResultSetRow _value) { 52 this.rows[i] = _value; 53 } 54 55 56 61 public long getTotalRowCount() { 62 return totalRowCount; 63 } 64 65 66 71 public void setTotalRowCount(long totalRowCount) { 72 this.totalRowCount = totalRowCount; 73 } 74 75 76 81 public org.alfresco.example.webservice.types.ResultSetMetaData getMetaData() { 82 return metaData; 83 } 84 85 86 91 public void setMetaData(org.alfresco.example.webservice.types.ResultSetMetaData metaData) { 92 this.metaData = metaData; 93 } 94 95 private java.lang.Object __equalsCalc = null; 96 public synchronized boolean equals(java.lang.Object obj) { 97 if (!(obj instanceof ResultSet)) return false; 98 ResultSet other = (ResultSet) obj; 99 if (obj == null) return false; 100 if (this == obj) return true; 101 if (__equalsCalc != null) { 102 return (__equalsCalc == obj); 103 } 104 __equalsCalc = obj; 105 boolean _equals; 106 _equals = true && 107 ((this.rows==null && other.getRows()==null) || 108 (this.rows!=null && 109 java.util.Arrays.equals(this.rows, other.getRows()))) && 110 this.totalRowCount == other.getTotalRowCount() && 111 ((this.metaData==null && other.getMetaData()==null) || 112 (this.metaData!=null && 113 this.metaData.equals(other.getMetaData()))); 114 __equalsCalc = null; 115 return _equals; 116 } 117 118 private boolean __hashCodeCalc = false; 119 public synchronized int hashCode() { 120 if (__hashCodeCalc) { 121 return 0; 122 } 123 __hashCodeCalc = true; 124 int _hashCode = 1; 125 if (getRows() != null) { 126 for (int i=0; 127 i<java.lang.reflect.Array.getLength(getRows()); 128 i++) { 129 java.lang.Object obj = java.lang.reflect.Array.get(getRows(), i); 130 if (obj != null && 131 !obj.getClass().isArray()) { 132 _hashCode += obj.hashCode(); 133 } 134 } 135 } 136 _hashCode += new Long (getTotalRowCount()).hashCode(); 137 if (getMetaData() != null) { 138 _hashCode += getMetaData().hashCode(); 139 } 140 __hashCodeCalc = false; 141 return _hashCode; 142 } 143 144 private static org.apache.axis.description.TypeDesc typeDesc = 146 new org.apache.axis.description.TypeDesc(ResultSet.class, true); 147 148 static { 149 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ResultSet")); 150 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 151 elemField.setFieldName("rows"); 152 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "rows")); 153 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow")); 154 elemField.setMinOccurs(0); 155 elemField.setNillable(false); 156 elemField.setMaxOccursUnbounded(true); 157 typeDesc.addFieldDesc(elemField); 158 elemField = new org.apache.axis.description.ElementDesc(); 159 elemField.setFieldName("totalRowCount"); 160 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "totalRowCount")); 161 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "long")); 162 elemField.setNillable(false); 163 typeDesc.addFieldDesc(elemField); 164 elemField = new org.apache.axis.description.ElementDesc(); 165 elemField.setFieldName("metaData"); 166 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "metaData")); 167 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ResultSetMetaData")); 168 elemField.setMinOccurs(0); 169 elemField.setNillable(false); 170 typeDesc.addFieldDesc(elemField); 171 } 172 173 176 public static org.apache.axis.description.TypeDesc getTypeDesc() { 177 return typeDesc; 178 } 179 180 183 public static org.apache.axis.encoding.Serializer getSerializer( 184 java.lang.String mechType, 185 java.lang.Class _javaType, 186 javax.xml.namespace.QName _xmlType) { 187 return 188 new org.apache.axis.encoding.ser.BeanSerializer( 189 _javaType, _xmlType, typeDesc); 190 } 191 192 195 public static org.apache.axis.encoding.Deserializer getDeserializer( 196 java.lang.String mechType, 197 java.lang.Class _javaType, 198 javax.xml.namespace.QName _xmlType) { 199 return 200 new org.apache.axis.encoding.ser.BeanDeserializer( 201 _javaType, _xmlType, typeDesc); 202 } 203 204 } 205 | Popular Tags |