Interface CategoryXref
- All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryXref>,Serializable
- All Known Implementing Classes:
CategoryXrefImpl
public interface CategoryXref
extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryXref>
Implementations of this interface are used to hold data about the many-to-many relationship between
the Category table and a parent Category.
You should implement this class if you want to make significant changes to the
relationship between Category and parent Category. If you just want to add additional fields
then you should extend
CategoryXrefImpl.-
Method Summary
Modifier and TypeMethodDescriptionReturn the parent categorySpecifies the default reference between a category and a parent category.Return the order for sortinggetId()Return the child categoryvoidsetCategory(Category category) voidsetDefaultReference(Boolean defaultReference) voidsetDisplayOrder(BigDecimal displayOrder) voidReturn the primary keyvoidsetSubCategory(Category subCategory) Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getDisplayOrder
BigDecimal getDisplayOrder()Return the order for sorting- Returns:
-
setDisplayOrder
-
getCategory
Category getCategory()Return the parent category- Returns:
-
setCategory
-
getSubCategory
Category getSubCategory()Return the child category- Returns:
-
setSubCategory
-
getId
Long getId() -
setId
Return the primary key- Parameters:
id-
-
getDefaultReference
Boolean getDefaultReference()Specifies the default reference between a category and a parent category. This replaces the concept ofCategoryImpl.getDefaultParentCategory()()}- Returns:
- the default reference between a category and a parent category
- See Also:
-
setDefaultReference
-