/OWSM_AXIS/AxisClient/src/osb_cookbook/customer/CustomerTyp.java
https://github.com/biemond/soa11g_examples · Java · 412 lines · 250 code · 56 blank · 106 comment · 46 complexity · 361a6214b17a75dc20899ee30a121a29 MD5 · raw file
- /**
- * CustomerTyp.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
- package osb_cookbook.customer;
-
- public class CustomerTyp implements java.io.Serializable {
- private long ID;
-
- private java.lang.String firstName;
-
- private java.lang.String lastName;
-
- private java.lang.String emailAddress;
-
- private osb_cookbook.customer.AddressTyp[] addresses;
-
- private java.util.Date birthDate;
-
- private osb_cookbook.customer.RatingTyp rating;
-
- private java.lang.String gender;
-
- private osb_cookbook.creditcard.CreditCardTyp creditCard;
-
- public CustomerTyp() {
- }
-
- public CustomerTyp(
- long ID,
- java.lang.String firstName,
- java.lang.String lastName,
- java.lang.String emailAddress,
- osb_cookbook.customer.AddressTyp[] addresses,
- java.util.Date birthDate,
- osb_cookbook.customer.RatingTyp rating,
- java.lang.String gender,
- osb_cookbook.creditcard.CreditCardTyp creditCard) {
- this.ID = ID;
- this.firstName = firstName;
- this.lastName = lastName;
- this.emailAddress = emailAddress;
- this.addresses = addresses;
- this.birthDate = birthDate;
- this.rating = rating;
- this.gender = gender;
- this.creditCard = creditCard;
- }
-
-
- /**
- * Gets the ID value for this CustomerTyp.
- *
- * @return ID
- */
- public long getID() {
- return ID;
- }
-
-
- /**
- * Sets the ID value for this CustomerTyp.
- *
- * @param ID
- */
- public void setID(long ID) {
- this.ID = ID;
- }
-
-
- /**
- * Gets the firstName value for this CustomerTyp.
- *
- * @return firstName
- */
- public java.lang.String getFirstName() {
- return firstName;
- }
-
-
- /**
- * Sets the firstName value for this CustomerTyp.
- *
- * @param firstName
- */
- public void setFirstName(java.lang.String firstName) {
- this.firstName = firstName;
- }
-
-
- /**
- * Gets the lastName value for this CustomerTyp.
- *
- * @return lastName
- */
- public java.lang.String getLastName() {
- return lastName;
- }
-
-
- /**
- * Sets the lastName value for this CustomerTyp.
- *
- * @param lastName
- */
- public void setLastName(java.lang.String lastName) {
- this.lastName = lastName;
- }
-
-
- /**
- * Gets the emailAddress value for this CustomerTyp.
- *
- * @return emailAddress
- */
- public java.lang.String getEmailAddress() {
- return emailAddress;
- }
-
-
- /**
- * Sets the emailAddress value for this CustomerTyp.
- *
- * @param emailAddress
- */
- public void setEmailAddress(java.lang.String emailAddress) {
- this.emailAddress = emailAddress;
- }
-
-
- /**
- * Gets the addresses value for this CustomerTyp.
- *
- * @return addresses
- */
- public osb_cookbook.customer.AddressTyp[] getAddresses() {
- return addresses;
- }
-
-
- /**
- * Sets the addresses value for this CustomerTyp.
- *
- * @param addresses
- */
- public void setAddresses(osb_cookbook.customer.AddressTyp[] addresses) {
- this.addresses = addresses;
- }
-
-
- /**
- * Gets the birthDate value for this CustomerTyp.
- *
- * @return birthDate
- */
- public java.util.Date getBirthDate() {
- return birthDate;
- }
-
-
- /**
- * Sets the birthDate value for this CustomerTyp.
- *
- * @param birthDate
- */
- public void setBirthDate(java.util.Date birthDate) {
- this.birthDate = birthDate;
- }
-
-
- /**
- * Gets the rating value for this CustomerTyp.
- *
- * @return rating
- */
- public osb_cookbook.customer.RatingTyp getRating() {
- return rating;
- }
-
-
- /**
- * Sets the rating value for this CustomerTyp.
- *
- * @param rating
- */
- public void setRating(osb_cookbook.customer.RatingTyp rating) {
- this.rating = rating;
- }
-
-
- /**
- * Gets the gender value for this CustomerTyp.
- *
- * @return gender
- */
- public java.lang.String getGender() {
- return gender;
- }
-
-
- /**
- * Sets the gender value for this CustomerTyp.
- *
- * @param gender
- */
- public void setGender(java.lang.String gender) {
- this.gender = gender;
- }
-
-
- /**
- * Gets the creditCard value for this CustomerTyp.
- *
- * @return creditCard
- */
- public osb_cookbook.creditcard.CreditCardTyp getCreditCard() {
- return creditCard;
- }
-
-
- /**
- * Sets the creditCard value for this CustomerTyp.
- *
- * @param creditCard
- */
- public void setCreditCard(osb_cookbook.creditcard.CreditCardTyp creditCard) {
- this.creditCard = creditCard;
- }
-
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof CustomerTyp)) return false;
- CustomerTyp other = (CustomerTyp) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- this.ID == other.getID() &&
- ((this.firstName==null && other.getFirstName()==null) ||
- (this.firstName!=null &&
- this.firstName.equals(other.getFirstName()))) &&
- ((this.lastName==null && other.getLastName()==null) ||
- (this.lastName!=null &&
- this.lastName.equals(other.getLastName()))) &&
- ((this.emailAddress==null && other.getEmailAddress()==null) ||
- (this.emailAddress!=null &&
- this.emailAddress.equals(other.getEmailAddress()))) &&
- ((this.addresses==null && other.getAddresses()==null) ||
- (this.addresses!=null &&
- java.util.Arrays.equals(this.addresses, other.getAddresses()))) &&
- ((this.birthDate==null && other.getBirthDate()==null) ||
- (this.birthDate!=null &&
- this.birthDate.equals(other.getBirthDate()))) &&
- ((this.rating==null && other.getRating()==null) ||
- (this.rating!=null &&
- this.rating.equals(other.getRating()))) &&
- ((this.gender==null && other.getGender()==null) ||
- (this.gender!=null &&
- this.gender.equals(other.getGender()))) &&
- ((this.creditCard==null && other.getCreditCard()==null) ||
- (this.creditCard!=null &&
- this.creditCard.equals(other.getCreditCard())));
- __equalsCalc = null;
- return _equals;
- }
-
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- _hashCode += new Long(getID()).hashCode();
- if (getFirstName() != null) {
- _hashCode += getFirstName().hashCode();
- }
- if (getLastName() != null) {
- _hashCode += getLastName().hashCode();
- }
- if (getEmailAddress() != null) {
- _hashCode += getEmailAddress().hashCode();
- }
- if (getAddresses() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getAddresses());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getAddresses(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getBirthDate() != null) {
- _hashCode += getBirthDate().hashCode();
- }
- if (getRating() != null) {
- _hashCode += getRating().hashCode();
- }
- if (getGender() != null) {
- _hashCode += getGender().hashCode();
- }
- if (getCreditCard() != null) {
- _hashCode += getCreditCard().hashCode();
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
-
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(CustomerTyp.class, true);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("http://osb-cookbook/customer", "CustomerTyp"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("ID");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "ID"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("firstName");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "FirstName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("lastName");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "LastName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("emailAddress");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "EmailAddress"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("addresses");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "Addresses"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://osb-cookbook/customer", "AddressTyp"));
- elemField.setNillable(false);
- elemField.setItemQName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "Address"));
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("birthDate");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "BirthDate"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "date"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("rating");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "Rating"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://osb-cookbook/customer", "RatingTyp"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("gender");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "Gender"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("creditCard");
- elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "CreditCard"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://osb-cookbook/creditcard", "CreditCardTyp"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- }
-
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
-
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
-
- }