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

/**
 * Data object for Subscriber.
 * @xdoclet-generated at 22-10-04
 * @copyright The XDoclet Team
 * @author XDoclet
 * @version 1.2.2
 */
public class SubscriberData
   extends java.lang.Object
   implements java.io.Serializable
{
   private java.lang.String boid;

  /* begin value object */

  /* end value object */

   public SubscriberData()
   {
   }

   public SubscriberData( java.lang.String boid )
   {
      setBoid(boid);
   }

   public SubscriberData( SubscriberData otherData )
   {
      setBoid(otherData.getBoid());

   }

   public java.lang.String getPrimaryKey() {
     return  getBoid();
   }

   public java.lang.String getBoid()
   {
      return this.boid;
   }
   public void setBoid( java.lang.String boid )
   {
      this.boid = boid;
   }

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

      str.append("boid=" + getBoid());
      str.append('}');

      return(str.toString());
   }

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

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

         return lEquals;
      }
      else
      {
         return false;
      }
   }

   public int hashCode()
   {
      int result = 17;

      result = 37*result + ((this.boid != null) ? this.boid.hashCode() : 0);

      return result;
   }

}
