Interface CategoryProductXref

All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryProductXref>, Serializable
All Known Implementing Classes:
CategoryProductXrefImpl

public interface CategoryProductXref extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryProductXref>
Implementations of this interface are used to hold data about the many-to-many relationship between the Category table and the Product table.

You should implement this class if you want to make significant changes to the relationship between Category and Product. If you just want to add additional fields then you should extend CategoryProductXrefImpl.
Author:
btaylor
  • Method Details

    • getCategory

      Category getCategory()
      Gets the category.
      Returns:
      the category
    • setCategory

      void setCategory(Category category)
      Sets the category.
      Parameters:
      category - the new category
    • getProduct

      Product getProduct()
      Gets the product.
      Returns:
      the product
    • setProduct

      void setProduct(Product product)
      Sets the product.
      Parameters:
      product - the new product
    • getDisplayOrder

      BigDecimal getDisplayOrder()
      Gets the display order.
      Returns:
      the display order
    • setDisplayOrder

      void setDisplayOrder(BigDecimal displayOrder)
      Sets the display order.
      Parameters:
      displayOrder - the new display order
    • getId

      Long getId()
    • setId

      void setId(Long id)
    • getDefaultReference

      Boolean getDefaultReference()
      Specifies the default reference between a category and a product. The default reference is used to drive cononical urls and also drives inheritance of fulfillment types and inventory types from the category to the product. This replaces the concept of ProductImpl.getDefaultCategory()
      Returns:
      the default reference between a product and a category
      See Also:
    • setDefaultReference

      void setDefaultReference(Boolean defaultReference)