Class AotRepositoryInformation
java.lang.Object
org.springframework.data.repository.core.RepositoryInformationSupport
org.springframework.data.repository.config.AotRepositoryInformation
- All Implemented Interfaces:
RepositoryInformation, RepositoryMetadata
public class AotRepositoryInformation
extends RepositoryInformationSupport
implements RepositoryInformation
RepositoryInformation based on RepositoryMetadata collected at build time.- Since:
- 3.0
- Author:
- Christoph Strobl, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionAotRepositoryInformation(RepositoryMetadata repositoryMetadata, Class<?> repositoryBaseClass, Collection<RepositoryFragment<?>> fragments) -
Method Summary
Modifier and TypeMethodDescriptionReturns theRepositoryCompositionfor this repository.getTargetClassMethod(Method method) Returns the target class method that is backing the given method.booleanisBaseClassMethod(Method method) Returns whether the given method is logically a base class method.booleanisCustomMethod(Method method) Returns whether the given method is a custom repository method.Methods inherited from class RepositoryInformationSupport
getAlternativeDomainTypes, getCrudMethods, getDomainType, getDomainTypeInformation, getIdType, getIdTypeInformation, getMetadata, getQueryMethods, getRepositoryBaseClass, getRepositoryInterface, getReturnedDomainClass, getReturnedDomainTypeInformation, getReturnType, hasCustomMethod, hasQueryMethods, isGenericRepositoryInterface, isPagingRepository, isQueryAnnotationPresentOn, isQueryMethod, isQueryMethodCandidate, isReactiveRepositoryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RepositoryInformation
getQueryMethods, getRepositoryBaseClass, hasCustomMethod, hasQueryMethods, isQueryMethodMethods inherited from interface RepositoryMetadata
getAlternativeDomainTypes, getCrudMethods, getDomainType, getDomainTypeInformation, getIdType, getIdTypeInformation, getRepositoryInterface, getReturnedDomainClass, getReturnedDomainTypeInformation, getReturnType, isPagingRepository, isReactiveRepository
-
Constructor Details
-
AotRepositoryInformation
public AotRepositoryInformation(RepositoryMetadata repositoryMetadata, Class<?> repositoryBaseClass, Collection<RepositoryFragment<?>> fragments)
-
-
Method Details
-
getFragments
- Specified by:
getFragmentsin interfaceRepositoryMetadata- Returns:
- configured repository fragments.
- Since:
- 3.0
-
isCustomMethod
Description copied from interface:RepositoryInformationReturns whether the given method is a custom repository method.- Specified by:
isCustomMethodin interfaceRepositoryInformation- Parameters:
method-- Returns:
-
isBaseClassMethod
Description copied from interface:RepositoryInformationReturns whether the given method is logically a base class method. This also includes methods (re)declared in the repository interface that match the signatures of the base implementation.- Specified by:
isBaseClassMethodin interfaceRepositoryInformation- Parameters:
method- must not be null.- Returns:
-
getTargetClassMethod
Description copied from interface:RepositoryInformationReturns the target class method that is backing the given method. This can be necessary if a repository interface redeclares a method of the core repository interface (e.g. for transaction behavior customization). Returns the method itself if the target class does not implement the given method. Implementations need to make sure theMethodreturned can be invoked via reflection, i.e. needs to be accessible.- Specified by:
getTargetClassMethodin interfaceRepositoryInformation- Parameters:
method- must not be null.- Returns:
-
getRepositoryComposition
Description copied from interface:RepositoryInformationReturns theRepositoryCompositionfor this repository. This is used to determine the composition of the repository and its fragments.- Specified by:
getRepositoryCompositionin interfaceRepositoryInformation- Returns:
- never null.
-