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. |
default Class<?> |
getDomainType()
Returns the raw domain class the repository is declared for.
|
TypeInformation<?> |
getDomainTypeInformation()
Returns the
TypeInformationof the domain type the repository is declared to manage. |
default Class<?> |
getIdType()
Returns the raw id class the given class is declared for.
|
TypeInformation<?> |
getIdTypeInformation()
Returns the
TypeInformation of the id type of the repository. |
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.
|
default Class<?> getIdType()
default Class<?> getDomainType()
TypeInformation<?> getIdTypeInformation()
TypeInformation of the id type of the repository.TypeInformation class of the identifier of the entity managed by the repository. Will never be
null.TypeInformation<?> getDomainTypeInformation()
TypeInformationof the domain type the repository is declared to manage. Will never be
null.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–2023 Pivotal Software, Inc.. All rights reserved.