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 Type
    Method
    Description
    findAllByDeliveryMethodNameAndDomainId(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, save

    Methods inherited from interface sk.iway.iwcm.system.datatable.spring.DomainIdRepository

    findAllByDomainId, findAllByDomainId, findFirstByIdAndDomainId

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, findAll, findAll, findAll, findOne

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods 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)