com.bankframe.examples.bo.impl.address
Class AddressPK

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

public class AddressPK
extends java.lang.Object
implements EPrimaryKey, java.io.Serializable

This class defines the primary key attributes of the Address Entity

Author:
ETU
See Also:
Serialized Form

Field Summary
 java.lang.String ownerId
           
 
Fields inherited from interface com.bankframe.ejb.EPrimaryKey
serialVersionUID
 
Constructor Summary
AddressPK()
          Default Constructor.
AddressPK(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 converts this primary key to a DataPacket.
 java.lang.String toString()
          This method generates 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
Constructor Detail

AddressPK

public AddressPK()
Default Constructor.


AddressPK

public AddressPK(java.lang.String ownerId)
Constructor.

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 object to compare to
Returns:
true if these objects are equal, otherwise false

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 converts this primary key to a DataPacket.

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

toString

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

Specified by:
toString in interface EPrimaryKey
Returns:
a string representation of this key


Copyright © 2004 Siebel Systems, Inc. All rights reserved.