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>, org.springframework.data.repository.history.RevisionRepository<TMFeatureSource, Long, Long>
public interface FeatureSourceRepository
extends org.springframework.data.jpa.repository.JpaRepository<TMFeatureSource, Long>, org.springframework.data.repository.history.RevisionRepository<TMFeatureSource, Long, Long>
-
Method Summary
Modifier and TypeMethodDescription@NonNull Optional<TMFeatureSource> @NonNull List<TMFeatureSource> @NonNull List<TMFeatureSource> getAllExcludingIds(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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOneMethods inherited from interface org.springframework.data.repository.history.RevisionRepository
findLastChangeRevision, findRevision, findRevisions, findRevisions
-
Method Details
-
findByUrl
-
findById
- Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<TMFeatureSource, Long>
-
findByLinkedServiceId
-
findByIds
@PreAuthorize("permitAll()") @Query("from TMFeatureSource fs where id in :ids") @NonNull List<TMFeatureSource> findByIds(@Param("ids") List<Long> ids) -
getAllExcludingIds
@PreAuthorize("permitAll()") @Query("from TMFeatureSource fs where id not in :ids") @NonNull 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
-