com.beasys.commerce.foundation
Class SmartKey
java.lang.Object
|
+--com.beasys.commerce.foundation.SmartKey
- Direct Known Subclasses:
- AlphaNumericSequencerPk, ContentPk, EmptySmartKey, GroupPk, SchemaPk, UserPk
- public abstract class SmartKey
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
For each Entity there must be a primary key class derived from
SmartKey. Implementing SmartKey requires that the classes be
serializable and comparable.
- See Also:
Entity
, Serialized Form
Constructor Summary |
SmartKey()
Default constructor. |
Method Summary |
abstract int |
compareTo(java.lang.Object o)
Compares a given object with this SmartKey. |
boolean |
equals(java.lang.Object o)
Indicates whether some other Object is equivalent to this SmartKey. |
java.lang.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 |
SmartKey
public SmartKey()
- Default constructor.
compareTo
public abstract int compareTo(java.lang.Object o)
- Compares a given object with this SmartKey.
- Specified by:
- compareTo in interface java.lang.Comparable
- Parameters:
o
- the Object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object
is less than, equal to, or greater than the specified object.
- Throws:
- ClastCastException - if the specified object's type prevents it from
being compared with this SmartKey.
equals
public boolean equals(java.lang.Object o)
- Indicates whether some other Object is equivalent to this SmartKey.
- Overrides:
- equals in class java.lang.Object
- Parameters:
o
- the Object to be compared.- Returns:
true
if the supplied Object is equivalent,
false
otherwise.
toString
public java.lang.String toString()
- Returns a
String
representation of the SmartKey.
- Overrides:
- toString in class java.lang.Object
- Returns:
- A
String
representation of the SmartKey.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved