Interface DeliveryMethodsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<DeliveryMethodEntity,,Long> DomainIdRepository<DeliveryMethodEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<DeliveryMethodEntity,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<DeliveryMethodEntity>,org.springframework.data.repository.PagingAndSortingRepository<DeliveryMethodEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<DeliveryMethodEntity>,org.springframework.data.repository.Repository<DeliveryMethodEntity,Long>
@Repository
public interface DeliveryMethodsRepository
extends DomainIdRepository<DeliveryMethodEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByDeliveryMethodNameAndDomainId(String deliveryMethodName, Integer domainId) getHandledCountriesByDeliveryMethod(String deliveryMethodName, Integer domainId, Long exceptId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface sk.iway.iwcm.system.datatable.spring.DomainIdRepository
findAllByDomainId, findAllByDomainId, findFirstByIdAndDomainIdMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, findAll, findAll, findAll, findOneMethods 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
-
findAllByDeliveryMethodNameAndDomainId
List<DeliveryMethodEntity> findAllByDeliveryMethodNameAndDomainId(String deliveryMethodName, Integer domainId) -
getHandledCountriesByDeliveryMethod
@Query("SELECT dme.supportedCountriesStr FROM DeliveryMethodEntity dme WHERE dme.deliveryMethodName = :deliveryMethodName AND dme.domainId = :domainId AND dme.id != :exceptId") List<String> getHandledCountriesByDeliveryMethod(@Param("deliveryMethodName") String deliveryMethodName, @Param("domainId") Integer domainId, @Param("exceptId") Long exceptId)
-