PageRenderTime 87ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/gooddata-cl-1.1.9/connector/src/main/java/com/sforce/soap/partner/Query.java

#
Java | 123 lines | 77 code | 17 blank | 29 comment | 14 complexity | fa146752df850fc30c7b2e89f51f2b4a MD5 | raw file
Possible License(s): BSD-3-Clause
  1. /*
  2. * .
  3. */
  4. /**
  5. * Query.java
  6. *
  7. * This file was auto-generated from WSDL
  8. * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  9. */
  10. package com.sforce.soap.partner;
  11. public class Query implements java.io.Serializable {
  12. private String queryString;
  13. public Query() {
  14. }
  15. public Query(
  16. String queryString) {
  17. this.queryString = queryString;
  18. }
  19. /**
  20. * Gets the queryString value for this Query.
  21. *
  22. * @return queryString
  23. */
  24. public String getQueryString() {
  25. return queryString;
  26. }
  27. /**
  28. * Sets the queryString value for this Query.
  29. *
  30. * @param queryString
  31. */
  32. public void setQueryString(String queryString) {
  33. this.queryString = queryString;
  34. }
  35. private Object __equalsCalc = null;
  36. public synchronized boolean equals(Object obj) {
  37. if (!(obj instanceof Query)) return false;
  38. Query other = (Query) obj;
  39. if (obj == null) return false;
  40. if (this == obj) return true;
  41. if (__equalsCalc != null) {
  42. return (__equalsCalc == obj);
  43. }
  44. __equalsCalc = obj;
  45. boolean _equals;
  46. _equals = true &&
  47. ((this.queryString==null && other.getQueryString()==null) ||
  48. (this.queryString!=null &&
  49. this.queryString.equals(other.getQueryString())));
  50. __equalsCalc = null;
  51. return _equals;
  52. }
  53. private boolean __hashCodeCalc = false;
  54. public synchronized int hashCode() {
  55. if (__hashCodeCalc) {
  56. return 0;
  57. }
  58. __hashCodeCalc = true;
  59. int _hashCode = 1;
  60. if (getQueryString() != null) {
  61. _hashCode += getQueryString().hashCode();
  62. }
  63. __hashCodeCalc = false;
  64. return _hashCode;
  65. }
  66. // Type metadata
  67. private static org.apache.axis.description.TypeDesc typeDesc =
  68. new org.apache.axis.description.TypeDesc(Query.class, true);
  69. static {
  70. typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">query"));
  71. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  72. elemField.setFieldName("queryString");
  73. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryString"));
  74. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  75. elemField.setNillable(false);
  76. typeDesc.addFieldDesc(elemField);
  77. }
  78. /**
  79. * Return type metadata object
  80. */
  81. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  82. return typeDesc;
  83. }
  84. /**
  85. * Get Custom Serializer
  86. */
  87. public static org.apache.axis.encoding.Serializer getSerializer(
  88. String mechType,
  89. Class _javaType,
  90. javax.xml.namespace.QName _xmlType) {
  91. return
  92. new org.apache.axis.encoding.ser.BeanSerializer(
  93. _javaType, _xmlType, typeDesc);
  94. }
  95. /**
  96. * Get Custom Deserializer
  97. */
  98. public static org.apache.axis.encoding.Deserializer getDeserializer(
  99. String mechType,
  100. Class _javaType,
  101. javax.xml.namespace.QName _xmlType) {
  102. return
  103. new org.apache.axis.encoding.ser.BeanDeserializer(
  104. _javaType, _xmlType, typeDesc);
  105. }
  106. }