@Repository(value="blCategoryXrefDao") public class CategoryXrefDaoImpl extends Object implements CategoryXrefDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
CategoryXrefDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(CategoryXref 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<CategoryXref> |
readXrefsByCategoryId(Long categoryId)
Retrieve all the category relationships for which the passed in
Category primary key is a parent |
List<CategoryXref> |
readXrefsBySubCategoryId(Long subCategoryId)
Retrieve all the category relationships for which the passed in
Category primary key is a sub category (or child) |
CategoryProductXref |
save(CategoryProductXref categoryProductXref)
Persist the passed in category/product relationship to the datastore
|
CategoryXref |
save(CategoryXrefImpl categoryXref)
Persist the passed in category relationship to the datastore
|
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public List<CategoryXref> readXrefsByCategoryId(Long categoryId)
CategoryXrefDaoCategory primary key is a parentreadXrefsByCategoryId in interface CategoryXrefDaocategoryId - the parent Category primary keypublic List<CategoryXref> readXrefsBySubCategoryId(Long subCategoryId)
CategoryXrefDaoCategory primary key is a sub category (or child)readXrefsBySubCategoryId in interface CategoryXrefDaosubCategoryId - the sub-categories primary keypublic CategoryXref readXrefByIds(Long categoryId, Long subCategoryId)
CategoryXrefDaoreadXrefByIds in interface CategoryXrefDaocategoryId - The primary key of the parent categorysubCategoryId - The primary key of the sub-categorypublic CategoryXref save(CategoryXrefImpl categoryXref)
CategoryXrefDaosave in interface CategoryXrefDaocategoryXref - the relationship between a parent and child categorypublic void delete(CategoryXref categoryXref)
CategoryXrefDaodelete in interface CategoryXrefDaocategoryXref - the category relationship to removepublic CategoryProductXref save(CategoryProductXref categoryProductXref)
CategoryXrefDaosave in interface CategoryXrefDaocategoryProductXref - the relationship between a category and productCopyright © 2015. All Rights Reserved.