Package org.tailormap.api.repository
Interface FeatureTypeRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TMFeatureType,
,Long> org.springframework.data.jpa.repository.JpaRepository<TMFeatureType,
,Long> org.springframework.data.repository.ListCrudRepository<TMFeatureType,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<TMFeatureType,
,Long> org.springframework.data.repository.PagingAndSortingRepository<TMFeatureType,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<TMFeatureType>
,org.springframework.data.repository.Repository<TMFeatureType,
Long>
public interface FeatureTypeRepository
extends org.springframework.data.jpa.repository.JpaRepository<TMFeatureType,Long>
-
Method Summary
Modifier and TypeMethodDescriptiongetTMFeatureTypeByNameAndFeatureSource
(String name, TMFeatureSource featureSource) Get a feature type by name and feature source.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, 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
-
getTMFeatureTypeByNameAndFeatureSource
@PreAuthorize("permitAll()") Optional<TMFeatureType> getTMFeatureTypeByNameAndFeatureSource(String name, TMFeatureSource featureSource) Get a feature type by name and feature source. This is a non-deterministic operation since the combination of name and feature source is not unique. Useful for testing.- Parameters:
name
- The name of the feature typefeatureSource
- The feature source of the feature type- Returns:
- The feature type
-