Interface ContractStateRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ContractState,,String> org.springframework.data.jpa.repository.JpaRepository<ContractState,,String> org.springframework.data.repository.PagingAndSortingRepository<ContractState,,String> org.springframework.data.repository.query.QueryByExampleExecutor<ContractState>,org.springframework.data.repository.Repository<ContractState,String>
@Repository
public interface ContractStateRepository
extends org.springframework.data.jpa.repository.JpaRepository<ContractState,String>
Repository for queries for Contract State.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByProduct(String product) Find Contract states by Product.findAllByProductAndActive(String product, Boolean active) Find group of contract states by Product.findContractStateByGroup(String group) Find Contract State for group.findContractStateByGroupAndProduct(String group, String product) Find Contract State for group and Product.Find Contract State by Name.findContractStateByNameAndProduct(String name, String product) Find Contract State by Name and Product.Find Contract State by List of names.findContractStateByNameListAndProduct(List<String> name, String product) Find Contract State by List of names and Product.Find Contract State not in a List of names.findContractStateByNotInNameListAndProduct(List<String> name, String product) Find Contract State not in a List of names and Product.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
-
findAllByProduct
Find Contract states by Product.- Parameters:
product- contract state product.- Returns:
- ContractState list.
-
findAllByProductAndActive
Find group of contract states by Product.- Parameters:
product- contract state product.active- active state group.- Returns:
- ContractState list.
-
findContractStateByNameAndProduct
Find Contract State by Name and Product.- Parameters:
name- contract state name.product- contract state product.- Returns:
- ContractState object.
-
findContractStateByName
Find Contract State by Name.- Parameters:
name- contract state name.- Returns:
- ContractState object list.
-
findContractStateByNameListAndProduct
@Query("SELECT cs FROM ContractState cs WHERE cs.name in :name AND cs.product = :product") List<ContractState> findContractStateByNameListAndProduct(@Param("name") List<String> name, @Param("product") String product) Find Contract State by List of names and Product.- Parameters:
name- list of contract state name.product- contract state product.- Returns:
- ContractState object list.
-
findContractStateByNotInNameListAndProduct
@Query("SELECT cs FROM ContractState cs WHERE cs.name not in :name AND cs.product = :product") List<ContractState> findContractStateByNotInNameListAndProduct(@Param("name") List<String> name, @Param("product") String product) Find Contract State not in a List of names and Product.- Parameters:
name- list of contract state name.product- contract state product.- Returns:
- ContractState object list.
-
findContractStateByNameList
@Query("SELECT cs FROM ContractState cs WHERE cs.name in :name") List<ContractState> findContractStateByNameList(@Param("name") List<String> name) Find Contract State by List of names.- Parameters:
name- list of contract state name.- Returns:
- ContractState object list.
-
findContractStateByNotInNameList
@Query("SELECT cs FROM ContractState cs WHERE cs.name not in :name") List<ContractState> findContractStateByNotInNameList(@Param("name") List<String> name) Find Contract State not in a List of names.- Parameters:
name- list of contract state name.- Returns:
- ContractState object list.
-
findContractStateByGroup
@Query("SELECT cs FROM ContractState cs WHERE cs.group = :group") List<ContractState> findContractStateByGroup(@Param("group") String group) Find Contract State for group.- Parameters:
group- list of contract state name.- Returns:
- ContractState object list.
-
findContractStateByGroupAndProduct
@Query("SELECT cs FROM ContractState cs WHERE cs.group = :group AND cs.product = :product") List<ContractState> findContractStateByGroupAndProduct(@Param("group") String group, @Param("product") String product) Find Contract State for group and Product.- Parameters:
group- list of contract state name.product- contract state product.- Returns:
- ContractState object list.
-