|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.foundation.SmartKey
public abstract class SmartKey
For each Entity there must be a primary key class derived from SmartKey. Implementing SmartKey requires that the classes be serializable and comparable.
Entity
,
Serialized FormConstructor Summary | |
---|---|
SmartKey()
Default constructor. |
Method Summary | |
---|---|
abstract int |
compareTo(Object o)
Compares a given object with this SmartKey. |
boolean |
equals(Object o)
Indicates whether some other Object is equivalent to this SmartKey. |
String |
toString()
Returns a String representation of the SmartKey. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SmartKey()
Method Detail |
---|
public abstract int compareTo(Object o)
compareTo
in interface Comparable
o
- the Object to be compared.
ClastCastException
- if the specified object's type prevents it from
being compared with this SmartKey.public boolean equals(Object o)
equals
in class Object
o
- the Object to be compared.
true
if the supplied Object is equivalent,
false
otherwise.public String toString()
String
representation of the SmartKey.
toString
in class Object
String
representation of the SmartKey.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |