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

/**
 * Primary key for AllTypesEntity.
 * @xdoclet-generated at 16-04-05
 * @copyright The XDoclet Team
 * @author XDoclet
 * @version 1.2.3
 */
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();
   }

}
