public abstract class AbstractRepositoryMetadata extends Object implements RepositoryMetadata
RepositoryMetadata implementations.| Constructor and Description |
|---|
AbstractRepositoryMetadata(Class<?> repositoryInterface)
Creates a new
AbstractRepositoryMetadata. |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
getAlternativeDomainTypes()
Returns the set of types the repository shall be discoverable for when trying to look up a repository by domain
type.
|
CrudMethods |
getCrudMethods()
Returns
CrudMethods meta information for the repository. |
static RepositoryMetadata |
getMetadata(Class<?> repositoryInterface)
Creates a new
RepositoryMetadata for the given repository interface. |
Class<?> |
getRepositoryInterface()
Returns the repository interface.
|
Class<?> |
getReturnedDomainClass(Method method)
Returns the domain class returned by the given
Method. |
boolean |
isPagingRepository()
Returns whether the repository is a paging one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDomainType, getIdTypepublic AbstractRepositoryMetadata(Class<?> repositoryInterface)
AbstractRepositoryMetadata.repositoryInterface - must not be null and must be an interface.public static RepositoryMetadata getMetadata(Class<?> repositoryInterface)
RepositoryMetadata for the given repository interface.repositoryInterface - must not be null.public Class<?> getReturnedDomainClass(Method method)
RepositoryMetadataMethod. Will extract the type from Collections and
Page as well.getReturnedDomainClass in interface RepositoryMetadatapublic Class<?> getRepositoryInterface()
RepositoryMetadatagetRepositoryInterface in interface RepositoryMetadatapublic CrudMethods getCrudMethods()
RepositoryMetadataCrudMethods meta information for the repository.getCrudMethods in interface RepositoryMetadatapublic boolean isPagingRepository()
RepositoryMetadataisPagingRepository in interface RepositoryMetadatapublic Set<Class<?>> getAlternativeDomainTypes()
RepositoryMetadatagetAlternativeDomainTypes in interface RepositoryMetadataRepositories.getRepositoryFor(Class)Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.