public interface RepositoryMetadata
| 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. |
Class<?> |
getDomainType()
Returns the domain class the repository is declared for.
|
Class<?> |
getIdType()
Returns the id class the given class is declared for.
|
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.
|
Class<?> getIdType()
Class<?> getDomainType()
Class<?> getRepositoryInterface()
TypeInformation<?> getReturnType(Method method)
Method return type as it is declared in the repository. Considers suspended methods and
does not unwrap component types but leaves those for further inspection.method - Class<?> getReturnedDomainClass(Method method)
Method. In contrast to getReturnType(Method), this
method extracts the type from Collections and Page as well.method - getReturnType(Method)CrudMethods getCrudMethods()
CrudMethods meta information for the repository.boolean isPagingRepository()
Set<Class<?>> getAlternativeDomainTypes()
Repositories.getRepositoryFor(Class)boolean isReactiveRepository()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.