1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class ResultSetRow implements java.io.Serializable { 11 private long rowIndex; 12 13 private org.alfresco.repo.webservice.types.NamedValue[] columns; 14 15 private java.lang.Float score; 16 17 private org.alfresco.repo.webservice.types.ResultSetRowNode node; 18 19 public ResultSetRow() { 20 } 21 22 public ResultSetRow( 23 long rowIndex, 24 org.alfresco.repo.webservice.types.NamedValue[] columns, 25 java.lang.Float score, 26 org.alfresco.repo.webservice.types.ResultSetRowNode node) { 27 this.rowIndex = rowIndex; 28 this.columns = columns; 29 this.score = score; 30 this.node = node; 31 } 32 33 34 39 public long getRowIndex() { 40 return rowIndex; 41 } 42 43 44 49 public void setRowIndex(long rowIndex) { 50 this.rowIndex = rowIndex; 51 } 52 53 54 59 public org.alfresco.repo.webservice.types.NamedValue[] getColumns() { 60 return columns; 61 } 62 63 64 69 public void setColumns(org.alfresco.repo.webservice.types.NamedValue[] columns) { 70 this.columns = columns; 71 } 72 73 public org.alfresco.repo.webservice.types.NamedValue getColumns(int i) { 74 return this.columns[i]; 75 } 76 77 public void setColumns(int i, org.alfresco.repo.webservice.types.NamedValue _value) { 78 this.columns[i] = _value; 79 } 80 81 82 87 public java.lang.Float getScore() { 88 return score; 89 } 90 91 92 97 public void setScore(java.lang.Float score) { 98 this.score = score; 99 } 100 101 102 107 public org.alfresco.repo.webservice.types.ResultSetRowNode getNode() { 108 return node; 109 } 110 111 112 117 public void setNode(org.alfresco.repo.webservice.types.ResultSetRowNode node) { 118 this.node = node; 119 } 120 121 private java.lang.Object __equalsCalc = null; 122 public synchronized boolean equals(java.lang.Object obj) { 123 if (!(obj instanceof ResultSetRow)) return false; 124 ResultSetRow other = (ResultSetRow) obj; 125 if (obj == null) return false; 126 if (this == obj) return true; 127 if (__equalsCalc != null) { 128 return (__equalsCalc == obj); 129 } 130 __equalsCalc = obj; 131 boolean _equals; 132 _equals = true && 133 this.rowIndex == other.getRowIndex() && 134 ((this.columns==null && other.getColumns()==null) || 135 (this.columns!=null && 136 java.util.Arrays.equals(this.columns, other.getColumns()))) && 137 ((this.score==null && other.getScore()==null) || 138 (this.score!=null && 139 this.score.equals(other.getScore()))) && 140 ((this.node==null && other.getNode()==null) || 141 (this.node!=null && 142 this.node.equals(other.getNode()))); 143 __equalsCalc = null; 144 return _equals; 145 } 146 147 private boolean __hashCodeCalc = false; 148 public synchronized int hashCode() { 149 if (__hashCodeCalc) { 150 return 0; 151 } 152 __hashCodeCalc = true; 153 int _hashCode = 1; 154 _hashCode += new Long (getRowIndex()).hashCode(); 155 if (getColumns() != null) { 156 for (int i=0; 157 i<java.lang.reflect.Array.getLength(getColumns()); 158 i++) { 159 java.lang.Object obj = java.lang.reflect.Array.get(getColumns(), i); 160 if (obj != null && 161 !obj.getClass().isArray()) { 162 _hashCode += obj.hashCode(); 163 } 164 } 165 } 166 if (getScore() != null) { 167 _hashCode += getScore().hashCode(); 168 } 169 if (getNode() != null) { 170 _hashCode += getNode().hashCode(); 171 } 172 __hashCodeCalc = false; 173 return _hashCode; 174 } 175 176 private static org.apache.axis.description.TypeDesc typeDesc = 178 new org.apache.axis.description.TypeDesc(ResultSetRow.class, true); 179 180 static { 181 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow")); 182 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 183 elemField.setFieldName("rowIndex"); 184 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "rowIndex")); 185 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "long")); 186 elemField.setNillable(false); 187 typeDesc.addFieldDesc(elemField); 188 elemField = new org.apache.axis.description.ElementDesc(); 189 elemField.setFieldName("columns"); 190 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "columns")); 191 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 192 elemField.setMinOccurs(0); 193 elemField.setNillable(false); 194 elemField.setMaxOccursUnbounded(true); 195 typeDesc.addFieldDesc(elemField); 196 elemField = new org.apache.axis.description.ElementDesc(); 197 elemField.setFieldName("score"); 198 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "score")); 199 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "float")); 200 elemField.setMinOccurs(0); 201 elemField.setNillable(false); 202 typeDesc.addFieldDesc(elemField); 203 elemField = new org.apache.axis.description.ElementDesc(); 204 elemField.setFieldName("node"); 205 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "node")); 206 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node")); 207 elemField.setMinOccurs(0); 208 elemField.setNillable(false); 209 typeDesc.addFieldDesc(elemField); 210 } 211 212 215 public static org.apache.axis.description.TypeDesc getTypeDesc() { 216 return typeDesc; 217 } 218 219 222 public static org.apache.axis.encoding.Serializer getSerializer( 223 java.lang.String mechType, 224 java.lang.Class _javaType, 225 javax.xml.namespace.QName _xmlType) { 226 return 227 new org.apache.axis.encoding.ser.BeanSerializer( 228 _javaType, _xmlType, typeDesc); 229 } 230 231 234 public static org.apache.axis.encoding.Deserializer getDeserializer( 235 java.lang.String mechType, 236 java.lang.Class _javaType, 237 javax.xml.namespace.QName _xmlType) { 238 return 239 new org.apache.axis.encoding.ser.BeanDeserializer( 240 _javaType, _xmlType, typeDesc); 241 } 242 243 } 244 | Popular Tags |