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 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

      Optional<RouteImpl> findBypKey(String persistentKey)
    • findByRouteId

      Optional<RouteImpl> findByRouteId(String routeId)
    • findBySourceLocation_LocationIdAndTargetLocation_LocationIdAndEnabled

      Optional<RouteImpl> findBySourceLocation_LocationIdAndTargetLocation_LocationIdAndEnabled(String sourceLocation, String targetLocation, boolean enabled)
    • findBySourceLocation_LocationIdAndTargetLocationGroupNameAndEnabled

      Optional<RouteImpl> findBySourceLocation_LocationIdAndTargetLocationGroupNameAndEnabled(String sourceLocation, String targetLocationGroupName, boolean enabled)
    • findBySourceLocationGroupNameAndTargetLocation_LocationIdAndEnabled

      Optional<RouteImpl> findBySourceLocationGroupNameAndTargetLocation_LocationIdAndEnabled(String sourceLocationGroupName, String targetLocation, boolean enabled)
    • findBySourceLocationGroupNameAndTargetLocationGroupNameAndEnabled

      Optional<RouteImpl> findBySourceLocationGroupNameAndTargetLocationGroupNameAndEnabled(String sourceLocationGroupName, String targetLocationGroupName, boolean enabled)