KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * ResultSet.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.types;
9
10 public class ResultSet implements java.io.Serializable JavaDoc {
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     /**
31      * Gets the rows value for this ResultSet.
32      *
33      * @return rows
34      */

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

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

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

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

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

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

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

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

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