Package org.duracloud.account.db.repo
Interface DuracloudAccountRepo
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountInfo,Long>,org.springframework.data.jpa.repository.JpaRepository<AccountInfo,Long>,org.springframework.data.repository.PagingAndSortingRepository<AccountInfo,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<AccountInfo>,org.springframework.data.repository.Repository<AccountInfo,Long>
@Repository("accountRepo") public interface DuracloudAccountRepo extends org.springframework.data.jpa.repository.JpaRepository<AccountInfo,Long>- Author:
- Erik Paulsson Date: 7/8/13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccountInfofindByPrimaryStorageProviderAccountId(Long id)AccountInfofindBySecondaryStorageProviderAccountsId(Long id)List<AccountInfo>findByStatus(AccountInfo.AccountStatus status)This method returns the account with the given subdomainAccountInfofindBySubdomain(String subdomain)This method returns the account with the given subdomain-
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
-
-
-
-
Method Detail
-
findBySubdomain
AccountInfo findBySubdomain(String subdomain)
This method returns the account with the given subdomain- Parameters:
subdomain- of account- Returns:
- account info
-
findByStatus
List<AccountInfo> findByStatus(AccountInfo.AccountStatus status)
This method returns the account with the given subdomain- Parameters:
status-- Returns:
- list of account info
-
findByPrimaryStorageProviderAccountId
AccountInfo findByPrimaryStorageProviderAccountId(Long id)
- Parameters:
id-- Returns:
-
findBySecondaryStorageProviderAccountsId
AccountInfo findBySecondaryStorageProviderAccountsId(Long id)
- Parameters:
id-- Returns:
-
-