1 7 8 package org.alfresco.example.webservice.types; 9 10 public class QueryConfiguration implements java.io.Serializable { 11 private int fetchSize; 12 13 public QueryConfiguration() { 14 } 15 16 public QueryConfiguration( 17 int fetchSize) { 18 this.fetchSize = fetchSize; 19 } 20 21 22 27 public int getFetchSize() { 28 return fetchSize; 29 } 30 31 32 37 public void setFetchSize(int fetchSize) { 38 this.fetchSize = fetchSize; 39 } 40 41 private java.lang.Object __equalsCalc = null; 42 public synchronized boolean equals(java.lang.Object 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 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 ("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 ("http://www.alfresco.org/ws/headers/1.0", "fetchSize")); 79 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "int")); 80 elemField.setNillable(false); 81 typeDesc.addFieldDesc(elemField); 82 } 83 84 87 public static org.apache.axis.description.TypeDesc getTypeDesc() { 88 return typeDesc; 89 } 90 91 94 public static org.apache.axis.encoding.Serializer getSerializer( 95 java.lang.String mechType, 96 java.lang.Class _javaType, 97 javax.xml.namespace.QName _xmlType) { 98 return 99 new org.apache.axis.encoding.ser.BeanSerializer( 100 _javaType, _xmlType, typeDesc); 101 } 102 103 106 public static org.apache.axis.encoding.Deserializer getDeserializer( 107 java.lang.String mechType, 108 java.lang.Class _javaType, 109 javax.xml.namespace.QName _xmlType) { 110 return 111 new org.apache.axis.encoding.ser.BeanDeserializer( 112 _javaType, _xmlType, typeDesc); 113 } 114 115 } 116 | Popular Tags |