public class AnnotationRepositoryMetadata extends AbstractRepositoryMetadata
RepositoryMetadata implementation inspecting the given repository interface for a
RepositoryDefinition annotation.| Constructor and Description |
|---|
AnnotationRepositoryMetadata(Class<?> repositoryInterface)
Creates a new
AnnotationRepositoryMetadata instance looking up repository types from a
RepositoryDefinition annotation. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getDomainType()
Returns the domain class the repository is declared for.
|
Class<?> |
getIdType()
Returns the id class the given class is declared for.
|
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, getReturnType, isPagingRepository, isReactiveRepositorypublic AnnotationRepositoryMetadata(Class<?> repositoryInterface)
AnnotationRepositoryMetadata instance looking up repository types from a
RepositoryDefinition annotation.repositoryInterface - must not be null.public Class<?> getIdType()
RepositoryMetadatapublic Class<?> getDomainType()
RepositoryMetadataCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.