com.beasys.commerce.foundation
Class SmartKey

java.lang.Object
  extended by com.beasys.commerce.foundation.SmartKey
All Implemented Interfaces
Serializable, Comparable
Direct Known Subclasses:
com.beasys.commerce.axiom.contact.ContactPk, OrderPk, PaymentTransactionPk, ShippingMethodPk

Deprecated

@Deprecated
public abstract class SmartKey
extends Object
implements Comparable, 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()
          Deprecated Default constructor.
 
Method Summary
abstract  int compareTo(Object o)
          Deprecated Compares a given object with this SmartKey.
 boolean equals(Object o)
          Deprecated Indicates whether some other Object is equivalent to this SmartKey.
 String toString()
          Deprecated 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

SmartKey

public SmartKey()
Deprecated 
Default constructor.

Method Detail

compareTo

public abstract int compareTo(Object o)
Deprecated 
Compares a given object with this SmartKey.

Specified by:
compareTo in interface 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(Object o)
Deprecated 
Indicates whether some other Object is equivalent to this SmartKey.

Overrides:
equals in class Object
Parameters
o - the Object to be compared.
Returns
true if the supplied Object is equivalent, false otherwise.

toString

public String toString()
Deprecated 
Returns a String representation of the SmartKey.

Overrides:
toString in class Object
Returns
A String representation of the SmartKey.


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.