Interface JpaRepositoryFragmentsContributor
- All Superinterfaces:
RepositoryFragmentsContributor
JPA-specific
RepositoryFragmentsContributor contributing fragments based on the repository.
Implementations must define a no-args constructor.
Contributed fragments may implement the JpaRepositoryConfigurationAware interface to access configuration
settings.
- Since:
- 4.0
- Author:
- Mark Paluch
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns a composedJpaRepositoryFragmentsContributorthat first applies this contributor to its inputs, and then applies theaftercontributor concatenating effectively both results.contribute(RepositoryMetadata metadata, JpaEntityInformation<?, ?> entityInformation, jakarta.persistence.EntityManager entityManager, EntityPathResolver resolver) CreatesRepositoryComposition.RepositoryFragmentsbased onRepositoryMetadatato add JPA-specific extensions.Methods inherited from interface RepositoryFragmentsContributor
describe
-
Field Details
-
DEFAULT
-
-
Method Details
-
andThen
Returns a composedJpaRepositoryFragmentsContributorthat first applies this contributor to its inputs, and then applies theaftercontributor concatenating effectively both results. If evaluation of either contributors throws an exception, it is relayed to the caller of the composed contributor.- Parameters:
after- the contributor to apply after this contributor is applied.- Returns:
- a composed contributor that first applies this contributor and then applies the
aftercontributor.
-
contribute
RepositoryComposition.RepositoryFragments contribute(RepositoryMetadata metadata, JpaEntityInformation<?, ?> entityInformation, jakarta.persistence.EntityManager entityManager, EntityPathResolver resolver) CreatesRepositoryComposition.RepositoryFragmentsbased onRepositoryMetadatato add JPA-specific extensions. Typically, adds aQuerydslJpaPredicateExecutorif the repository interface uses Querydsl.- Parameters:
metadata- repository metadata.entityInformation- must not be null.entityManager- the entity manager.resolver- resolver to translate a plain domain class into aEntityPath.- Returns:
RepositoryComposition.RepositoryFragmentsto be added to the repository.
-