@Deprecated public class ReactiveRepositoryInformation extends Object
RepositoryInformation uses a ConversionService to check whether method arguments can be
converted for invocation of implementation methods.| Constructor and Description |
|---|
ReactiveRepositoryInformation(RepositoryMetadata metadata,
Class<?> repositoryBaseClass,
RepositoryComposition composition)
Deprecated.
Creates a new
ReactiveRepositoryInformation for the given RepositoryMetadata, repository base
class, custom implementation and ConversionService. |
| 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.
|
Streamable<Method> |
getQueryMethods()
Returns all methods considered to be query methods.
|
Class<?> |
getRepositoryBaseClass()
Returns the base class to be used to create the proxy backing instance.
|
Class<?> |
getRepositoryInterface()
Returns the repository interface.
|
Class<?> |
getReturnedDomainClass(Method method)
Returns the domain class returned by the given
Method. |
Method |
getTargetClassMethod(Method method)
Returns the target class method that is backing the given method.
|
boolean |
hasCustomMethod()
Returns if the configured repository interface has custom methods, that might have to be delegated to a custom
implementation.
|
boolean |
isBaseClassMethod(Method method)
Returns whether the given method is logically a base class method.
|
boolean |
isCustomMethod(Method method)
Returns whether the given method is a custom repository method.
|
boolean |
isPagingRepository()
Returns whether the repository is a paging one.
|
boolean |
isQueryMethod(Method method)
Returns whether the given method is a query method.
|
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, waithasQueryMethodspublic ReactiveRepositoryInformation(RepositoryMetadata metadata, Class<?> repositoryBaseClass, RepositoryComposition composition)
ReactiveRepositoryInformation for the given RepositoryMetadata, repository base
class, custom implementation and ConversionService.metadata - must not be null.repositoryBaseClass - must not be null.composition - can be null.public Class<?> getDomainType()
RepositoryMetadatagetDomainType in interface RepositoryMetadatapublic Class<?> getIdType()
RepositoryMetadatagetIdType in interface RepositoryMetadatapublic Class<?> getRepositoryBaseClass()
RepositoryInformationgetRepositoryBaseClass in interface RepositoryInformationpublic Method getTargetClassMethod(Method method)
RepositoryInformationMethod returned can be invoked via reflection, i.e. needs to be accessible.getTargetClassMethod in interface RepositoryInformationmethod - must not be null.public Streamable<Method> getQueryMethods()
RepositoryInformationgetQueryMethods in interface RepositoryInformationpublic boolean isCustomMethod(Method method)
RepositoryInformationisCustomMethod in interface RepositoryInformationpublic boolean isQueryMethod(Method method)
RepositoryInformationisQueryMethod in interface RepositoryInformationpublic boolean isBaseClassMethod(Method method)
RepositoryInformationisBaseClassMethod in interface RepositoryInformationmethod - must not be null.public boolean hasCustomMethod()
RepositoryInformationhasCustomMethod in interface RepositoryInformationpublic Class<?> getRepositoryInterface()
RepositoryMetadatagetRepositoryInterface in interface RepositoryMetadatapublic Class<?> getReturnedDomainClass(Method method)
RepositoryMetadataMethod. Will extract the type from Collections and
Page as well.getReturnedDomainClass 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–2019 Pivotal Software, Inc.. All rights reserved.