PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

/connector/src/main/java/com/sforce/soap/partner/UpsertResult.java

https://github.com/chrbayer84/GoodData-CL
Java | 239 lines | 148 code | 35 blank | 56 comment | 26 complexity | 88d4b4939f725a5b66eb39925b72b49f MD5 | raw file
Possible License(s): BSD-3-Clause
  1. /**
  2. * UpsertResult.java
  3. *
  4. * This file was auto-generated from WSDL
  5. * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6. */
  7. package com.sforce.soap.partner;
  8. public class UpsertResult implements java.io.Serializable {
  9. private boolean created;
  10. private com.sforce.soap.partner.Error[] errors;
  11. private java.lang.String id;
  12. private boolean success;
  13. public UpsertResult() {
  14. }
  15. public UpsertResult(
  16. boolean created,
  17. com.sforce.soap.partner.Error[] errors,
  18. java.lang.String id,
  19. boolean success) {
  20. this.created = created;
  21. this.errors = errors;
  22. this.id = id;
  23. this.success = success;
  24. }
  25. /**
  26. * Gets the created value for this UpsertResult.
  27. *
  28. * @return created
  29. */
  30. public boolean isCreated() {
  31. return created;
  32. }
  33. /**
  34. * Sets the created value for this UpsertResult.
  35. *
  36. * @param created
  37. */
  38. public void setCreated(boolean created) {
  39. this.created = created;
  40. }
  41. /**
  42. * Gets the errors value for this UpsertResult.
  43. *
  44. * @return errors
  45. */
  46. public com.sforce.soap.partner.Error[] getErrors() {
  47. return errors;
  48. }
  49. /**
  50. * Sets the errors value for this UpsertResult.
  51. *
  52. * @param errors
  53. */
  54. public void setErrors(com.sforce.soap.partner.Error[] errors) {
  55. this.errors = errors;
  56. }
  57. public com.sforce.soap.partner.Error getErrors(int i) {
  58. return this.errors[i];
  59. }
  60. public void setErrors(int i, com.sforce.soap.partner.Error _value) {
  61. this.errors[i] = _value;
  62. }
  63. /**
  64. * Gets the id value for this UpsertResult.
  65. *
  66. * @return id
  67. */
  68. public java.lang.String getId() {
  69. return id;
  70. }
  71. /**
  72. * Sets the id value for this UpsertResult.
  73. *
  74. * @param id
  75. */
  76. public void setId(java.lang.String id) {
  77. this.id = id;
  78. }
  79. /**
  80. * Gets the success value for this UpsertResult.
  81. *
  82. * @return success
  83. */
  84. public boolean isSuccess() {
  85. return success;
  86. }
  87. /**
  88. * Sets the success value for this UpsertResult.
  89. *
  90. * @param success
  91. */
  92. public void setSuccess(boolean success) {
  93. this.success = success;
  94. }
  95. private java.lang.Object __equalsCalc = null;
  96. public synchronized boolean equals(java.lang.Object obj) {
  97. if (!(obj instanceof UpsertResult)) return false;
  98. UpsertResult other = (UpsertResult) obj;
  99. if (obj == null) return false;
  100. if (this == obj) return true;
  101. if (__equalsCalc != null) {
  102. return (__equalsCalc == obj);
  103. }
  104. __equalsCalc = obj;
  105. boolean _equals;
  106. _equals = true &&
  107. this.created == other.isCreated() &&
  108. ((this.errors == null && other.getErrors() == null) ||
  109. (this.errors != null &&
  110. java.util.Arrays.equals(this.errors, other.getErrors()))) &&
  111. ((this.id == null && other.getId() == null) ||
  112. (this.id != null &&
  113. this.id.equals(other.getId()))) &&
  114. this.success == other.isSuccess();
  115. __equalsCalc = null;
  116. return _equals;
  117. }
  118. private boolean __hashCodeCalc = false;
  119. public synchronized int hashCode() {
  120. if (__hashCodeCalc) {
  121. return 0;
  122. }
  123. __hashCodeCalc = true;
  124. int _hashCode = 1;
  125. _hashCode += (isCreated() ? Boolean.TRUE : Boolean.FALSE).hashCode();
  126. if (getErrors() != null) {
  127. for (int i = 0;
  128. i < java.lang.reflect.Array.getLength(getErrors());
  129. i++) {
  130. java.lang.Object obj = java.lang.reflect.Array.get(getErrors(), i);
  131. if (obj != null &&
  132. !obj.getClass().isArray()) {
  133. _hashCode += obj.hashCode();
  134. }
  135. }
  136. }
  137. if (getId() != null) {
  138. _hashCode += getId().hashCode();
  139. }
  140. _hashCode += (isSuccess() ? Boolean.TRUE : Boolean.FALSE).hashCode();
  141. __hashCodeCalc = false;
  142. return _hashCode;
  143. }
  144. // Type metadata
  145. private static org.apache.axis.description.TypeDesc typeDesc =
  146. new org.apache.axis.description.TypeDesc(UpsertResult.class, true);
  147. static {
  148. typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UpsertResult"));
  149. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  150. elemField.setFieldName("created");
  151. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "created"));
  152. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  153. elemField.setNillable(false);
  154. typeDesc.addFieldDesc(elemField);
  155. elemField = new org.apache.axis.description.ElementDesc();
  156. elemField.setFieldName("errors");
  157. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "errors"));
  158. elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Error"));
  159. elemField.setMinOccurs(0);
  160. elemField.setNillable(false);
  161. elemField.setMaxOccursUnbounded(true);
  162. typeDesc.addFieldDesc(elemField);
  163. elemField = new org.apache.axis.description.ElementDesc();
  164. elemField.setFieldName("id");
  165. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "id"));
  166. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  167. elemField.setNillable(true);
  168. typeDesc.addFieldDesc(elemField);
  169. elemField = new org.apache.axis.description.ElementDesc();
  170. elemField.setFieldName("success");
  171. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "success"));
  172. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  173. elemField.setNillable(false);
  174. typeDesc.addFieldDesc(elemField);
  175. }
  176. /**
  177. * Return type metadata object
  178. */
  179. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  180. return typeDesc;
  181. }
  182. /**
  183. * Get Custom Serializer
  184. */
  185. public static org.apache.axis.encoding.Serializer getSerializer(
  186. java.lang.String mechType,
  187. java.lang.Class _javaType,
  188. javax.xml.namespace.QName _xmlType) {
  189. return
  190. new org.apache.axis.encoding.ser.BeanSerializer(
  191. _javaType, _xmlType, typeDesc);
  192. }
  193. /**
  194. * Get Custom Deserializer
  195. */
  196. public static org.apache.axis.encoding.Deserializer getDeserializer(
  197. java.lang.String mechType,
  198. java.lang.Class _javaType,
  199. javax.xml.namespace.QName _xmlType) {
  200. return
  201. new org.apache.axis.encoding.ser.BeanDeserializer(
  202. _javaType, _xmlType, typeDesc);
  203. }
  204. }