KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * ResultSet.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 ResultSet implements java.io.Serializable JavaDoc {
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     /**
29      * Gets the rows value for this ResultSet.
30      *
31      * @return rows
32      */

33     public org.alfresco.example.webservice.types.ResultSetRow[] getRows() {
34         return rows;
35     }
36
37
38     /**
39      * Sets the rows value for this ResultSet.
40      *
41      * @param rows
42      */

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     /**
57      * Gets the totalRowCount value for this ResultSet.
58      *
59      * @return totalRowCount
60      */

61     public long getTotalRowCount() {
62         return totalRowCount;
63     }
64
65
66     /**
67      * Sets the totalRowCount value for this ResultSet.
68      *
69      * @param totalRowCount
70      */

71     public void setTotalRowCount(long totalRowCount) {
72         this.totalRowCount = totalRowCount;
73     }
74
75
76     /**
77      * Gets the metaData value for this ResultSet.
78      *
79      * @return metaData
80      */

81     public org.alfresco.example.webservice.types.ResultSetMetaData getMetaData() {
82         return metaData;
83     }
84
85
86     /**
87      * Sets the metaData value for this ResultSet.
88      *
89      * @param metaData
90      */

91     public void setMetaData(org.alfresco.example.webservice.types.ResultSetMetaData metaData) {
92         this.metaData = metaData;
93     }
94
95     private java.lang.Object JavaDoc __equalsCalc = null;
96     public synchronized boolean equals(java.lang.Object JavaDoc 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 JavaDoc 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 JavaDoc(getTotalRowCount()).hashCode();
137         if (getMetaData() != null) {
138             _hashCode += getMetaData().hashCode();
139         }
140         __hashCodeCalc = false;
141         return _hashCode;
142     }
143
144     // Type metadata
145
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 JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "rows"));
153         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "totalRowCount"));
161         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "metaData"));
167         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("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     /**
174      * Return type metadata object
175      */

176     public static org.apache.axis.description.TypeDesc getTypeDesc() {
177         return typeDesc;
178     }
179
180     /**
181      * Get Custom Serializer
182      */

183     public static org.apache.axis.encoding.Serializer getSerializer(
184            java.lang.String JavaDoc mechType,
185            java.lang.Class JavaDoc _javaType,
186            javax.xml.namespace.QName JavaDoc _xmlType) {
187         return
188           new org.apache.axis.encoding.ser.BeanSerializer(
189             _javaType, _xmlType, typeDesc);
190     }
191
192     /**
193      * Get Custom Deserializer
194      */

195     public static org.apache.axis.encoding.Deserializer getDeserializer(
196            java.lang.String JavaDoc mechType,
197            java.lang.Class JavaDoc _javaType,
198            javax.xml.namespace.QName JavaDoc _xmlType) {
199         return
200           new org.apache.axis.encoding.ser.BeanDeserializer(
201             _javaType, _xmlType, typeDesc);
202     }
203
204 }
205
Popular Tags