FileDocCategorySizeDatePackage
AccountHolderPK.javaAPI DocJBoss 4.2.12950Fri Jul 13 20:53:06 BST 2007org.jboss.ejb3.test.clusteredentity.classloader

AccountHolderPK

public class AccountHolderPK extends Object implements Serializable
Comment
author
Brian Stansberry
version
$Revision: 60233 $

Fields Summary
private static final long
serialVersionUID
private String
lastName
private String
ssn
private transient boolean
deserialized
Constructors Summary
public AccountHolderPK()

   
      
public AccountHolderPK(String lastName, String ssn)

      this.lastName = lastName;
      this.ssn = ssn;
   
Methods Summary
public booleanequals(java.lang.Object obj)

      if (obj == this) return true;
      if (!(obj instanceof AccountHolderPK)) return false;
      AccountHolderPK pk = (AccountHolderPK)obj;
      if (!lastName.equals(pk.lastName)) return false;
      if (!ssn.equals(pk.ssn)) return false;
      return true;
   
public java.lang.StringgetLastName()

 return this.lastName; 
public java.lang.StringgetSsn()

 return ssn; 
public inthashCode()

      int result = 17;
      result = result * 31 + lastName.hashCode();
      result = result * 31 + ssn.hashCode();
      return result;
   
private voidreadObject(java.io.ObjectInputStream ois)

      ois.defaultReadObject();
      deserialized = true;
   
public voidsetLastName(java.lang.String lastName)

 this.lastName = lastName; 
public voidsetSsn(java.lang.String ssn)

 this.ssn = ssn; 
public java.lang.StringtoString()

      StringBuffer sb = new StringBuffer(getClass().getName());
      sb.append("[lastName=");
      sb.append(lastName);
      sb.append(",ssn=");
      sb.append(ssn);
      sb.append(",deserialized=");
      sb.append(deserialized);
      sb.append("]");
      return sb.toString();