Class DefaultRepositoryMetadata
java.lang.Object
org.springframework.data.repository.core.support.AbstractRepositoryMetadata
org.springframework.data.repository.core.support.DefaultRepositoryMetadata
- All Implemented Interfaces:
RepositoryMetadata
Default implementation of
RepositoryMetadata
. Will inspect generic types of Repository
to find out
about domain and id class.- Author:
- Oliver Gierke, Thomas Darimont
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRepositoryMetadata
(Class<?> repositoryInterface) Creates a newDefaultRepositoryMetadata
for the given repository interface. -
Method Summary
Methods inherited from class org.springframework.data.repository.core.support.AbstractRepositoryMetadata
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, getReturnType, isPagingRepository, isReactiveRepository
-
Constructor Details
-
DefaultRepositoryMetadata
Creates a newDefaultRepositoryMetadata
for the given repository interface.- Parameters:
repositoryInterface
- must not be null.
-
-
Method Details
-
getIdType
Description copied from interface:RepositoryMetadata
Returns the id class the given class is declared for.- Returns:
- the id class of the entity managed by the repository.
-
getDomainType
Description copied from interface:RepositoryMetadata
Returns the domain class the repository is declared for.- Returns:
- the domain class the repository is handling.
-