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