Interface CategoryXrefDao
- All Known Implementing Classes:
CategoryXrefDaoImpl
public interface CategoryXrefDao
CategoryXrefDao provides persistence access to the relationship
between a category and its sub-categories. This includes an ordering field.- Author:
- Jeff Fischer
- See Also:
-
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
-
Method Details
-
readXrefsByCategoryId
Retrieve all the category relationships for which the passed inCategoryprimary key is a parent- Parameters:
categoryId- the parentCategoryprimary key- Returns:
- the list of child category relationships for the parent primary key
-
readXrefsBySubCategoryId
Retrieve all the category relationships for which the passed inCategoryprimary key is a sub category (or child)- Parameters:
subCategoryId- the sub-categories primary key- Returns:
- the list of category relationships for the sub-category primary key
-
readXrefByIds
Find a specific relationship between a parent categoy and sub-category (child)- 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
Persist the passed in category relationship to the datastore- Parameters:
categoryXref- the relationship between a parent and child category- Returns:
- the persisted relationship between a parent and child category
-
delete
Remove the passed in category relationship from the datastore- Parameters:
categoryXref- the category relationship to remove
-
save
Persist the passed in category/product relationship to the datastore- Parameters:
categoryProductXref- the relationship between a category and product- Returns:
- the persisted relationship between a category and product
-