© 2003 BEA Systems, Inc.

com.beasys.commerce.ebusiness.catalog
Class CatalogItemKey

java.lang.Object
  |
  +--com.beasys.commerce.ebusiness.catalog.CatalogItemKey
All Implemented Interfaces:
Cloneable, Comparable, Serializable
Direct Known Subclasses:
CategoryKey, ProductItemKey

public class CatalogItemKey
extends Object
implements Serializable, Comparable, Cloneable

This class is the base class for keys used to look-up CatalogItems (Products and Categories).

See Also:
ProductItemKey, CategoryKey, Serialized Form

Constructor Summary
CatalogItemKey()
          Default constructor.
CatalogItemKey(String identifier)
          Class constructor.
 
Method Summary
 Object clone()
          clone implementation for CatalogItemKeys.
 int compareTo(Object key)
          compareTo for the Comparable interface
 boolean equals(Object key)
          compareTo for the Comparable interface
 String getIdentifier()
          Get the key identifier.
 int hashCode()
           
 String toString()
          Builds a string representation of this object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CatalogItemKey

public CatalogItemKey()
Default constructor.


CatalogItemKey

public CatalogItemKey(String identifier)
Class constructor.

Parameters:
identifier - A CatalogItem identifier.
Method Detail

equals

public boolean equals(Object key)
compareTo for the Comparable interface

Overrides:
equals in class Object

compareTo

public int compareTo(Object key)
compareTo for the Comparable interface

Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getIdentifier

public String getIdentifier()
Get the key identifier.

Returns:
identifier.

clone

public Object clone()
clone implementation for CatalogItemKeys.

Overrides:
clone in class Object
Returns:
copy of this key.

toString

public String toString()
Builds a string representation of this object.

Overrides:
toString in class Object
Returns:
the string

© 2003 BEA Systems, Inc.

Copyright © 2003 BEA Systems, Inc. All Rights Reserved