© 2004 BEA Systems, Inc.

com.beasys.commerce.ebusiness.catalog
Class CatalogItemKey

java.lang.Object
  extended bycom.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.

Method Detail

clone

public Object clone()
clone implementation for CatalogItemKeys.

Returns:
copy of this key.

compareTo

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

Specified by:
compareTo in interface Comparable

equals

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


getIdentifier

public String getIdentifier()
Get the key identifier.

Returns:
identifier.

hashCode

public int hashCode()

toString

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

Returns:
the string

© 2004 BEA Systems, Inc.

Copyright © 2004 BEA Systems, Inc. All Rights Reserved