Class CategoryXrefImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.CategoryXrefImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryXref>,CategoryXref
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Categoryprotected Booleanprotected BigDecimalprotected Longprotected Category -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends CategoryXref>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleanReturn the parent categorySpecifies the default reference between a category and a parent category.Return the order for sortinggetId()Return the child categoryinthashCode()voidsetCategory(Category category) voidsetDefaultReference(Boolean defaultReference) voidsetDisplayOrder(BigDecimal displayOrder) voidReturn the primary keyvoidsetSubCategory(Category subCategory)
-
Field Details
-
id
-
category
-
subCategory
-
displayOrder
-
defaultReference
-
-
Constructor Details
-
CategoryXrefImpl
public CategoryXrefImpl()
-
-
Method Details
-
getDisplayOrder
Description copied from interface:CategoryXrefReturn the order for sorting- Specified by:
getDisplayOrderin interfaceCategoryXref- Returns:
-
setDisplayOrder
- Specified by:
setDisplayOrderin interfaceCategoryXref
-
getCategory
Description copied from interface:CategoryXrefReturn the parent category- Specified by:
getCategoryin interfaceCategoryXref- Returns:
-
setCategory
- Specified by:
setCategoryin interfaceCategoryXref
-
getSubCategory
Description copied from interface:CategoryXrefReturn the child category- Specified by:
getSubCategoryin interfaceCategoryXref- Returns:
-
setSubCategory
- Specified by:
setSubCategoryin interfaceCategoryXref
-
getId
- Specified by:
getIdin interfaceCategoryXref
-
setId
Description copied from interface:CategoryXrefReturn the primary key- Specified by:
setIdin interfaceCategoryXref
-
getDefaultReference
Description copied from interface:CategoryXrefSpecifies the default reference between a category and a parent category. This replaces the concept ofCategoryImpl.getDefaultParentCategory()()}- Specified by:
getDefaultReferencein interfaceCategoryXref- Returns:
- the default reference between a category and a parent category
- See Also:
-
setDefaultReference
- Specified by:
setDefaultReferencein interfaceCategoryXref
-
equals
-
hashCode
public int hashCode() -
createOrRetrieveCopyInstance
public <G extends CategoryXref> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryXref>- Throws:
CloneNotSupportedException
-