/** * WebsiteSoap.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 WebsiteSoap implements java.io.Serializable { private long classNameId; private long classPK; private long companyId; private java.util.Calendar createDate; private java.util.Calendar modifiedDate; private boolean primary; private long primaryKey; private int typeId; private java.lang.String url; private long userId; private java.lang.String userName; private long websiteId; public WebsiteSoap() { } public WebsiteSoap( long classNameId, long classPK, long companyId, java.util.Calendar createDate, java.util.Calendar modifiedDate, boolean primary, long primaryKey, int typeId, java.lang.String url, long userId, java.lang.String userName, long websiteId) { this.classNameId = classNameId; this.classPK = classPK; this.companyId = companyId; this.createDate = createDate; this.modifiedDate = modifiedDate; this.primary = primary; this.primaryKey = primaryKey; this.typeId = typeId; this.url = url; this.userId = userId; this.userName = userName; this.websiteId = websiteId; } /** * Gets the classNameId value for this WebsiteSoap. * * @return classNameId */ public long getClassNameId() { return classNameId; } /** * Sets the classNameId value for this WebsiteSoap. * * @param classNameId */ public void setClassNameId(long classNameId) { this.classNameId = classNameId; } /** * Gets the classPK value for this WebsiteSoap. * * @return classPK */ public long getClassPK() { return classPK; } /** * Sets the classPK value for this WebsiteSoap. * * @param classPK */ public void setClassPK(long classPK) { this.classPK = classPK; } /** * Gets the companyId value for this WebsiteSoap. * * @return companyId */ public long getCompanyId() { return companyId; } /** * Sets the companyId value for this WebsiteSoap. * * @param companyId */ public void setCompanyId(long companyId) { this.companyId = companyId; } /** * Gets the createDate value for this WebsiteSoap. * * @return createDate */ public java.util.Calendar getCreateDate() { return createDate; } /** * Sets the createDate value for this WebsiteSoap. * * @param createDate */ public void setCreateDate(java.util.Calendar createDate) { this.createDate = createDate; } /** * Gets the modifiedDate value for this WebsiteSoap. * * @return modifiedDate */ public java.util.Calendar getModifiedDate() { return modifiedDate; } /** * Sets the modifiedDate value for this WebsiteSoap. * * @param modifiedDate */ public void setModifiedDate(java.util.Calendar modifiedDate) { this.modifiedDate = modifiedDate; } /** * Gets the primary value for this WebsiteSoap. * * @return primary */ public boolean isPrimary() { return primary; } /** * Sets the primary value for this WebsiteSoap. * * @param primary */ public void setPrimary(boolean primary) { this.primary = primary; } /** * Gets the primaryKey value for this WebsiteSoap. * * @return primaryKey */ public long getPrimaryKey() { return primaryKey; } /** * Sets the primaryKey value for this WebsiteSoap. * * @param primaryKey */ public void setPrimaryKey(long primaryKey) { this.primaryKey = primaryKey; } /** * Gets the typeId value for this WebsiteSoap. * * @return typeId */ public int getTypeId() { return typeId; } /** * Sets the typeId value for this WebsiteSoap. * * @param typeId */ public void setTypeId(int typeId) { this.typeId = typeId; } /** * Gets the url value for this WebsiteSoap. * * @return url */ public java.lang.String getUrl() { return url; } /** * Sets the url value for this WebsiteSoap. * * @param url */ public void setUrl(java.lang.String url) { this.url = url; } /** * Gets the userId value for this WebsiteSoap. * * @return userId */ public long getUserId() { return userId; } /** * Sets the userId value for this WebsiteSoap. * * @param userId */ public void setUserId(long userId) { this.userId = userId; } /** * Gets the userName value for this WebsiteSoap. * * @return userName */ public java.lang.String getUserName() { return userName; } /** * Sets the userName value for this WebsiteSoap. * * @param userName */ public void setUserName(java.lang.String userName) { this.userName = userName; } /** * Gets the websiteId value for this WebsiteSoap. * * @return websiteId */ public long getWebsiteId() { return websiteId; } /** * Sets the websiteId value for this WebsiteSoap. * * @param websiteId */ public void setWebsiteId(long websiteId) { this.websiteId = websiteId; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof WebsiteSoap)) return false; WebsiteSoap other = (WebsiteSoap) 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.modifiedDate==null && other.getModifiedDate()==null) || (this.modifiedDate!=null && this.modifiedDate.equals(other.getModifiedDate()))) && this.primary == other.isPrimary() && this.primaryKey == other.getPrimaryKey() && this.typeId == other.getTypeId() && ((this.url==null && other.getUrl()==null) || (this.url!=null && this.url.equals(other.getUrl()))) && this.userId == other.getUserId() && ((this.userName==null && other.getUserName()==null) || (this.userName!=null && this.userName.equals(other.getUserName()))) && this.websiteId == other.getWebsiteId(); __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 (getModifiedDate() != null) { _hashCode += getModifiedDate().hashCode(); } _hashCode += (isPrimary() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += new Long(getPrimaryKey()).hashCode(); _hashCode += getTypeId(); if (getUrl() != null) { _hashCode += getUrl().hashCode(); } _hashCode += new Long(getUserId()).hashCode(); if (getUserName() != null) { _hashCode += getUserName().hashCode(); } _hashCode += new Long(getWebsiteId()).hashCode(); __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(WebsiteSoap.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "WebsiteSoap")); 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("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("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("url"); elemField.setXmlName(new javax.xml.namespace.QName("", "url")); 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("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); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("websiteId"); elemField.setXmlName(new javax.xml.namespace.QName("", "websiteId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); 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); } }