© 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.

Parameters:
identifier - A CatalogItem identifier.
Method Detail

equals

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


compareTo

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

Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()

getIdentifier

public String getIdentifier()
Get the key identifier.

Returns:
identifier.

clone

public Object clone()
clone implementation for CatalogItemKeys.

Returns:
copy of this key.

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