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 |
---|---|
Class<?> |
getRepositoryInterface()
Returns the repository interface.
|
Class<?> |
getReturnedDomainClass(Method method)
Returns the domain class returned by the given
Method . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomainType, getIdType
public AbstractRepositoryMetadata(Class<?> repositoryInterface)
AbstractRepositoryMetadata
.repositoryInterface
- must not be null and must be an interface.public Class<?> getReturnedDomainClass(Method method)
RepositoryMetadata
Method
. Will extract the type from Collection
s and
Page
as well.getReturnedDomainClass
in interface RepositoryMetadata
public Class<?> getRepositoryInterface()
RepositoryMetadata
getRepositoryInterface
in interface RepositoryMetadata
Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.