Interface GraphRepository

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<Graph> findByOwnerIsCurrentUser​(String login)  
      List<Graph> 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 graph from Graph graph where graph.owner.login = :login")
        List<Graph> findByOwnerIsCurrentUser​(@Param("login")
                                             String login)
      • findByOwnerIsCurrentUserOrShared

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