@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(CategoryXrefImpl categoryXref)
Remove the passed in category relationship from the datastore
|
CategoryXrefImpl |
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
|
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public List<CategoryXrefImpl> readXrefsByCategoryId(Long categoryId)
CategoryXrefDaoCategory primary key is a parentreadXrefsByCategoryId in interface CategoryXrefDaocategoryId - the parent Category primary keypublic List<CategoryXrefImpl> readXrefsBySubCategoryId(Long subCategoryId)
CategoryXrefDaoCategory primary key is a sub category (or child)readXrefsBySubCategoryId in interface CategoryXrefDaosubCategoryId - the sub-categories primary keypublic CategoryXrefImpl 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(CategoryXrefImpl categoryXref)
CategoryXrefDaodelete in interface CategoryXrefDaocategoryXref - the category relationship to removepublic CategoryProductXrefImpl save(CategoryProductXrefImpl categoryProductXref)
CategoryXrefDaosave in interface CategoryXrefDaocategoryProductXref - the relationship between a category and productCopyright © 2014. All Rights Reserved.