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. |
TypeInformation<?> |
getReturnType(Method method)
Returns the type
Method return type as it is declared in the repository. |
boolean |
isPagingRepository()
Returns whether the repository is a paging one.
|
boolean |
isReactiveRepository()
Returns whether the repository is a reactive one, i.e. if it uses reactive types in one of its methods.
|
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 TypeInformation<?> getReturnType(Method method)
RepositoryMetadataMethod return type as it is declared in the repository. Considers suspended methods and
does not unwrap component types but leaves those for further inspection.getReturnType in interface RepositoryMetadatapublic Class<?> getReturnedDomainClass(Method method)
RepositoryMetadataMethod. In contrast to RepositoryMetadata.getReturnType(Method), this
method extracts the type from Collections and Page as well.getReturnedDomainClass in interface RepositoryMetadataRepositoryMetadata.getReturnType(Method)public 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)public boolean isReactiveRepository()
RepositoryMetadataisReactiveRepository in interface RepositoryMetadataCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.