@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) |
createPageRequest
public List<ProductModel> getProducts()
getProducts
in interface ProductService
public List<ProductModel> getProducts(String catalogId)
getProducts
in interface ProductService
public List<ProductModel> getProducts(int startPage, int itemsPerPage, String sortColumn, String direction)
getProducts
in interface ProductService
public List<ProductModel> getProducts(String catalogId, int startPage, int itemsPerPage, String sortColumn, String direction)
getProducts
in interface ProductService
public Optional<ProductModel> getProduct(Long productId)
getProduct
in interface ProductService
public Optional<ProductModel> getProduct(String catalogId, String name)
getProduct
in interface ProductService
public ProductModel saveProduct(ProductModel product)
saveProduct
in interface ProductService
public void deleteProduct(Long productId)
deleteProduct
in interface ProductService
Copyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Apache Log4j Audit, Log4j, Log4j Audit, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.