public interface SaleRepository extends EntityRepository<Sale>
| Modifier and Type | Method and Description |
|---|---|
void |
create(Sale sale)
Creates entity in database
|
void |
delete(Sale sale)
Deletes the entity from database
|
Iterable<Sale> |
find(SaleFilter filter)
Filters according to criteria specified by filter
|
Sale |
getById(long id)
Retrieves entity by id
|
void |
update(Sale sale)
Updates entity in database
|
Sale getById(long id)
getById in interface EntityRepository<Sale>id - idvoid create(Sale sale) throws EntityValidationException
create in interface EntityRepository<Sale>sale - entityEntityValidationException - on violationvoid update(Sale sale) throws EntityValidationException
update in interface EntityRepository<Sale>sale - entityEntityValidationException - on violationvoid delete(Sale sale) throws EntityValidationException
delete in interface EntityRepository<Sale>sale - entityEntityValidationException - on violationIterable<Sale> find(SaleFilter filter)
filter - filterCopyright © 2017 Pivotal Software, Inc.. All rights reserved.