com.bankframe.examples.bo.impl.customer
Class CustomerPK

java.lang.Object
  extended bycom.bankframe.examples.bo.impl.customer.CustomerPK
All Implemented Interfaces:
EPrimaryKey, java.io.Serializable

public class CustomerPK
extends java.lang.Object
implements EPrimaryKey

This class defines the primary key attributes of the customer entity.

See Also:
Serialized Form

Field Summary
 java.lang.String ownerId
          this string uniquely identifies this key
 
Fields inherited from interface com.bankframe.ejb.EPrimaryKey
serialVersionUID
 
Constructor Summary
CustomerPK()
          Default Constructor.
CustomerPK(java.lang.String ownerId)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          This method compares this instance with another for equality.
 int hashCode()
          This method returns a hash-code value for this primary key.
 DataPacket toDataPacket()
          This method creates a DataPacket that contains the information from this key.
 java.lang.String toString()
          This method gets a string representation of this primary key.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ownerId

public java.lang.String ownerId
this string uniquely identifies this key

Constructor Detail

CustomerPK

public CustomerPK()
Default Constructor.


CustomerPK

public CustomerPK(java.lang.String ownerId)
Constructor. param ownerId the owner id of this primary key

Method Detail

equals

public boolean equals(java.lang.Object o)
This method compares this instance with another for equality.

Specified by:
equals in interface EPrimaryKey
Parameters:
o - the obejct to compare with
Returns:
true if this object equals the parameter

hashCode

public int hashCode()
This method returns a hash-code value for this primary key.

Specified by:
hashCode in interface EPrimaryKey
Returns:
the hash result

toDataPacket

public DataPacket toDataPacket()
This method creates a DataPacket that contains the information from this key.

Specified by:
toDataPacket in interface EPrimaryKey
Returns:
this primary key as a DataPacket

toString

public java.lang.String toString()
This method gets a string representation of this primary key.

Specified by:
toString in interface EPrimaryKey
Returns:
a string containing the data from this key


Copyright © 2005, 2007, Oracle. All rights reserved.