Package org.duracloud.account.db.repo
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 TypeMethodDescriptionfindByAccountId(Long acctId) This method returns all groups within the given account.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, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByNameAndAccountId
This method returns a single group within the given account, with the given groupname.- Parameters:
name- of groupaccountId- associated with group- Returns:
- group
-
findByAccountId
This method returns all groups within the given account.- Parameters:
acctId- associated with group- Returns:
- all groups in account
-