|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.examples.bo.impl.account.AccountPK
public class AccountPK
This class defines the primary key attributes of the Account Entity
| Field Summary | |
|---|---|
String |
accountNumber
|
String |
cardNumber
|
| Fields inherited from interface com.bankframe.ejb.EPrimaryKey |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
AccountPK()
Default Constructor. |
|
AccountPK(String cardNumber,
String accountNumber)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
This method compares this instance with another for equality. |
int |
hashCode()
This method generates a hash code for this primary key. |
DataPacket |
toDataPacket()
This method converts this primary key to a DataPacket. |
String |
toString()
This method returns a string representation of this primary key. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String cardNumber
public String accountNumber
| Constructor Detail |
|---|
public AccountPK()
public AccountPK(String cardNumber,
String accountNumber)
cardNumber - part of the keyaccountNumber - part of the key| Method Detail |
|---|
public boolean equals(Object o)
equals in interface EPrimaryKeyequals in class Objecto - The object to compare with this object
public int hashCode()
hashCode in interface EPrimaryKeyhashCode in class Objectpublic DataPacket toDataPacket()
toDataPacket in interface EPrimaryKeypublic String toString()
toString in interface EPrimaryKeytoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||