KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > types > ResultSetRow


1 /**
2  * ResultSetRow.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.types;
9
10 public class ResultSetRow implements java.io.Serializable JavaDoc {
11     private long rowIndex;
12     private org.alfresco.example.webservice.types.NamedValue[] columns;
13     private java.lang.Float JavaDoc score;
14     private org.alfresco.example.webservice.types.ResultSetRowNode node;
15
16     public ResultSetRow() {
17     }
18
19     public ResultSetRow(
20            long rowIndex,
21            org.alfresco.example.webservice.types.NamedValue[] columns,
22            java.lang.Float JavaDoc score,
23            org.alfresco.example.webservice.types.ResultSetRowNode node) {
24            this.rowIndex = rowIndex;
25            this.columns = columns;
26            this.score = score;
27            this.node = node;
28     }
29
30
31     /**
32      * Gets the rowIndex value for this ResultSetRow.
33      *
34      * @return rowIndex
35      */

36     public long getRowIndex() {
37         return rowIndex;
38     }
39
40
41     /**
42      * Sets the rowIndex value for this ResultSetRow.
43      *
44      * @param rowIndex
45      */

46     public void setRowIndex(long rowIndex) {
47         this.rowIndex = rowIndex;
48     }
49
50
51     /**
52      * Gets the columns value for this ResultSetRow.
53      *
54      * @return columns
55      */

56     public org.alfresco.example.webservice.types.NamedValue[] getColumns() {
57         return columns;
58     }
59
60
61     /**
62      * Sets the columns value for this ResultSetRow.
63      *
64      * @param columns
65      */

66     public void setColumns(org.alfresco.example.webservice.types.NamedValue[] columns) {
67         this.columns = columns;
68     }
69
70     public org.alfresco.example.webservice.types.NamedValue getColumns(int i) {
71         return this.columns[i];
72     }
73
74     public void setColumns(int i, org.alfresco.example.webservice.types.NamedValue _value) {
75         this.columns[i] = _value;
76     }
77
78
79     /**
80      * Gets the score value for this ResultSetRow.
81      *
82      * @return score
83      */

84     public java.lang.Float JavaDoc getScore() {
85         return score;
86     }
87
88
89     /**
90      * Sets the score value for this ResultSetRow.
91      *
92      * @param score
93      */

94     public void setScore(java.lang.Float JavaDoc score) {
95         this.score = score;
96     }
97
98
99     /**
100      * Gets the node value for this ResultSetRow.
101      *
102      * @return node
103      */

104     public org.alfresco.example.webservice.types.ResultSetRowNode getNode() {
105         return node;
106     }
107
108
109     /**
110      * Sets the node value for this ResultSetRow.
111      *
112      * @param node
113      */

114     public void setNode(org.alfresco.example.webservice.types.ResultSetRowNode node) {
115         this.node = node;
116     }
117
118     private java.lang.Object JavaDoc __equalsCalc = null;
119     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
120         if (!(obj instanceof ResultSetRow)) return false;
121         ResultSetRow other = (ResultSetRow) obj;
122         if (obj == null) return false;
123         if (this == obj) return true;
124         if (__equalsCalc != null) {
125             return (__equalsCalc == obj);
126         }
127         __equalsCalc = obj;
128         boolean _equals;
129         _equals = true &&
130             this.rowIndex == other.getRowIndex() &&
131             ((this.columns==null && other.getColumns()==null) ||
132              (this.columns!=null &&
133               java.util.Arrays.equals(this.columns, other.getColumns()))) &&
134             ((this.score==null && other.getScore()==null) ||
135              (this.score!=null &&
136               this.score.equals(other.getScore()))) &&
137             ((this.node==null && other.getNode()==null) ||
138              (this.node!=null &&
139               this.node.equals(other.getNode())));
140         __equalsCalc = null;
141         return _equals;
142     }
143
144     private boolean __hashCodeCalc = false;
145     public synchronized int hashCode() {
146         if (__hashCodeCalc) {
147             return 0;
148         }
149         __hashCodeCalc = true;
150         int _hashCode = 1;
151         _hashCode += new Long JavaDoc(getRowIndex()).hashCode();
152         if (getColumns() != null) {
153             for (int i=0;
154                  i<java.lang.reflect.Array.getLength(getColumns());
155                  i++) {
156                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getColumns(), i);
157                 if (obj != null &&
158                     !obj.getClass().isArray()) {
159                     _hashCode += obj.hashCode();
160                 }
161             }
162         }
163         if (getScore() != null) {
164             _hashCode += getScore().hashCode();
165         }
166         if (getNode() != null) {
167             _hashCode += getNode().hashCode();
168         }
169         __hashCodeCalc = false;
170         return _hashCode;
171     }
172
173     // Type metadata
174
private static org.apache.axis.description.TypeDesc typeDesc =
175         new org.apache.axis.description.TypeDesc(ResultSetRow.class, true);
176
177     static {
178         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow"));
179         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
180         elemField.setFieldName("rowIndex");
181         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "rowIndex"));
182         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "long"));
183         elemField.setNillable(false);
184         typeDesc.addFieldDesc(elemField);
185         elemField = new org.apache.axis.description.ElementDesc();
186         elemField.setFieldName("columns");
187         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "columns"));
188         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
189         elemField.setMinOccurs(0);
190         elemField.setNillable(false);
191         elemField.setMaxOccursUnbounded(true);
192         typeDesc.addFieldDesc(elemField);
193         elemField = new org.apache.axis.description.ElementDesc();
194         elemField.setFieldName("score");
195         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "score"));
196         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "float"));
197         elemField.setMinOccurs(0);
198         elemField.setNillable(false);
199         typeDesc.addFieldDesc(elemField);
200         elemField = new org.apache.axis.description.ElementDesc();
201         elemField.setFieldName("node");
202         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "node"));
203         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node"));
204         elemField.setMinOccurs(0);
205         elemField.setNillable(false);
206         typeDesc.addFieldDesc(elemField);
207     }
208
209     /**
210      * Return type metadata object
211      */

212     public static org.apache.axis.description.TypeDesc getTypeDesc() {
213         return typeDesc;
214     }
215
216     /**
217      * Get Custom Serializer
218      */

219     public static org.apache.axis.encoding.Serializer getSerializer(
220            java.lang.String JavaDoc mechType,
221            java.lang.Class JavaDoc _javaType,
222            javax.xml.namespace.QName JavaDoc _xmlType) {
223         return
224           new org.apache.axis.encoding.ser.BeanSerializer(
225             _javaType, _xmlType, typeDesc);
226     }
227
228     /**
229      * Get Custom Deserializer
230      */

231     public static org.apache.axis.encoding.Deserializer getDeserializer(
232            java.lang.String JavaDoc mechType,
233            java.lang.Class JavaDoc _javaType,
234            javax.xml.namespace.QName JavaDoc _xmlType) {
235         return
236           new org.apache.axis.encoding.ser.BeanDeserializer(
237             _javaType, _xmlType, typeDesc);
238     }
239
240 }
241
Popular Tags