|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.beasys.commerce.foundation.SmartKey
|
+--com.beasys.commerce.ebusiness.order.OrderPk
This is a PrimaryKey for managing the life cycle of the Order entity. It is derived from SmartKey which requires that the classes be serializable and comparable.
| Field Summary | |
String |
identifier
Identifier. |
| Constructor Summary | |
OrderPk()
Default constructor. |
|
OrderPk(String identifier)
Constructs a primary key with the specified identifier. |
|
| Method Summary | |
int |
compareTo(Object o)
Implements the compareTo method. |
String |
getIdentifier()
Returns the identifier |
int |
hashCode()
Overrides the hashCode() method |
String |
toString()
Returns the stringified version of the key class. |
| Methods inherited from class com.beasys.commerce.foundation.SmartKey |
equals |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public String identifier
| Constructor Detail |
public OrderPk()
public OrderPk(String identifier)
identifier - Primary key| Method Detail |
public int compareTo(Object o)
(a > b) ==> (b < a) (a < b) ==> (b > a) (a = b) ==> (b = a)
compareTo in interface ComparablecompareTo in class SmartKeyo - the Object to be compared.
public String toString()
toString in class SmartKeypublic int hashCode()
hashCode in class Objectpublic String getIdentifier()
|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||