org.springframework.data.repository.core.support
Class AbstractRepositoryMetadata
java.lang.Object
org.springframework.data.repository.core.support.AbstractRepositoryMetadata
- All Implemented Interfaces:
- RepositoryMetadata
- Direct Known Subclasses:
- AnnotationRepositoryMetadata, DefaultRepositoryMetadata
public abstract class AbstractRepositoryMetadata
- extends Object
- implements RepositoryMetadata
Base class for RepositoryMetadata
implementations.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRepositoryMetadata
public AbstractRepositoryMetadata(Class<?> repositoryInterface)
- Creates a new
AbstractRepositoryMetadata
.
- Parameters:
repositoryInterface
- must not be null and must be an interface.
getReturnedDomainClass
public Class<?> getReturnedDomainClass(Method method)
- Description copied from interface:
RepositoryMetadata
- Returns the domain class returned by the given
Method
. Will extract the type from Collection
s and
Page
as well.
- Specified by:
getReturnedDomainClass
in interface RepositoryMetadata
- Returns:
Copyright © 2012. All Rights Reserved.