SHOW:
|
|
- or go back to the newest paste.
| 1 | package com.websystique.springboot.service; | |
| 2 | ||
| 3 | ||
| 4 | import java.util.Collection; | |
| 5 | ||
| 6 | import org.springframework.stereotype.Service; | |
| 7 | ||
| 8 | import com.websystique.springboot.model.AnimalEntity; | |
| 9 | @Service | |
| 10 | public interface AnimalEntityService {
| |
| 11 | ||
| 12 | AnimalEntity findById(long id); | |
| 13 | ||
| 14 | // AnimalEntity findByName(String name); | |
| 15 | // | |
| 16 | // AnimalEntity findByHabitat(String habitat); | |
| 17 | ||
| 18 | void saveAnimal(AnimalEntity animal); | |
| 19 | ||
| 20 | void updateAnimal(AnimalEntity animal); | |
| 21 | ||
| 22 | void deleteAnimalById(long id); | |
| 23 | ||
| 24 | Collection<AnimalEntity> findAllAnimals(); | |
| 25 | ||
| 26 | void deleteAllAnimals(); | |
| 27 | ||
| 28 | boolean isAnimalExist(AnimalEntity animal); | |
| 29 | ||
| 30 | ||
| 31 | } |