org.broadleafcommerce.catalog.dao
Class CategoryDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.catalog.dao.CategoryDaoImpl
All Implemented Interfaces:
CategoryDao

@Repository(value="blCategoryDao")
public class CategoryDaoImpl
extends java.lang.Object
implements CategoryDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
protected  java.lang.String queryCacheableKey
           
 
Constructor Summary
CategoryDaoImpl()
           
 
Method Summary
 void delete(Category category)
           
 java.lang.String getQueryCacheableKey()
           
 java.util.List<Category> readAllCategories()
           
 java.util.List<Product> readAllProducts()
           
 java.util.List<Category> readAllSubCategories(Category category)
           
 Category readCategoryById(java.lang.Long categoryId)
           
 Category readCategoryByName(java.lang.String categoryName)
           
 Category save(Category category)
           
 void setQueryCacheableKey(java.lang.String queryCacheableKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em

entityConfiguration

protected EntityConfiguration entityConfiguration

queryCacheableKey

protected java.lang.String queryCacheableKey
Constructor Detail

CategoryDaoImpl

public CategoryDaoImpl()
Method Detail

save

public Category save(Category category)
Specified by:
save in interface CategoryDao

readCategoryById

public Category readCategoryById(java.lang.Long categoryId)
Specified by:
readCategoryById in interface CategoryDao

readCategoryByName

public Category readCategoryByName(java.lang.String categoryName)
Specified by:
readCategoryByName in interface CategoryDao

readAllCategories

public java.util.List<Category> readAllCategories()
Specified by:
readAllCategories in interface CategoryDao

readAllProducts

public java.util.List<Product> readAllProducts()
Specified by:
readAllProducts in interface CategoryDao

readAllSubCategories

public java.util.List<Category> readAllSubCategories(Category category)
Specified by:
readAllSubCategories in interface CategoryDao

getQueryCacheableKey

public java.lang.String getQueryCacheableKey()

setQueryCacheableKey

public void setQueryCacheableKey(java.lang.String queryCacheableKey)

delete

public void delete(Category category)
Specified by:
delete in interface CategoryDao


Copyright © 2010. All Rights Reserved.