Class AnnotationRepositoryMetadata
java.lang.Object
org.springframework.data.repository.core.support.AbstractRepositoryMetadata
org.springframework.data.repository.core.support.AnnotationRepositoryMetadata
- All Implemented Interfaces:
RepositoryMetadata
RepositoryMetadata implementation inspecting the given repository interface for a
RepositoryDefinition annotation.- Author:
- Oliver Gierke, Thomas Darimont, Xeno Amess, Alessandro Nistico, Johannes Englmeier
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationRepositoryMetadata(Class<?> repositoryInterface) Creates a newAnnotationRepositoryMetadatainstance looking up repository types from aRepositoryDefinitionannotation. -
Method Summary
Modifier and TypeMethodDescriptionReturns theTypeInformationof the domain type the repository is declared to manage.Returns theTypeInformationof the id type of the repository.Methods inherited from class org.springframework.data.repository.core.support.AbstractRepositoryMetadata
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, getReturnType, isPagingRepository, isReactiveRepositoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.core.RepositoryMetadata
getDomainType, getIdType
-
Constructor Details
-
AnnotationRepositoryMetadata
Creates a newAnnotationRepositoryMetadatainstance looking up repository types from aRepositoryDefinitionannotation.- Parameters:
repositoryInterface- must not be null.
-
-
Method Details
-
getIdTypeInformation
Description copied from interface:RepositoryMetadataReturns theTypeInformationof the id type of the repository.- Returns:
- the
TypeInformationclass of the identifier of the entity managed by the repository. Will never be null.
-
getDomainTypeInformation
Description copied from interface:RepositoryMetadataReturns theTypeInformationof the domain type the repository is declared to manage. Will never be null.- Returns:
- the domain class the repository is handling.
-
getFragments
- Returns:
-