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 |
|---|---|
TypeInformation<?> |
getDomainTypeInformation()
Returns the
TypeInformationof the domain type the repository is declared to manage. |
TypeInformation<?> |
getIdTypeInformation()
Returns the
TypeInformation of the id type of the repository. |
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, getReturnType, isPagingRepository, isReactiveRepositoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDomainType, getIdTypepublic AnnotationRepositoryMetadata(Class<?> repositoryInterface)
AnnotationRepositoryMetadata instance looking up repository types from a
RepositoryDefinition annotation.repositoryInterface - must not be null.public TypeInformation<?> getIdTypeInformation()
RepositoryMetadataTypeInformation of the id type of the repository.TypeInformation class of the identifier of the entity managed by the repository. Will never be
null.public TypeInformation<?> getDomainTypeInformation()
RepositoryMetadataTypeInformationof the domain type the repository is declared to manage. Will never be
null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.