/*
 * Generated file - Do not edit!
 */
package com.alodar.example.interfaces;

import java.lang.*;

/**
 * Data object for Customer.
 * @author XDOCLET 1.1.2
 * @xdoclet-generated at Aug 25, 2002 3:02:29 PM
 */
public class CustomerData
   extends java.lang.Object
   implements java.io.Serializable
{
   static final long serialVersionUID = 3121671111349344932L;

   protected java.lang.Integer customerId;
   protected java.lang.String firstName;
   protected java.lang.String lastName;
   protected java.lang.String email;

   public CustomerData()
   {
   }

   public CustomerData( java.lang.Integer customerId,java.lang.String firstName,java.lang.String lastName,java.lang.String email )
   {
      this.customerId = customerId;
      this.firstName = firstName;
      this.lastName = lastName;
      this.email = email;
   }

   public CustomerData( CustomerData otherData )
   {
      this.customerId = otherData.customerId;
      this.firstName = otherData.firstName;
      this.lastName = otherData.lastName;
      this.email = otherData.email;

   }

   public java.lang.Integer getCustomerId()
   {
      return this.customerId;
   }
   public void setCustomerId( java.lang.Integer customerId )
   {
      this.customerId = customerId;
   }

   public java.lang.String getFirstName()
   {
      return this.firstName;
   }
   public void setFirstName( java.lang.String firstName )
   {
      this.firstName = firstName;
   }

   public java.lang.String getLastName()
   {
      return this.lastName;
   }
   public void setLastName( java.lang.String lastName )
   {
      this.lastName = lastName;
   }

   public java.lang.String getEmail()
   {
      return this.email;
   }
   public void setEmail( java.lang.String email )
   {
      this.email = email;
   }

   public String toString()
   {
      StringBuffer str = new StringBuffer("{");

      str.append("customerId=" + customerId + " " + "firstName=" + firstName + " " + "lastName=" + lastName + " " + "email=" + email);
      str.append('}');

      return(str.toString());
   }

   public boolean equals( Object pOther )
   {
      if( pOther instanceof CustomerData )
      {
         CustomerData lTest = (CustomerData) pOther;
         boolean lEquals = true;

         if( this.customerId == null )
         {
            lEquals = lEquals && ( lTest.customerId == null );
         }
         else
         {
            lEquals = lEquals && this.customerId.equals( lTest.customerId );
         }
         if( this.firstName == null )
         {
            lEquals = lEquals && ( lTest.firstName == null );
         }
         else
         {
            lEquals = lEquals && this.firstName.equals( lTest.firstName );
         }
         if( this.lastName == null )
         {
            lEquals = lEquals && ( lTest.lastName == null );
         }
         else
         {
            lEquals = lEquals && this.lastName.equals( lTest.lastName );
         }
         if( this.email == null )
         {
            lEquals = lEquals && ( lTest.email == null );
         }
         else
         {
            lEquals = lEquals && this.email.equals( lTest.email );
         }

         return lEquals;
      }
      else
      {
         return false;
      }
   }

   public int hashCode()
   {
      int result = 17;
      result = 37*result + ((this.customerId != null) ? this.customerId.hashCode() : 0);
      result = 37*result + ((this.firstName != null) ? this.firstName.hashCode() : 0);
      result = 37*result + ((this.lastName != null) ? this.lastName.hashCode() : 0);
      result = 37*result + ((this.email != null) ? this.email.hashCode() : 0);
      return result;
      }

}