Package net.croz.nrich.search.repository
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
ConstructorsConstructorDescriptionJpaStringSearchExecutor(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 TypeMethodDescription<P> longcount(String searchTerm, List<String> propertyToSearchList, net.croz.nrich.search.api.model.SearchConfiguration<T, P, Map<String, Object>> searchConfiguration) <P> booleanexists(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)
-
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:
findOnein interfacenet.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:
findAllin interfacenet.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:
findAllin interfacenet.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:
findAllin interfacenet.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:
countin interfacenet.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:
existsin interfacenet.croz.nrich.search.api.repository.StringSearchExecutor<T>
-