Package nl.b3p.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.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<TMFeatureSource>findById(Long id)List<TMFeatureSource>findByIds(List<Long> ids)List<TMFeatureSource>findByLinkedServiceId(String id)TMFeatureSourcefindByUrl(String url)List<TMFeatureSource>getAllExcludingIds(List<Long> ids)Find multiple feature-sources 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
-
findByUrl
TMFeatureSource findByUrl(String url)
-
findById
@PreAuthorize("permitAll()") @NonNull Optional<TMFeatureSource> findById(@NonNull Long id)- Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<TMFeatureSource,Long>
-
findByLinkedServiceId
@PreAuthorize("permitAll()") List<TMFeatureSource> findByLinkedServiceId(String id)
-
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
-
-