public class DefaultRepositoryMetadata extends AbstractRepositoryMetadata
RepositoryMetadata. Will inspect generic types of Repository to find out
about domain and id class.| Constructor and Description |
|---|
DefaultRepositoryMetadata(Class<?> repositoryInterface)
Creates a new
DefaultRepositoryMetadata for the given repository interface. |
| 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.
|
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, isPagingRepositorypublic DefaultRepositoryMetadata(Class<?> repositoryInterface)
DefaultRepositoryMetadata for the given repository interface.repositoryInterface - must not be null.public Class<?> getDomainType()
RepositoryMetadatanull if none found.public Class<? extends Serializable> getIdType()
RepositoryMetadatanull if none found.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.