Class JpaManagedFileFinder
java.lang.Object
it.tidalwave.util.spi.HierarchicFinderSupport<M,F>
it.tidalwave.util.spring.jpa.JpaSpecificationFinder<ManagedFile,ManagedFileEntity,DataManager.ManagedFileFinder,ManagedFileEntityJpaRepository>
it.tidalwave.datamanager.dao.impl.jpa.JpaManagedFileFinder
- All Implemented Interfaces:
DataManager.ManagedFileFinder
,it.tidalwave.util.Finder<ManagedFile>
,it.tidalwave.util.spi.ExtendedFinderSupport<ManagedFile,
,DataManager.ManagedFileFinder> Serializable
,Cloneable
public class JpaManagedFileFinder
extends JpaSpecificationFinder<ManagedFile,ManagedFileEntity,DataManager.ManagedFileFinder,ManagedFileEntityJpaRepository>
implements DataManager.ManagedFileFinder
A specialised
Finder
for ManagedFileEntity
.- Author:
- Fabrizio Giudici
- See Also:
- Stereotype:
- Finder
-
Nested Class Summary
Nested classes/interfaces inherited from class it.tidalwave.util.spring.jpa.JpaSpecificationFinder
JpaSpecificationFinder.JpaSorter
Nested classes/interfaces inherited from interface it.tidalwave.datamanager.model.DataManager.ManagedFileFinder
DataManager.ManagedFileFinder.SortingKeys
Nested classes/interfaces inherited from interface it.tidalwave.util.Finder
it.tidalwave.util.Finder.InMemorySortCriterion<U extends Object>, it.tidalwave.util.Finder.SortCriterion, it.tidalwave.util.Finder.SortDirection
-
Field Summary
Fields inherited from class it.tidalwave.util.spring.jpa.JpaSpecificationFinder
entityToModel, repository, sorters
Fields inherited from class it.tidalwave.util.spi.HierarchicFinderSupport
firstResult, maxResults
-
Constructor Summary
ConstructorDescriptionJpaManagedFileFinder
(JpaManagedFileFinder other, Object override) The copy constructor required byHierarchicFinderSupport
.JpaManagedFileFinder
(ManagedFileEntityJpaRepository repository, Function<ManagedFileEntity, ManagedFile> transformer) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
composeSpecification
(jakarta.persistence.criteria.Root<ManagedFileEntity> root, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, List<? super jakarta.persistence.criteria.Predicate> predicates) withFingerprint
(Optional<String> fingerprint) Methods inherited from class it.tidalwave.util.spring.jpa.JpaSpecificationFinder
by, computeNeededResults, getSpecification, sort
Methods inherited from class it.tidalwave.util.spi.HierarchicFinderSupport
clone, clone, clonedWith, computeResults, count, from, getContexts, getSource, max, ofType, results, sort, toString, withContext
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.tidalwave.datamanager.model.DataManager.ManagedFileFinder
withFingerprint
Methods inherited from interface it.tidalwave.util.spi.ExtendedFinderSupport
from, max, sort, sort, withContext
Methods inherited from interface it.tidalwave.util.Finder
count, firstResult, forEach, from, from, iterator, max, max, ofType, optionalFirstResult, optionalResult, result, results, stream
-
Constructor Details
-
JpaManagedFileFinder
public JpaManagedFileFinder(@Nonnull ManagedFileEntityJpaRepository repository, @Nonnull Function<ManagedFileEntity, ManagedFile> transformer) -
JpaManagedFileFinder
The copy constructor required byHierarchicFinderSupport
.
-
-
Method Details
-
withFingerprint
@Nonnull public DataManager.ManagedFileFinder withFingerprint(@Nonnull Optional<String> fingerprint) - Specified by:
withFingerprint
in interfaceDataManager.ManagedFileFinder
-
composeSpecification
protected void composeSpecification(@Nonnull jakarta.persistence.criteria.Root<ManagedFileEntity> root, @Nonnull jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, @Nonnull List<? super jakarta.persistence.criteria.Predicate> predicates)
-