Interface GeoServiceRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<GeoService,String>, org.springframework.data.jpa.repository.JpaRepository<GeoService,String>, org.springframework.data.repository.ListCrudRepository<GeoService,String>, org.springframework.data.repository.ListPagingAndSortingRepository<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

    Modifier and Type
    Method
    Description
     
    Find multiple geo-services.
    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findById

      @NonNull @PreAuthorize("permitAll()") Optional<GeoService> findById(@NonNull String id)
      Specified by:
      findById in interface org.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-basemap

      No 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