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