Package nl.b3p.tailormap.api.repository
Interface GeoServiceRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<GeoService,String>,org.springframework.data.jpa.repository.JpaRepository<GeoService,String>,org.springframework.data.repository.PagingAndSortingRepository<GeoService,String>,org.springframework.data.repository.query.QueryByExampleExecutor<GeoService>,org.springframework.data.repository.Repository<GeoService,String>
public interface GeoServiceRepository extends org.springframework.data.jpa.repository.JpaRepository<GeoService,String>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<GeoService>findById(String id)List<GeoService>findByIds(List<String> ids)Find multiple geo-services.List<GeoService>getAllExcludingIds(List<String> ids)Find multiple geo-services except some.-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
-
-
-
-
Method Detail
-
findById
@NonNull @PreAuthorize("permitAll()") Optional<GeoService> findById(@NonNull String id)- Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<GeoService,String>
-
findByIds
@NonNull @PreAuthorize("permitAll()") @Query("from GeoService s where id in :ids") List<GeoService> findByIds(@Param("ids") List<String> ids)Find multiple geo-services. Example URL: /api/admin/geo-services/search/findByIds?ids=openbasiskaart&ids=at-basemap- Parameters:
ids- The ids to search for- Returns:
- The geo services matching the ids
-
getAllExcludingIds
@NonNull @PreAuthorize("permitAll()") @Query("from GeoService s where id not in :ids") List<GeoService> getAllExcludingIds(@Param("ids") List<String> ids)Find multiple geo-services except some. Example URL: /api/admin/geo-services/search/getAllExcludingIds?ids=openbasiskaart&ids=at-basemapNo geo services are returned if ids is an empty list.
- Parameters:
ids- The ids not to include- Returns:
- All geo services except those matching the ids
-
-