Class CategoryProductXrefImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.CategoryProductXrefImpl
- All Implemented Interfaces:
Serializable,MultiTenantCloneable<CategoryProductXref>,CategoryProductXref
The Class CategoryProductXrefImpl is the default implmentation of
Category. This entity
is only used for executing a named query.
If you want to add fields specific to your implementation of BroadLeafCommerce you should extend
this class and add your fields. If you need to make significant changes to the class then you
should implement your own version of Category.
This implementation uses a Hibernate implementation of JPA configured through annotations. The
Entity references the following tables: BLC_CATEGORY_PRODUCT_XREF,
- Author:
- btaylor
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Categoryprotected Booleanprotected BigDecimalThe display order.protected Longprotected ProductThe product. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends CategoryProductXref>
CreateResponse<G>booleanGets the category.Specifies the default reference between a category and a product.Gets the display order.getId()Gets the product.inthashCode()voidsetCategory(Category category) Sets the category.voidsetDefaultReference(Boolean defaultReference) voidsetDisplayOrder(BigDecimal displayOrder) Sets the display order.voidvoidsetProduct(Product product) Sets the product.
-
Field Details
-
id
-
category
-
product
The product. -
displayOrder
The display order. -
defaultReference
-
-
Constructor Details
-
CategoryProductXrefImpl
public CategoryProductXrefImpl()
-
-
Method Details
-
getDisplayOrder
Description copied from interface:CategoryProductXrefGets the display order.- Specified by:
getDisplayOrderin interfaceCategoryProductXref- Returns:
- the display order
-
setDisplayOrder
Description copied from interface:CategoryProductXrefSets the display order.- Specified by:
setDisplayOrderin interfaceCategoryProductXref- Parameters:
displayOrder- the new display order
-
getCategory
Description copied from interface:CategoryProductXrefGets the category.- Specified by:
getCategoryin interfaceCategoryProductXref- Returns:
- the category
-
setCategory
Description copied from interface:CategoryProductXrefSets the category.- Specified by:
setCategoryin interfaceCategoryProductXref- Parameters:
category- the new category
-
getProduct
Description copied from interface:CategoryProductXrefGets the product.- Specified by:
getProductin interfaceCategoryProductXref- Returns:
- the product
-
setProduct
Description copied from interface:CategoryProductXrefSets the product.- Specified by:
setProductin interfaceCategoryProductXref- Parameters:
product- the new product
-
getId
- Specified by:
getIdin interfaceCategoryProductXref
-
setId
- Specified by:
setIdin interfaceCategoryProductXref
-
getDefaultReference
Description copied from interface:CategoryProductXrefSpecifies 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 ofProductImpl.getDefaultCategory()- Specified by:
getDefaultReferencein interfaceCategoryProductXref- Returns:
- the default reference between a product and a category
- See Also:
-
setDefaultReference
- Specified by:
setDefaultReferencein interfaceCategoryProductXref
-
equals
-
hashCode
public int hashCode() -
createOrRetrieveCopyInstance
public <G extends CategoryProductXref> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<CategoryProductXref>- Throws:
CloneNotSupportedException
-