Spring Data Commons

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 java.lang.Object
implements RepositoryMetadata

Base class for RepositoryMetadata implementations.

Author:
Oliver Gierke

Constructor Summary
AbstractRepositoryMetadata(java.lang.Class<?> repositoryInterface)
          Creates a new AbstractRepositoryMetadata.
 
Method Summary
 java.lang.Class<?> getReturnedDomainClass(java.lang.reflect.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
getDomainClass, getIdClass, getRepositoryInterface
 

Constructor Detail

AbstractRepositoryMetadata

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

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

getReturnedDomainClass

public java.lang.Class<?> getReturnedDomainClass(java.lang.reflect.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 Commons

Copyright © 2012. All Rights Reserved.