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