KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * QueryConfiguration.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 QueryConfiguration implements java.io.Serializable JavaDoc {
11     private int fetchSize;
12
13     public QueryConfiguration() {
14     }
15
16     public QueryConfiguration(
17            int fetchSize) {
18            this.fetchSize = fetchSize;
19     }
20
21
22     /**
23      * Gets the fetchSize value for this QueryConfiguration.
24      *
25      * @return fetchSize
26      */

27     public int getFetchSize() {
28         return fetchSize;
29     }
30
31
32     /**
33      * Sets the fetchSize value for this QueryConfiguration.
34      *
35      * @param fetchSize
36      */

37     public void setFetchSize(int fetchSize) {
38         this.fetchSize = fetchSize;
39     }
40
41     private java.lang.Object JavaDoc __equalsCalc = null;
42     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
43         if (!(obj instanceof QueryConfiguration)) return false;
44         QueryConfiguration other = (QueryConfiguration) obj;
45         if (obj == null) return false;
46         if (this == obj) return true;
47         if (__equalsCalc != null) {
48             return (__equalsCalc == obj);
49         }
50         __equalsCalc = obj;
51         boolean _equals;
52         _equals = true &&
53             this.fetchSize == other.getFetchSize();
54         __equalsCalc = null;
55         return _equals;
56     }
57
58     private boolean __hashCodeCalc = false;
59     public synchronized int hashCode() {
60         if (__hashCodeCalc) {
61             return 0;
62         }
63         __hashCodeCalc = true;
64         int _hashCode = 1;
65         _hashCode += getFetchSize();
66         __hashCodeCalc = false;
67         return _hashCode;
68     }
69
70     // Type metadata
71
private static org.apache.axis.description.TypeDesc typeDesc =
72         new org.apache.axis.description.TypeDesc(QueryConfiguration.class, true);
73
74     static {
75         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "QueryConfiguration"));
76         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
77         elemField.setFieldName("fetchSize");
78         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "fetchSize"));
79         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
80         elemField.setNillable(false);
81         typeDesc.addFieldDesc(elemField);
82     }
83
84     /**
85      * Return type metadata object
86      */

87     public static org.apache.axis.description.TypeDesc getTypeDesc() {
88         return typeDesc;
89     }
90
91     /**
92      * Get Custom Serializer
93      */

94     public static org.apache.axis.encoding.Serializer getSerializer(
95            java.lang.String JavaDoc mechType,
96            java.lang.Class JavaDoc _javaType,
97            javax.xml.namespace.QName JavaDoc _xmlType) {
98         return
99           new org.apache.axis.encoding.ser.BeanSerializer(
100             _javaType, _xmlType, typeDesc);
101     }
102
103     /**
104      * Get Custom Deserializer
105      */

106     public static org.apache.axis.encoding.Deserializer getDeserializer(
107            java.lang.String JavaDoc mechType,
108            java.lang.Class JavaDoc _javaType,
109            javax.xml.namespace.QName JavaDoc _xmlType) {
110         return
111           new org.apache.axis.encoding.ser.BeanDeserializer(
112             _javaType, _xmlType, typeDesc);
113     }
114
115 }
116
Popular Tags