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

    Modifier and Type
    Method
    Description
    This method returns all groups within the given account.
    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, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

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

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

    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

    • 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