KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > repository > QueryResult


1 /**
2  * QueryResult.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.repository;
9
10 public class QueryResult implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc querySession;
12     private org.alfresco.example.webservice.types.ResultSet resultSet;
13
14     public QueryResult() {
15     }
16
17     public QueryResult(
18            java.lang.String JavaDoc querySession,
19            org.alfresco.example.webservice.types.ResultSet resultSet) {
20            this.querySession = querySession;
21            this.resultSet = resultSet;
22     }
23
24
25     /**
26      * Gets the querySession value for this QueryResult.
27      *
28      * @return querySession
29      */

30     public java.lang.String JavaDoc getQuerySession() {
31         return querySession;
32     }
33
34
35     /**
36      * Sets the querySession value for this QueryResult.
37      *
38      * @param querySession
39      */

40     public void setQuerySession(java.lang.String JavaDoc querySession) {
41         this.querySession = querySession;
42     }
43
44
45     /**
46      * Gets the resultSet value for this QueryResult.
47      *
48      * @return resultSet
49      */

50     public org.alfresco.example.webservice.types.ResultSet getResultSet() {
51         return resultSet;
52     }
53
54
55     /**
56      * Sets the resultSet value for this QueryResult.
57      *
58      * @param resultSet
59      */

60     public void setResultSet(org.alfresco.example.webservice.types.ResultSet resultSet) {
61         this.resultSet = resultSet;
62     }
63
64     private java.lang.Object JavaDoc __equalsCalc = null;
65     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
66         if (!(obj instanceof QueryResult)) return false;
67         QueryResult other = (QueryResult) obj;
68         if (obj == null) return false;
69         if (this == obj) return true;
70         if (__equalsCalc != null) {
71             return (__equalsCalc == obj);
72         }
73         __equalsCalc = obj;
74         boolean _equals;
75         _equals = true &&
76             ((this.querySession==null && other.getQuerySession()==null) ||
77              (this.querySession!=null &&
78               this.querySession.equals(other.getQuerySession()))) &&
79             ((this.resultSet==null && other.getResultSet()==null) ||
80              (this.resultSet!=null &&
81               this.resultSet.equals(other.getResultSet())));
82         __equalsCalc = null;
83         return _equals;
84     }
85
86     private boolean __hashCodeCalc = false;
87     public synchronized int hashCode() {
88         if (__hashCodeCalc) {
89             return 0;
90         }
91         __hashCodeCalc = true;
92         int _hashCode = 1;
93         if (getQuerySession() != null) {
94             _hashCode += getQuerySession().hashCode();
95         }
96         if (getResultSet() != null) {
97             _hashCode += getResultSet().hashCode();
98         }
99         __hashCodeCalc = false;
100         return _hashCode;
101     }
102
103     // Type metadata
104
private static org.apache.axis.description.TypeDesc typeDesc =
105         new org.apache.axis.description.TypeDesc(QueryResult.class, true);
106
107     static {
108         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult"));
109         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
110         elemField.setFieldName("querySession");
111         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "querySession"));
112         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
113         elemField.setNillable(true);
114         typeDesc.addFieldDesc(elemField);
115         elemField = new org.apache.axis.description.ElementDesc();
116         elemField.setFieldName("resultSet");
117         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "resultSet"));
118         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSet"));
119         elemField.setNillable(false);
120         typeDesc.addFieldDesc(elemField);
121     }
122
123     /**
124      * Return type metadata object
125      */

126     public static org.apache.axis.description.TypeDesc getTypeDesc() {
127         return typeDesc;
128     }
129
130     /**
131      * Get Custom Serializer
132      */

133     public static org.apache.axis.encoding.Serializer getSerializer(
134            java.lang.String JavaDoc mechType,
135            java.lang.Class JavaDoc _javaType,
136            javax.xml.namespace.QName JavaDoc _xmlType) {
137         return
138           new org.apache.axis.encoding.ser.BeanSerializer(
139             _javaType, _xmlType, typeDesc);
140     }
141
142     /**
143      * Get Custom Deserializer
144      */

145     public static org.apache.axis.encoding.Deserializer getDeserializer(
146            java.lang.String JavaDoc mechType,
147            java.lang.Class JavaDoc _javaType,
148            javax.xml.namespace.QName JavaDoc _xmlType) {
149         return
150           new org.apache.axis.encoding.ser.BeanDeserializer(
151             _javaType, _xmlType, typeDesc);
152     }
153
154 }
155
Popular Tags