Interface CategoryRepository
- All Known Implementing Classes:
CategoryRepositoryImpl
public interface CategoryRepository
Interface for CategoryRepository.
- Version:
- 0.4.1
- Author:
- Lorenzo Occhipinti
-
Method Summary
-
Method Details
-
get
Finds the category identified by id in the database- Parameters:
id
- the id of the category to be found- Returns:
- an instance of Category if there is a category identified by id, null otherwise
- Throws:
NotFoundException
-
getAll
Finds all the categories in the database- Returns:
- all the instances of Category, null otherwise
- Throws:
NotFoundException
-