Interface RouteDetailsRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<RouteDetails,Long>, org.springframework.data.jpa.repository.JpaRepository<RouteDetails,Long>, org.springframework.data.repository.ListCrudRepository<RouteDetails,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<RouteDetails,Long>, org.springframework.data.repository.PagingAndSortingRepository<RouteDetails,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<RouteDetails>, org.springframework.data.repository.Repository<RouteDetails,Long>

public interface RouteDetailsRepository extends org.springframework.data.jpa.repository.JpaRepository<RouteDetails,Long>
A RouteDetailsRepository.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     

    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

    • existsWithLocation

      @Query("select count(rd) > 0 from RouteDetails rd where rd.source = :locationId or rd.next = :locationId") boolean existsWithLocation(@Param("locationId") String locationId)
    • findByRoute_RouteId_OrderByPos

      List<RouteDetails> findByRoute_RouteId_OrderByPos(String routeId)