WSContext.java 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. /**
  2. * WSContext.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.steerinfo.dil.wsdl;
  8. public class WSContext implements java.io.Serializable {
  9. private int dbType;
  10. private String dcName;
  11. private String password;
  12. private String sessionId;
  13. private String slnName;
  14. private String userName;
  15. public WSContext() {
  16. }
  17. public WSContext(
  18. int dbType,
  19. String dcName,
  20. String password,
  21. String sessionId,
  22. String slnName,
  23. String userName) {
  24. this.dbType = dbType;
  25. this.dcName = dcName;
  26. this.password = password;
  27. this.sessionId = sessionId;
  28. this.slnName = slnName;
  29. this.userName = userName;
  30. }
  31. /**
  32. * Gets the dbType value for this WSContext.
  33. *
  34. * @return dbType
  35. */
  36. public int getDbType() {
  37. return dbType;
  38. }
  39. /**
  40. * Sets the dbType value for this WSContext.
  41. *
  42. * @param dbType
  43. */
  44. public void setDbType(int dbType) {
  45. this.dbType = dbType;
  46. }
  47. /**
  48. * Gets the dcName value for this WSContext.
  49. *
  50. * @return dcName
  51. */
  52. public String getDcName() {
  53. return dcName;
  54. }
  55. /**
  56. * Sets the dcName value for this WSContext.
  57. *
  58. * @param dcName
  59. */
  60. public void setDcName(String dcName) {
  61. this.dcName = dcName;
  62. }
  63. /**
  64. * Gets the password value for this WSContext.
  65. *
  66. * @return password
  67. */
  68. public String getPassword() {
  69. return password;
  70. }
  71. /**
  72. * Sets the password value for this WSContext.
  73. *
  74. * @param password
  75. */
  76. public void setPassword(String password) {
  77. this.password = password;
  78. }
  79. /**
  80. * Gets the sessionId value for this WSContext.
  81. *
  82. * @return sessionId
  83. */
  84. public String getSessionId() {
  85. return sessionId;
  86. }
  87. /**
  88. * Sets the sessionId value for this WSContext.
  89. *
  90. * @param sessionId
  91. */
  92. public void setSessionId(String sessionId) {
  93. this.sessionId = sessionId;
  94. }
  95. /**
  96. * Gets the slnName value for this WSContext.
  97. *
  98. * @return slnName
  99. */
  100. public String getSlnName() {
  101. return slnName;
  102. }
  103. /**
  104. * Sets the slnName value for this WSContext.
  105. *
  106. * @param slnName
  107. */
  108. public void setSlnName(String slnName) {
  109. this.slnName = slnName;
  110. }
  111. /**
  112. * Gets the userName value for this WSContext.
  113. *
  114. * @return userName
  115. */
  116. public String getUserName() {
  117. return userName;
  118. }
  119. /**
  120. * Sets the userName value for this WSContext.
  121. *
  122. * @param userName
  123. */
  124. public void setUserName(String userName) {
  125. this.userName = userName;
  126. }
  127. private Object __equalsCalc = null;
  128. public synchronized boolean equals(Object obj) {
  129. if (!(obj instanceof WSContext)) return false;
  130. WSContext other = (WSContext) obj;
  131. if (obj == null) return false;
  132. if (this == obj) return true;
  133. if (__equalsCalc != null) {
  134. return (__equalsCalc == obj);
  135. }
  136. __equalsCalc = obj;
  137. boolean _equals;
  138. _equals = true &&
  139. this.dbType == other.getDbType() &&
  140. ((this.dcName==null && other.getDcName()==null) ||
  141. (this.dcName!=null &&
  142. this.dcName.equals(other.getDcName()))) &&
  143. ((this.password==null && other.getPassword()==null) ||
  144. (this.password!=null &&
  145. this.password.equals(other.getPassword()))) &&
  146. ((this.sessionId==null && other.getSessionId()==null) ||
  147. (this.sessionId!=null &&
  148. this.sessionId.equals(other.getSessionId()))) &&
  149. ((this.slnName==null && other.getSlnName()==null) ||
  150. (this.slnName!=null &&
  151. this.slnName.equals(other.getSlnName()))) &&
  152. ((this.userName==null && other.getUserName()==null) ||
  153. (this.userName!=null &&
  154. this.userName.equals(other.getUserName())));
  155. __equalsCalc = null;
  156. return _equals;
  157. }
  158. private boolean __hashCodeCalc = false;
  159. public synchronized int hashCode() {
  160. if (__hashCodeCalc) {
  161. return 0;
  162. }
  163. __hashCodeCalc = true;
  164. int _hashCode = 1;
  165. _hashCode += getDbType();
  166. if (getDcName() != null) {
  167. _hashCode += getDcName().hashCode();
  168. }
  169. if (getPassword() != null) {
  170. _hashCode += getPassword().hashCode();
  171. }
  172. if (getSessionId() != null) {
  173. _hashCode += getSessionId().hashCode();
  174. }
  175. if (getSlnName() != null) {
  176. _hashCode += getSlnName().hashCode();
  177. }
  178. if (getUserName() != null) {
  179. _hashCode += getUserName().hashCode();
  180. }
  181. __hashCodeCalc = false;
  182. return _hashCode;
  183. }
  184. // Type metadata
  185. private static org.apache.axis.description.TypeDesc typeDesc =
  186. new org.apache.axis.description.TypeDesc(WSContext.class, true);
  187. static {
  188. typeDesc.setXmlType(new javax.xml.namespace.QName("urn:client", "WSContext"));
  189. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  190. elemField.setFieldName("dbType");
  191. elemField.setXmlName(new javax.xml.namespace.QName("", "dbType"));
  192. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  193. elemField.setNillable(false);
  194. typeDesc.addFieldDesc(elemField);
  195. elemField = new org.apache.axis.description.ElementDesc();
  196. elemField.setFieldName("dcName");
  197. elemField.setXmlName(new javax.xml.namespace.QName("", "dcName"));
  198. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  199. elemField.setNillable(true);
  200. typeDesc.addFieldDesc(elemField);
  201. elemField = new org.apache.axis.description.ElementDesc();
  202. elemField.setFieldName("password");
  203. elemField.setXmlName(new javax.xml.namespace.QName("", "password"));
  204. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  205. elemField.setNillable(true);
  206. typeDesc.addFieldDesc(elemField);
  207. elemField = new org.apache.axis.description.ElementDesc();
  208. elemField.setFieldName("sessionId");
  209. elemField.setXmlName(new javax.xml.namespace.QName("", "sessionId"));
  210. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  211. elemField.setNillable(true);
  212. typeDesc.addFieldDesc(elemField);
  213. elemField = new org.apache.axis.description.ElementDesc();
  214. elemField.setFieldName("slnName");
  215. elemField.setXmlName(new javax.xml.namespace.QName("", "slnName"));
  216. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  217. elemField.setNillable(true);
  218. typeDesc.addFieldDesc(elemField);
  219. elemField = new org.apache.axis.description.ElementDesc();
  220. elemField.setFieldName("userName");
  221. elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
  222. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  223. elemField.setNillable(true);
  224. typeDesc.addFieldDesc(elemField);
  225. }
  226. /**
  227. * Return type metadata object
  228. */
  229. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  230. return typeDesc;
  231. }
  232. /**
  233. * Get Custom Serializer
  234. */
  235. public static org.apache.axis.encoding.Serializer getSerializer(
  236. String mechType,
  237. Class _javaType,
  238. javax.xml.namespace.QName _xmlType) {
  239. return
  240. new org.apache.axis.encoding.ser.BeanSerializer(
  241. _javaType, _xmlType, typeDesc);
  242. }
  243. /**
  244. * Get Custom Deserializer
  245. */
  246. public static org.apache.axis.encoding.Deserializer getDeserializer(
  247. String mechType,
  248. Class _javaType,
  249. javax.xml.namespace.QName _xmlType) {
  250. return
  251. new org.apache.axis.encoding.ser.BeanDeserializer(
  252. _javaType, _xmlType, typeDesc);
  253. }
  254. }