Package org.marketcetera.strategy.dao
Interface StrategyInstanceDao
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PersistentStrategyInstance,Long>,org.springframework.data.jpa.repository.JpaRepository<PersistentStrategyInstance,Long>,org.springframework.data.repository.PagingAndSortingRepository<PersistentStrategyInstance,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<PersistentStrategyInstance>,org.springframework.data.querydsl.QuerydslPredicateExecutor<PersistentStrategyInstance>,org.springframework.data.repository.Repository<PersistentStrategyInstance,Long>
public interface StrategyInstanceDao extends org.springframework.data.jpa.repository.JpaRepository<PersistentStrategyInstance,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<PersistentStrategyInstance>
Identifies a unique strategy instance.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<PersistentStrategyInstance>findAllByStatusIn(Set<StrategyStatus> inStatus)Find the strategy instances with status values in the given values.Optional<PersistentStrategyInstance>findByName(String inName)Find the strategy instance with the given name, if it exists.Optional<PersistentStrategyInstance>findByNonce(String inNonce)Find the strategy instance with the given nonce, if it exists.-
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
-
-
-
-
Method Detail
-
findByName
Optional<PersistentStrategyInstance> findByName(String inName)
Find the strategy instance with the given name, if it exists.- Parameters:
inName- aStringvalue- Returns:
- an
Optional<PersistentStrategyInstance>value
-
findByNonce
Optional<PersistentStrategyInstance> findByNonce(String inNonce)
Find the strategy instance with the given nonce, if it exists.- Parameters:
inNonce- aStringvalue- Returns:
- an
Optional<PersistentStrategyInstance>value
-
findAllByStatusIn
Collection<PersistentStrategyInstance> findAllByStatusIn(Set<StrategyStatus> inStatus)
Find the strategy instances with status values in the given values.- Parameters:
inStatus- aSet<StrategyStatus>value- Returns:
- a
Collection<PersistentStrategyInstance>value
-
-