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, Alessandro Nistico
-
Constructor Summary
ConstructorDescriptionDefaultRepositoryMetadata
(Class<?> repositoryInterface) Creates a newDefaultRepositoryMetadata
for the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionReturns theTypeInformation
of the domain type the repository is declared to manage.Returns theTypeInformation
of the id type of the repository.Methods inherited from class org.springframework.data.repository.core.support.AbstractRepositoryMetadata
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, getReturnType, isPagingRepository, isReactiveRepository
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.core.RepositoryMetadata
getDomainType, getIdType
-
Constructor Details
-
DefaultRepositoryMetadata
Creates a newDefaultRepositoryMetadata
for the given repository interface.- Parameters:
repositoryInterface
- must not be null.
-
-
Method Details
-
getIdTypeInformation
Description copied from interface:RepositoryMetadata
Returns theTypeInformation
of the id type of the repository.- Returns:
- the
TypeInformation
class of the identifier of the entity managed by the repository. Will never be null.
-
getDomainTypeInformation
Description copied from interface:RepositoryMetadata
Returns theTypeInformation
of the domain type the repository is declared to manage. Will never be null.- Returns:
- the domain class the repository is handling.
-
getFragments
- Returns:
-