/*
 * Generated by XDoclet - Do not edit!
 */
package test.interfaces;

/**
 * Primary key for AllTypesEntity.
 * @xdoclet-generated at 22-10-04
 * @copyright The XDoclet Team
 * @author XDoclet
 * @version 1.2.2
 */
public class AllTypesEntityPK
   extends java.lang.Object
   implements java.io.Serializable
{

   public int[] IVOwnerHdl;
   public java.lang.String id;

   public AllTypesEntityPK()
   {
   }

   public AllTypesEntityPK( int[] IVOwnerHdl,java.lang.String id )
   {
      this.IVOwnerHdl = IVOwnerHdl;
      this.id = id;
   }

   public int[] getIVOwnerHdl()
   {
      return IVOwnerHdl;
   }
   public java.lang.String getId()
   {
      return id;
   }

   public void setIVOwnerHdl(int[] IVOwnerHdl)
   {
      this.IVOwnerHdl = IVOwnerHdl;
   }
   public void setId(java.lang.String id)
   {
      this.id = id;
   }

   public int hashCode()
   {
      int _hashCode = 0;
         if (this.IVOwnerHdl != null) _hashCode += this.IVOwnerHdl.hashCode();	
         if (this.id != null) _hashCode += this.id.hashCode();

      return _hashCode;
   }

   public boolean equals(Object obj)
   {
      if( !(obj instanceof test.interfaces.AllTypesEntityPK) )
         return false;

      test.interfaces.AllTypesEntityPK pk = (test.interfaces.AllTypesEntityPK)obj;
      boolean eq = true;

      if( obj == null )
      {
         eq = false;
      }
      else
      {
         eq = eq && this.IVOwnerHdl == pk.IVOwnerHdl;
         if( this.id != null )
         {
            eq = eq && this.id.equals( pk.getId() );
         }
         else  // this.id == null
         {
            eq = eq && ( pk.getId() == null );
         }
      }

      return eq;
   }

   /** @return String representation of this pk in the form of [.field1.field2.field3]. */
   public String toString()
   {
      StringBuffer toStringValue = new StringBuffer("[.");
         toStringValue.append(this.IVOwnerHdl).append('.');
         toStringValue.append(this.id).append('.');
      toStringValue.append(']');
      return toStringValue.toString();
   }

}
