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<? extends Serializable> |
getIdType()
Returns the id class the given class is declared for.
|
getCrudMethods, getRepositoryInterface, getReturnedDomainClass, isPagingRepositorypublic AnnotationRepositoryMetadata(Class<?> repositoryInterface)
AnnotationRepositoryMetadata instance looking up repository types from a
RepositoryDefinition annotation.repositoryInterface - must not be null.public Class<? extends Serializable> getIdType()
RepositoryMetadatanull if none found.public Class<?> getDomainType()
RepositoryMetadatanull if none found.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.