@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() |
| Modifier and Type | Method and Description |
|---|---|
Long |
countAllowedValuesForProductOptionById(Long productOptionId) |
List<AssignedProductOptionDTO> |
findAssignedProductOptionsByProduct(Product product)
Returns a list of
AssignedProductOptionDTO
found for given the Product. |
List<AssignedProductOptionDTO> |
findAssignedProductOptionsByProductId(Long productId)
Returns a list of
AssignedProductOptionDTO
found for given the productId. |
List<ProductOption> |
readAllProductOptions() |
ProductOption |
readProductOptionById(Long id) |
ProductOptionValue |
readProductOptionValueById(Long id) |
ProductOption |
saveProductOption(ProductOption option) |
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 ProductOptionDaoCopyright © 2017. All rights reserved.