Class CategoryXrefDaoImpl
java.lang.Object
org.broadleafcommerce.core.catalog.dao.CategoryXrefDaoImpl
- All Implemented Interfaces:
CategoryXrefDao
@Repository("blCategoryXrefDao")
public class CategoryXrefDaoImpl
extends Object
implements CategoryXrefDao
- Author:
- Jeff Fischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected org.broadleafcommerce.common.persistence.EntityConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(CategoryXref categoryXref) Remove the passed in category relationship from the datastorereadXrefByIds(Long categoryId, Long subCategoryId) Find a specific relationship between a parent categoy and sub-category (child)readXrefsByCategoryId(Long categoryId) Retrieve all the category relationships for which the passed inCategoryprimary key is a parentreadXrefsBySubCategoryId(Long subCategoryId) Retrieve all the category relationships for which the passed inCategoryprimary key is a sub category (or child)save(CategoryProductXref categoryProductXref) Persist the passed in category/product relationship to the datastoresave(CategoryXrefImpl categoryXref) Persist the passed in category relationship to the datastore
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
-
-
Constructor Details
-
CategoryXrefDaoImpl
public CategoryXrefDaoImpl()
-
-
Method Details
-
readXrefsByCategoryId
Description copied from interface:CategoryXrefDaoRetrieve all the category relationships for which the passed inCategoryprimary key is a parent- Specified by:
readXrefsByCategoryIdin interfaceCategoryXrefDao- Parameters:
categoryId- the parentCategoryprimary key- Returns:
- the list of child category relationships for the parent primary key
-
readXrefsBySubCategoryId
Description copied from interface:CategoryXrefDaoRetrieve all the category relationships for which the passed inCategoryprimary key is a sub category (or child)- Specified by:
readXrefsBySubCategoryIdin interfaceCategoryXrefDao- Parameters:
subCategoryId- the sub-categories primary key- Returns:
- the list of category relationships for the sub-category primary key
-
readXrefByIds
Description copied from interface:CategoryXrefDaoFind a specific relationship between a parent categoy and sub-category (child)- Specified by:
readXrefByIdsin interfaceCategoryXrefDao- Parameters:
categoryId- The primary key of the parent categorysubCategoryId- The primary key of the sub-category- Returns:
- The relationship between the parent and child categories
-
save
Description copied from interface:CategoryXrefDaoPersist the passed in category relationship to the datastore- Specified by:
savein interfaceCategoryXrefDao- Parameters:
categoryXref- the relationship between a parent and child category- Returns:
- the persisted relationship between a parent and child category
-
delete
Description copied from interface:CategoryXrefDaoRemove the passed in category relationship from the datastore- Specified by:
deletein interfaceCategoryXrefDao- Parameters:
categoryXref- the category relationship to remove
-
save
Description copied from interface:CategoryXrefDaoPersist the passed in category/product relationship to the datastore- Specified by:
savein interfaceCategoryXrefDao- Parameters:
categoryProductXref- the relationship between a category and product- Returns:
- the persisted relationship between a category and product
-