Interface StrategyImplementationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<StrategyImplementation, Long>, org.springframework.data.jpa.repository.JpaRepository<StrategyImplementation, Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<StrategyImplementation>, org.springframework.data.repository.ListCrudRepository<StrategyImplementation, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<StrategyImplementation, Long>, org.springframework.data.repository.PagingAndSortingRepository<StrategyImplementation, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<StrategyImplementation>, org.springframework.data.repository.Repository<StrategyImplementation, Long>
@Repository
public interface StrategyImplementationRepository
extends org.springframework.data.jpa.repository.JpaRepository<StrategyImplementation, Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<StrategyImplementation>
Data-access layer for
StrategyImplementation.- Version:
- 2.0.5
- Author:
- Stephen Prizio
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T> -
Method Summary
Modifier and TypeMethodDescriptionlongcountByStrategy(Strategy strategy) Returns the number of strategy implementations for the givenStrategy.findAllByStrategy(Strategy strategy) Returns allStrategyImplementations for the givenStrategy.findByStrategyAndImplementationType(Strategy strategy, StrategyImplementationType implementationType) Returns theStrategyImplementationfor the givenStrategyand implementation type.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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, count, delete, delete, exists, exists, findAll, findAll, findAll, findAll, findAll, findBy, findBy, findOne, findOne, updateMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods 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
-
findAllByStrategy
Returns allStrategyImplementations for the givenStrategy.- Parameters:
strategy-Strategy- Returns:
ListofStrategyImplementation
-
findByStrategyAndImplementationType
StrategyImplementation findByStrategyAndImplementationType(Strategy strategy, StrategyImplementationType implementationType) Returns theStrategyImplementationfor the givenStrategyand implementation type.- Parameters:
strategy-StrategyimplementationType-StrategyImplementationType- Returns:
StrategyImplementation
-
countByStrategy
-