public interface SaleService
| Modifier and Type | Method and Description |
|---|---|
long |
create(Sale sale)
Creates new sale
|
void |
delete(Sale sale)
Deletes sale
|
List<Sale> |
getByFilter(SaleFilter filter)
Returns sales based on given filter
|
Sale |
getById(long id)
Return sale of given id
|
void |
update(Sale sale)
Updates sale
|
long create(Sale sale) throws ServiceException
sale - Sale to be createdServiceException - when there are any unexpected problemsvoid delete(Sale sale) throws ServiceException
sale - Sale to be deletedServiceException - when there are any unexpected problemsvoid update(Sale sale) throws ServiceException
sale - Sale to be updatedServiceException - when there are any unexpected problemsSale getById(long id)
id - Id of saleList<Sale> getByFilter(SaleFilter filter)
filter - filter to useCopyright © 2017 Pivotal Software, Inc.. All rights reserved.