Interface ViewRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<View,​Long>, org.springframework.data.jpa.repository.JpaRepository<View,​Long>, org.springframework.data.repository.PagingAndSortingRepository<View,​Long>, org.springframework.data.repository.query.QueryByExampleExecutor<View>, org.springframework.data.repository.Repository<View,​Long>

    public interface ViewRepository
    extends org.springframework.data.jpa.repository.JpaRepository<View,​Long>
    Spring Data JPA repository for the View entity.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<View> findByOwnerIsCurrentUser​(String login)  
      List<View> findByOwnerIsCurrentUserOrShared​(String login)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByOwnerIsCurrentUser

        @Query("select view from View view where view.owner.login = :login")
        List<View> findByOwnerIsCurrentUser​(@Param("login")
                                            String login)
      • findByOwnerIsCurrentUserOrShared

        @Query("select view from View view where view.shared = TRUE or view.owner.login = :login")
        List<View> findByOwnerIsCurrentUserOrShared​(@Param("login")
                                                    String login)