Interface RouteRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RouteImpl,,Long> org.springframework.data.jpa.repository.JpaRepository<RouteImpl,,Long> org.springframework.data.repository.ListCrudRepository<RouteImpl,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<RouteImpl,,Long> org.springframework.data.repository.PagingAndSortingRepository<RouteImpl,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<RouteImpl>,org.springframework.data.repository.Repository<RouteImpl,Long>
public interface RouteRepository
extends org.springframework.data.jpa.repository.JpaRepository<RouteImpl,Long>
A RouteRepository.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsWithLocation(String locationId) findBypKey(String persistentKey) findByRouteId(String routeId) findBySourceLocation_LocationIdAndTargetLocation_LocationIdAndEnabled(String sourceLocation, String targetLocation, boolean enabled) findBySourceLocation_LocationIdAndTargetLocationGroupNameAndEnabled(String sourceLocation, String targetLocationGroupName, boolean enabled) findBySourceLocationGroupNameAndTargetLocation_LocationIdAndEnabled(String sourceLocationGroupName, String targetLocation, boolean enabled) findBySourceLocationGroupNameAndTargetLocationGroupNameAndEnabled(String sourceLocationGroupName, String targetLocationGroupName, boolean enabled) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, 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, findOne
-
Method Details
-
existsWithLocation
@Query("select count(r) > 0 from RouteImpl r where r.sourceLocation.locationId = :locationId or r.targetLocation.locationId = :locationId") boolean existsWithLocation(@Param("locationId") String locationId) -
findBypKey
-
findByRouteId
-
findBySourceLocation_LocationIdAndTargetLocation_LocationIdAndEnabled
-
findBySourceLocation_LocationIdAndTargetLocationGroupNameAndEnabled
-
findBySourceLocationGroupNameAndTargetLocation_LocationIdAndEnabled
-
findBySourceLocationGroupNameAndTargetLocationGroupNameAndEnabled
-