@Service @Repository @Transactional public class ProductServiceImpl extends AbstractPagingAndSortingService implements ProductService
| Constructor and Description |
|---|
ProductServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteProduct(Long productId) |
Optional<ProductModel> |
getProduct(Long productId) |
Optional<ProductModel> |
getProduct(String catalogId,
String name) |
List<ProductModel> |
getProducts() |
List<ProductModel> |
getProducts(int startPage,
int itemsPerPage,
String sortColumn,
String direction) |
List<ProductModel> |
getProducts(String catalogId) |
List<ProductModel> |
getProducts(String catalogId,
int startPage,
int itemsPerPage,
String sortColumn,
String direction) |
ProductModel |
saveProduct(ProductModel product) |
createPageRequestpublic List<ProductModel> getProducts()
getProducts in interface ProductServicepublic List<ProductModel> getProducts(String catalogId)
getProducts in interface ProductServicepublic List<ProductModel> getProducts(int startPage, int itemsPerPage, String sortColumn, String direction)
getProducts in interface ProductServicepublic List<ProductModel> getProducts(String catalogId, int startPage, int itemsPerPage, String sortColumn, String direction)
getProducts in interface ProductServicepublic Optional<ProductModel> getProduct(Long productId)
getProduct in interface ProductServicepublic Optional<ProductModel> getProduct(String catalogId, String name)
getProduct in interface ProductServicepublic ProductModel saveProduct(ProductModel product)
saveProduct in interface ProductServicepublic void deleteProduct(Long productId)
deleteProduct in interface ProductServiceCopyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.