Interface DuracloudGroupRepo

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

    @Repository("groupRepo")
    public interface DuracloudGroupRepo
    extends org.springframework.data.jpa.repository.JpaRepository<DuracloudGroup,​Long>
    Author:
    Erik Paulsson Date: 7/8/13
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<DuracloudGroup> findByAccountId​(Long acctId)
      This method returns all groups within the given account.
      DuracloudGroup findByNameAndAccountId​(String name, Long accountId)
      This method returns a single group within the given account, with the given groupname.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, delete, delete, deleteAll, exists, findOne, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, 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

      • findByNameAndAccountId

        DuracloudGroup findByNameAndAccountId​(String name,
                                              Long accountId)
        This method returns a single group within the given account, with the given groupname.
        Parameters:
        name - of group
        accountId - associated with group
        Returns:
        group
      • findByAccountId

        List<DuracloudGroup> findByAccountId​(Long acctId)
        This method returns all groups within the given account.
        Parameters:
        acctId - associated with group
        Returns:
        all groups in account