public class DefaultRepositoryMetadata extends AbstractRepositoryMetadata
RepositoryMetadata
. Will inspect generic types of Repository
to find out
about domain and id class.Constructor and Description |
---|
DefaultRepositoryMetadata(Class<?> repositoryInterface)
Creates a new
DefaultRepositoryMetadata for the given repository interface. |
Modifier and Type | Method and Description |
---|---|
TypeInformation<?> |
getDomainTypeInformation()
Returns the
TypeInformation of the domain type the repository is declared to manage. |
TypeInformation<?> |
getIdTypeInformation()
Returns the
TypeInformation of the id type of the repository. |
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, getReturnType, isPagingRepository, isReactiveRepository
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomainType, getIdType
public DefaultRepositoryMetadata(Class<?> repositoryInterface)
DefaultRepositoryMetadata
for the given repository interface.repositoryInterface
- must not be null.public TypeInformation<?> getIdTypeInformation()
RepositoryMetadata
TypeInformation
of the id type of the repository.TypeInformation
class of the identifier of the entity managed by the repository. Will never be
null.public TypeInformation<?> getDomainTypeInformation()
RepositoryMetadata
TypeInformation
of the domain type the repository is declared to manage. Will never be
null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.