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

import java.lang.*;

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

   protected java.lang.Integer itemId;
   protected java.lang.String description;

   public ItemData()
   {
   }

   public ItemData( java.lang.Integer itemId,java.lang.String description )
   {
      this.itemId = itemId;
      this.description = description;
   }

   public ItemData( ItemData otherData )
   {
      this.itemId = otherData.itemId;
      this.description = otherData.description;

   }

   public java.lang.Integer getItemId()
   {
      return this.itemId;
   }
   public void setItemId( java.lang.Integer itemId )
   {
      this.itemId = itemId;
   }

   public java.lang.String getDescription()
   {
      return this.description;
   }
   public void setDescription( java.lang.String description )
   {
      this.description = description;
   }

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

      str.append("itemId=" + itemId + " " + "description=" + description);
      str.append('}');

      return(str.toString());
   }

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

         if( this.itemId == null )
         {
            lEquals = lEquals && ( lTest.itemId == null );
         }
         else
         {
            lEquals = lEquals && this.itemId.equals( lTest.itemId );
         }
         if( this.description == null )
         {
            lEquals = lEquals && ( lTest.description == null );
         }
         else
         {
            lEquals = lEquals && this.description.equals( lTest.description );
         }

         return lEquals;
      }
      else
      {
         return false;
      }
   }

   public int hashCode()
   {
      int result = 17;
      result = 37*result + ((this.itemId != null) ? this.itemId.hashCode() : 0);
      result = 37*result + ((this.description != null) ? this.description.hashCode() : 0);
      return result;
      }

}