/** * PhoneSoap.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.liferay.portal.model; public class PhoneSoap implements java.io.Serializable { private long classNameId; private long classPK; private long companyId; private java.util.Calendar createDate; private java.lang.String extension; private java.util.Calendar modifiedDate; private java.lang.String number; private long phoneId; private boolean primary; private long primaryKey; private int typeId; private long userId; private java.lang.String userName; public PhoneSoap() { } public PhoneSoap( long classNameId, long classPK, long companyId, java.util.Calendar createDate, java.lang.String extension, java.util.Calendar modifiedDate, java.lang.String number, long phoneId, boolean primary, long primaryKey, int typeId, long userId, java.lang.String userName) { this.classNameId = classNameId; this.classPK = classPK; this.companyId = companyId; this.createDate = createDate; this.extension = extension; this.modifiedDate = modifiedDate; this.number = number; this.phoneId = phoneId; this.primary = primary; this.primaryKey = primaryKey; this.typeId = typeId; this.userId = userId; this.userName = userName; } /** * Gets the classNameId value for this PhoneSoap. * * @return classNameId */ public long getClassNameId() { return classNameId; } /** * Sets the classNameId value for this PhoneSoap. * * @param classNameId */ public void setClassNameId(long classNameId) { this.classNameId = classNameId; } /** * Gets the classPK value for this PhoneSoap. * * @return classPK */ public long getClassPK() { return classPK; } /** * Sets the classPK value for this PhoneSoap. * * @param classPK */ public void setClassPK(long classPK) { this.classPK = classPK; } /** * Gets the companyId value for this PhoneSoap. * * @return companyId */ public long getCompanyId() { return companyId; } /** * Sets the companyId value for this PhoneSoap. * * @param companyId */ public void setCompanyId(long companyId) { this.companyId = companyId; } /** * Gets the createDate value for this PhoneSoap. * * @return createDate */ public java.util.Calendar getCreateDate() { return createDate; } /** * Sets the createDate value for this PhoneSoap. * * @param createDate */ public void setCreateDate(java.util.Calendar createDate) { this.createDate = createDate; } /** * Gets the extension value for this PhoneSoap. * * @return extension */ public java.lang.String getExtension() { return extension; } /** * Sets the extension value for this PhoneSoap. * * @param extension */ public void setExtension(java.lang.String extension) { this.extension = extension; } /** * Gets the modifiedDate value for this PhoneSoap. * * @return modifiedDate */ public java.util.Calendar getModifiedDate() { return modifiedDate; } /** * Sets the modifiedDate value for this PhoneSoap. * * @param modifiedDate */ public void setModifiedDate(java.util.Calendar modifiedDate) { this.modifiedDate = modifiedDate; } /** * Gets the number value for this PhoneSoap. * * @return number */ public java.lang.String getNumber() { return number; } /** * Sets the number value for this PhoneSoap. * * @param number */ public void setNumber(java.lang.String number) { this.number = number; } /** * Gets the phoneId value for this PhoneSoap. * * @return phoneId */ public long getPhoneId() { return phoneId; } /** * Sets the phoneId value for this PhoneSoap. * * @param phoneId */ public void setPhoneId(long phoneId) { this.phoneId = phoneId; } /** * Gets the primary value for this PhoneSoap. * * @return primary */ public boolean isPrimary() { return primary; } /** * Sets the primary value for this PhoneSoap. * * @param primary */ public void setPrimary(boolean primary) { this.primary = primary; } /** * Gets the primaryKey value for this PhoneSoap. * * @return primaryKey */ public long getPrimaryKey() { return primaryKey; } /** * Sets the primaryKey value for this PhoneSoap. * * @param primaryKey */ public void setPrimaryKey(long primaryKey) { this.primaryKey = primaryKey; } /** * Gets the typeId value for this PhoneSoap. * * @return typeId */ public int getTypeId() { return typeId; } /** * Sets the typeId value for this PhoneSoap. * * @param typeId */ public void setTypeId(int typeId) { this.typeId = typeId; } /** * Gets the userId value for this PhoneSoap. * * @return userId */ public long getUserId() { return userId; } /** * Sets the userId value for this PhoneSoap. * * @param userId */ public void setUserId(long userId) { this.userId = userId; } /** * Gets the userName value for this PhoneSoap. * * @return userName */ public java.lang.String getUserName() { return userName; } /** * Sets the userName value for this PhoneSoap. * * @param userName */ public void setUserName(java.lang.String userName) { this.userName = userName; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof PhoneSoap)) return false; PhoneSoap other = (PhoneSoap) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && this.classNameId == other.getClassNameId() && this.classPK == other.getClassPK() && this.companyId == other.getCompanyId() && ((this.createDate==null && other.getCreateDate()==null) || (this.createDate!=null && this.createDate.equals(other.getCreateDate()))) && ((this.extension==null && other.getExtension()==null) || (this.extension!=null && this.extension.equals(other.getExtension()))) && ((this.modifiedDate==null && other.getModifiedDate()==null) || (this.modifiedDate!=null && this.modifiedDate.equals(other.getModifiedDate()))) && ((this.number==null && other.getNumber()==null) || (this.number!=null && this.number.equals(other.getNumber()))) && this.phoneId == other.getPhoneId() && this.primary == other.isPrimary() && this.primaryKey == other.getPrimaryKey() && this.typeId == other.getTypeId() && this.userId == other.getUserId() && ((this.userName==null && other.getUserName()==null) || (this.userName!=null && this.userName.equals(other.getUserName()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; _hashCode += new Long(getClassNameId()).hashCode(); _hashCode += new Long(getClassPK()).hashCode(); _hashCode += new Long(getCompanyId()).hashCode(); if (getCreateDate() != null) { _hashCode += getCreateDate().hashCode(); } if (getExtension() != null) { _hashCode += getExtension().hashCode(); } if (getModifiedDate() != null) { _hashCode += getModifiedDate().hashCode(); } if (getNumber() != null) { _hashCode += getNumber().hashCode(); } _hashCode += new Long(getPhoneId()).hashCode(); _hashCode += (isPrimary() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += new Long(getPrimaryKey()).hashCode(); _hashCode += getTypeId(); _hashCode += new Long(getUserId()).hashCode(); if (getUserName() != null) { _hashCode += getUserName().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(PhoneSoap.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "PhoneSoap")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("classNameId"); elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId")); 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("classPK"); elemField.setXmlName(new javax.xml.namespace.QName("", "classPK")); 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("companyId"); elemField.setXmlName(new javax.xml.namespace.QName("", "companyId")); 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("createDate"); elemField.setXmlName(new javax.xml.namespace.QName("", "createDate")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("extension"); elemField.setXmlName(new javax.xml.namespace.QName("", "extension")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("modifiedDate"); elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("number"); elemField.setXmlName(new javax.xml.namespace.QName("", "number")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("phoneId"); elemField.setXmlName(new javax.xml.namespace.QName("", "phoneId")); 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("primary"); elemField.setXmlName(new javax.xml.namespace.QName("", "primary")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("primaryKey"); elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey")); 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("typeId"); elemField.setXmlName(new javax.xml.namespace.QName("", "typeId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("userId"); elemField.setXmlName(new javax.xml.namespace.QName("", "userId")); 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("userName"); elemField.setXmlName(new javax.xml.namespace.QName("", "userName")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); 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); } }