public interface CategoryXrefDao
CategoryXrefDao provides persistence access to the relationship
between a category and its sub-categories. This includes an ordering field.CategoryXref| Modifier and Type | Method and Description |
|---|---|
void |
delete(CategoryXrefImpl categoryXref)
Remove the passed in category relationship from the datastore
|
CategoryXref |
readXrefByIds(Long categoryId,
Long subCategoryId)
Find a specific relationship between a parent categoy and sub-category (child)
|
List<CategoryXrefImpl> |
readXrefsByCategoryId(Long categoryId)
Retrieve all the category relationships for which the passed in
Category primary key is a parent |
List<CategoryXrefImpl> |
readXrefsBySubCategoryId(Long subCategoryId)
Retrieve all the category relationships for which the passed in
Category primary key is a sub category (or child) |
CategoryProductXrefImpl |
save(CategoryProductXrefImpl categoryProductXref)
Persist the passed in category/product relationship to the datastore
|
CategoryXref |
save(CategoryXrefImpl categoryXref)
Persist the passed in category relationship to the datastore
|
@Nonnull List<CategoryXrefImpl> readXrefsByCategoryId(@Nonnull Long categoryId)
Category primary key is a parentcategoryId - the parent Category primary key@Nonnull List<CategoryXrefImpl> readXrefsBySubCategoryId(@Nonnull Long subCategoryId)
Category primary key is a sub category (or child)subCategoryId - the sub-categories primary key@Nonnull CategoryXref readXrefByIds(@Nonnull Long categoryId, @Nonnull Long subCategoryId)
categoryId - The primary key of the parent categorysubCategoryId - The primary key of the sub-category@Nonnull CategoryXref save(@Nonnull CategoryXrefImpl categoryXref)
categoryXref - the relationship between a parent and child categoryvoid delete(@Nonnull CategoryXrefImpl categoryXref)
categoryXref - the category relationship to remove@Nonnull CategoryProductXrefImpl save(CategoryProductXrefImpl categoryProductXref)
categoryProductXref - the relationship between a category and productCopyright © 2014. All Rights Reserved.