com.elasticpath.domain.catalog.impl
Class ProductCategoryImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractValueObjectImpl
              extended by com.elasticpath.domain.catalog.impl.ProductCategoryImpl
All Implemented Interfaces:
ProductCategory, EpDomain, Persistence, ValueObject, java.io.Serializable, java.lang.Comparable

public class ProductCategoryImpl
extends AbstractValueObjectImpl
implements ProductCategory

The default implementation of Product.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
ProductCategoryImpl()
           
 
Method Summary
 int compareTo(java.lang.Object object)
          Compares this product category with the specified object for order.
 boolean equals(java.lang.Object obj)
          Returns true if this category equals to the given object.
 boolean equals(ProductCategory productCategory)
          Returns true if this product category and the given one both refers to the same category.
 Category getCategory()
          Get the category.
 int getFeaturedProductOrder()
          Get the featured product order.
 int hashCode()
          Generate the hash code.
 void setCategory(Category category)
          Set the category.
 void setFeaturedProductOrder(int featuredProductOrder)
          Set the featured product order.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

ProductCategoryImpl

public ProductCategoryImpl()
Method Detail

compareTo

public int compareTo(java.lang.Object object)
              throws EpDomainException
Compares this product category with the specified object for order.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
object - the given object
Returns:
a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.
Throws:
EpDomainException - if the given object is not a Money

equals

public boolean equals(java.lang.Object obj)
Returns true if this category equals to the given object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the given object
Returns:
true if this category equals to the given object

equals

public boolean equals(ProductCategory productCategory)
Returns true if this product category and the given one both refers to the same category.

Parameters:
productCategory - the given product category association
Returns:
true if this product category and the given one both refers to the same category

getCategory

public Category getCategory()
Get the category.

Specified by:
getCategory in interface ProductCategory
Returns:
the category

getFeaturedProductOrder

public int getFeaturedProductOrder()
Get the featured product order.

Specified by:
getFeaturedProductOrder in interface ProductCategory
Returns:
the featured product order

hashCode

public int hashCode()
Generate the hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code.

setCategory

public void setCategory(Category category)
Set the category.

Specified by:
setCategory in interface ProductCategory
Parameters:
category - the category to set

setFeaturedProductOrder

public void setFeaturedProductOrder(int featuredProductOrder)
Set the featured product order.

Specified by:
setFeaturedProductOrder in interface ProductCategory
Parameters:
featuredProductOrder - the featured product order to set