Package net.croz.nrich.search.repository
Class JpaSearchExecutor<T>
java.lang.Object
net.croz.nrich.search.repository.JpaSearchExecutor<T>
- All Implemented Interfaces:
net.croz.nrich.search.api.repository.SearchExecutor<T>
@Transactional(readOnly=true)
public class JpaSearchExecutor<T>
extends Object
implements net.croz.nrich.search.api.repository.SearchExecutor<T>
-
Constructor Summary
ConstructorsConstructorDescriptionJpaSearchExecutor(jakarta.persistence.EntityManager entityManager, org.springframework.data.jpa.repository.support.JpaEntityInformation<T, ?> entityInformation) -
Method Summary
Modifier and TypeMethodDescription<R,P> long <R,P> boolean <R,P> List<P> <R,P> org.springframework.data.domain.Page<P> findAll(R request, net.croz.nrich.search.api.model.SearchConfiguration<T, P, R> searchConfiguration, org.springframework.data.domain.Pageable pageable) <R,P> List<P> findAll(R request, net.croz.nrich.search.api.model.SearchConfiguration<T, P, R> searchConfiguration, org.springframework.data.domain.Sort sort) <R,P> Optional<P>
-
Constructor Details
-
JpaSearchExecutor
public JpaSearchExecutor(jakarta.persistence.EntityManager entityManager, org.springframework.data.jpa.repository.support.JpaEntityInformation<T, ?> entityInformation)
-
-
Method Details
-
findOne
public <R,P> Optional<P> findOne(R request, net.croz.nrich.search.api.model.SearchConfiguration<T, P, R> searchConfiguration) - Specified by:
findOnein interfacenet.croz.nrich.search.api.repository.SearchExecutor<T>
-
findAll
public <R,P> List<P> findAll(R request, net.croz.nrich.search.api.model.SearchConfiguration<T, P, R> searchConfiguration) - Specified by:
findAllin interfacenet.croz.nrich.search.api.repository.SearchExecutor<T>
-
findAll
public <R,P> List<P> findAll(R request, net.croz.nrich.search.api.model.SearchConfiguration<T, P, R> searchConfiguration, org.springframework.data.domain.Sort sort) - Specified by:
findAllin interfacenet.croz.nrich.search.api.repository.SearchExecutor<T>
-
findAll
public <R,P> org.springframework.data.domain.Page<P> findAll(R request, net.croz.nrich.search.api.model.SearchConfiguration<T, P, R> searchConfiguration, org.springframework.data.domain.Pageable pageable) - Specified by:
findAllin interfacenet.croz.nrich.search.api.repository.SearchExecutor<T>
-
count
public <R,P> long count(R request, net.croz.nrich.search.api.model.SearchConfiguration<T, P, R> searchConfiguration) - Specified by:
countin interfacenet.croz.nrich.search.api.repository.SearchExecutor<T>
-
exists
public <R,P> boolean exists(R request, net.croz.nrich.search.api.model.SearchConfiguration<T, P, R> searchConfiguration) - Specified by:
existsin interfacenet.croz.nrich.search.api.repository.SearchExecutor<T>
-