@Repository(value="blProductOptionDao") public class ProductOptionDaoImpl extends Object implements ProductOptionDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
protected SandBoxHelper |
sandBoxHelper |
| Constructor and Description |
|---|
ProductOptionDaoImpl() |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
protected SandBoxHelper sandBoxHelper
public List<ProductOption> readAllProductOptions()
readAllProductOptions in interface ProductOptionDaopublic ProductOption saveProductOption(ProductOption option)
saveProductOption in interface ProductOptionDaopublic ProductOption readProductOptionById(Long id)
readProductOptionById in interface ProductOptionDaopublic ProductOptionValue readProductOptionValueById(Long id)
readProductOptionValueById in interface ProductOptionDaopublic List<AssignedProductOptionDTO> findAssignedProductOptionsByProductId(Long productId)
ProductOptionDaoAssignedProductOptionDTO
found for given the productId.findAssignedProductOptionsByProductId in interface ProductOptionDaopublic List<AssignedProductOptionDTO> findAssignedProductOptionsByProduct(Product product)
ProductOptionDaoAssignedProductOptionDTO
found for given the Product.findAssignedProductOptionsByProduct in interface ProductOptionDaopublic Long countAllowedValuesForProductOptionById(Long productOptionId)
countAllowedValuesForProductOptionById in interface ProductOptionDaopublic List<Long> readSkuIdsForProductOptionValues(Long productId, String attributeName, String attributeValue, List<Long> possibleSkuIds)
readSkuIdsForProductOptionValues in interface ProductOptionDaoprotected javax.persistence.criteria.Predicate buildSkuDomainPredicate(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Path fieldName,
List<Long> possibleSkuIds)
public Long countProductsUsingProductOptionById(Long productOptionId)
countProductsUsingProductOptionById in interface ProductOptionDaopublic List<Long> findProductIdsUsingProductOptionById(Long productOptionId, int start, int pageSize)
ProductOptionDaofindProductIdsUsingProductOptionById in interface ProductOptionDaoCopyright © 2017. All rights reserved.