Spring Data Core

org.springframework.data.repository.core.support
Class AbstractRepositoryMetadata

java.lang.Object
  extended by 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

Constructor Summary
AbstractRepositoryMetadata(Class<?> repositoryInterface)
          Creates a new AbstractRepositoryMetadata.
 
Method Summary
 Class<?> getReturnedDomainClass(Method method)
          Returns the domain class returned by the given Method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.repository.core.RepositoryMetadata
getDomainType, getIdType, getRepositoryInterface
 

Constructor Detail

AbstractRepositoryMetadata

public AbstractRepositoryMetadata(Class<?> repositoryInterface)
Creates a new AbstractRepositoryMetadata.

Parameters:
repositoryInterface - must not be null and must be an interface.
Method Detail

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 Collections and Page as well.

Specified by:
getReturnedDomainClass in interface RepositoryMetadata
Returns:

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.