|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.catalog.dao.CategoryXrefDaoImpl
@Repository(value="blCategoryXrefDao") public class CategoryXrefDaoImpl
| Field Summary | |
|---|---|
protected javax.persistence.EntityManager |
em
|
protected EntityConfiguration |
entityConfiguration
|
| Constructor Summary | |
|---|---|
CategoryXrefDaoImpl()
|
|
| Method Summary | |
|---|---|
void |
delete(CategoryXrefImpl categoryXref)
Remove the passed in category relationship from the datastore |
CategoryXrefImpl |
readXrefByIds(java.lang.Long categoryId,
java.lang.Long subCategoryId)
Find a specific relationship between a parent categoy and sub-category (child) |
java.util.List<CategoryXrefImpl> |
readXrefsByCategoryId(java.lang.Long categoryId)
Retrieve all the category relationships for which the passed in Category primary key is a parent |
java.util.List<CategoryXrefImpl> |
readXrefsBySubCategoryId(java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
| Constructor Detail |
|---|
public CategoryXrefDaoImpl()
| Method Detail |
|---|
public java.util.List<CategoryXrefImpl> readXrefsByCategoryId(java.lang.Long categoryId)
CategoryXrefDaoCategory primary key is a parent
readXrefsByCategoryId in interface CategoryXrefDaocategoryId - the parent Category primary key
public java.util.List<CategoryXrefImpl> readXrefsBySubCategoryId(java.lang.Long subCategoryId)
CategoryXrefDaoCategory primary key is a sub category (or child)
readXrefsBySubCategoryId in interface CategoryXrefDaosubCategoryId - the sub-categories primary key
public CategoryXrefImpl readXrefByIds(java.lang.Long categoryId,
java.lang.Long subCategoryId)
CategoryXrefDao
readXrefByIds in interface CategoryXrefDaocategoryId - The primary key of the parent categorysubCategoryId - The primary key of the sub-category
public CategoryXref save(CategoryXrefImpl categoryXref)
CategoryXrefDao
save in interface CategoryXrefDaocategoryXref - the relationship between a parent and child category
public void delete(CategoryXrefImpl categoryXref)
CategoryXrefDao
delete in interface CategoryXrefDaocategoryXref - the category relationship to removepublic CategoryProductXrefImpl save(CategoryProductXrefImpl categoryProductXref)
CategoryXrefDao
save in interface CategoryXrefDaocategoryProductXref - the relationship between a category and product
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||