Package org.tailormap.api.repository
Interface FeatureSourceRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TMFeatureSource,
,Long> org.springframework.data.jpa.repository.JpaRepository<TMFeatureSource,
,Long> org.springframework.data.repository.ListCrudRepository<TMFeatureSource,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<TMFeatureSource,
,Long> org.springframework.data.repository.PagingAndSortingRepository<TMFeatureSource,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<TMFeatureSource>
,org.springframework.data.repository.Repository<TMFeatureSource,
Long>
public interface FeatureSourceRepository
extends org.springframework.data.jpa.repository.JpaRepository<TMFeatureSource,Long>
-
Method Summary
Modifier and TypeMethodDescriptiongetAllExcludingIds
(List<Long> ids) Find multiple feature-sources except some.getByTitle
(String title) Find a feature-source by title.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
-
findByUrl
-
findById
- Specified by:
findById
in interfaceorg.springframework.data.repository.CrudRepository<TMFeatureSource,
Long>
-
findByLinkedServiceId
-
findByIds
@NonNull @PreAuthorize("permitAll()") @Query("from TMFeatureSource fs where id in :ids") List<TMFeatureSource> findByIds(@Param("ids") List<Long> ids) -
getAllExcludingIds
@NonNull @PreAuthorize("permitAll()") @Query("from TMFeatureSource fs where id not in :ids") List<TMFeatureSource> getAllExcludingIds(@Param("ids") List<Long> ids) Find multiple feature-sources except some. Example URL: /api/admin/feature-sources/search/getAllExcludingIds?ids=1,2,3No feature sources are returned if ids is an empty list.
- Parameters:
ids
- The ids not to include- Returns:
- All feature sources except those matching the ids
-
getByTitle
Find a feature-source by title. This is a non-deterministic operation since the title is not unique. Useful for testing.- Parameters:
title
- The title of the feature-source- Returns:
- The feature-source
-