Package | Description |
---|---|
pb138.dal.repository | |
pb138.service.facades | |
pb138.service.services |
Modifier and Type | Method and Description |
---|---|
Sale |
SaleRepository.getById(long id)
Retrieves entity by id
|
Modifier and Type | Method and Description |
---|---|
Iterable<Sale> |
SaleRepository.find(SaleFilter filter)
Filters according to criteria specified by filter
|
Modifier and Type | Method and Description |
---|---|
void |
SaleRepository.create(Sale sale)
Creates entity in database
|
void |
SaleRepository.delete(Sale sale)
Deletes the entity from database
|
void |
SaleRepository.update(Sale sale)
Updates entity in database
|
Modifier and Type | Method and Description |
---|---|
Sale |
SaleFacadeImpl.addSale(long ean,
Date date,
int sold) |
Sale |
SaleFacade.addSale(long ean,
Date date,
int sold)
Adds one sale
|
Sale |
SaleFacadeImpl.storeSaleInDb(Sale s) |
Sale |
SaleFacade.storeSaleInDb(Sale s)
Store sale in db.
|
Modifier and Type | Method and Description |
---|---|
List<Sale> |
SaleFacadeImpl.getAllSales() |
List<Sale> |
SaleFacade.getAllSales()
Get all sales
|
List<Sale> |
SaleFacadeImpl.getSalesForCategory(Category category,
Date from,
Date to) |
List<Sale> |
SaleFacade.getSalesForCategory(Category category,
Date from,
Date to)
Get all sales for given category from given period of time
|
List<Sale> |
SaleFacadeImpl.getSalesForProduct(Item item,
Date from,
Date to) |
List<Sale> |
SaleFacade.getSalesForProduct(Item item,
Date from,
Date to)
Get all sales for given item from given period of time
|
Modifier and Type | Method and Description |
---|---|
Sale |
SaleFacadeImpl.storeSaleInDb(Sale s) |
Sale |
SaleFacade.storeSaleInDb(Sale s)
Store sale in db.
|
Modifier and Type | Method and Description |
---|---|
Sale |
SaleServiceImpl.getById(long id) |
Sale |
SaleService.getById(long id)
Return sale of given id
|
Modifier and Type | Method and Description |
---|---|
List<Sale> |
SaleServiceImpl.getByFilter(SaleFilter filter) |
List<Sale> |
SaleService.getByFilter(SaleFilter filter)
Returns sales based on given filter
|
Modifier and Type | Method and Description |
---|---|
long |
SaleServiceImpl.create(Sale sale) |
long |
SaleService.create(Sale sale)
Creates new sale
|
void |
SaleServiceImpl.delete(Sale sale) |
void |
SaleService.delete(Sale sale)
Deletes sale
|
void |
SaleServiceImpl.update(Sale sale) |
void |
SaleService.update(Sale sale)
Updates sale
|
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.