Interface ActionRepository

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

public interface ActionRepository extends org.springframework.data.jpa.repository.JpaRepository<Action,Long>
A ActionRepository.
Author:
Heiko Scherrer
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
     
    findByActionTypeAndRouteAndLocationGroupName(String actionType, String routeId, String locationGroupName)
     
    findByActionTypeAndRouteAndLocationKey(String actionType, String routeId, String locationKey)
     
     
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository Link icon

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository Link icon

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository Link icon

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository Link icon

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository Link icon

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor Link icon

    count, exists, findAll, findBy, findOne
  • Method Details Link icon

    • findBypKey Link icon

      Optional<Action> findBypKey(String pKey)
    • findByName Link icon

      Optional<Action> findByName(String name)
    • findByActionTypeAndRouteAndLocationKey Link icon

      @Query("select a\n from Action a\n where a.actionType = :actionType\n and a.route.routeId = :routeId\n and a.locationKey is not null\n and a.locationKey = :locationKey\n and a.enabled = true\n") Optional<Action> findByActionTypeAndRouteAndLocationKey(@Param("actionType") String actionType, @Param("routeId") String routeId, @Param("locationKey") String locationKey)
    • findByActionTypeAndRouteAndLocationGroupName Link icon

      @Query("select a\n from Action a\n where a.actionType = :actionType\n and a.route.routeId = :routeId\n and a.locationGroupName is not null\n and a.locationGroupName = :locationGroupName\n and a.enabled = true\n") Optional<Action> findByActionTypeAndRouteAndLocationGroupName(@Param("actionType") String actionType, @Param("routeId") String routeId, @Param("locationGroupName") String locationGroupName)
    • deleteBypKey Link icon

      void deleteBypKey(String pKey)