Class JpaStringSearchExecutor<T>

java.lang.Object
net.croz.nrich.search.repository.JpaStringSearchExecutor<T>
All Implemented Interfaces:
net.croz.nrich.search.api.repository.StringSearchExecutor<T>

@Transactional(readOnly=true) public class JpaStringSearchExecutor<T> extends Object implements net.croz.nrich.search.api.repository.StringSearchExecutor<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
    JpaStringSearchExecutor(net.croz.nrich.search.api.converter.StringToEntityPropertyMapConverter stringToEntityPropertyMapConverter, jakarta.persistence.EntityManager entityManager, org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> jpaEntityInformation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <P> long
    count(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration)
     
    <P> boolean
    exists(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration)
     
    <P> List<P>
    findAll(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration)
     
    <P> org.springframework.data.domain.Page<P>
    findAll(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration, org.springframework.data.domain.Pageable pageable)
     
    <P> List<P>
    findAll(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration, org.springframework.data.domain.Sort sort)
     
    <P> Optional<P>
    findOne(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JpaStringSearchExecutor

      public JpaStringSearchExecutor(net.croz.nrich.search.api.converter.StringToEntityPropertyMapConverter stringToEntityPropertyMapConverter, jakarta.persistence.EntityManager entityManager, org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> jpaEntityInformation)
  • Method Details

    • findOne

      public <P> Optional<P> findOne(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration)
      Specified by:
      findOne in interface net.croz.nrich.search.api.repository.StringSearchExecutor<T>
    • findAll

      public <P> List<P> findAll(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration)
      Specified by:
      findAll in interface net.croz.nrich.search.api.repository.StringSearchExecutor<T>
    • findAll

      public <P> List<P> findAll(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration, org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface net.croz.nrich.search.api.repository.StringSearchExecutor<T>
    • findAll

      public <P> org.springframework.data.domain.Page<P> findAll(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration, org.springframework.data.domain.Pageable pageable)
      Specified by:
      findAll in interface net.croz.nrich.search.api.repository.StringSearchExecutor<T>
    • count

      public <P> long count(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration)
      Specified by:
      count in interface net.croz.nrich.search.api.repository.StringSearchExecutor<T>
    • exists

      public <P> boolean exists(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T,P,Map<String,Object>> searchConfiguration)
      Specified by:
      exists in interface net.croz.nrich.search.api.repository.StringSearchExecutor<T>