org.springframework.data.repository.core.support
Class AnnotationRepositoryMetadata
java.lang.Object
org.springframework.data.repository.core.support.AbstractRepositoryMetadata
org.springframework.data.repository.core.support.AnnotationRepositoryMetadata
- All Implemented Interfaces:
- RepositoryMetadata
public class AnnotationRepositoryMetadata
- extends AbstractRepositoryMetadata
RepositoryMetadata implementation inspecting the given repository interface for a
RepositoryDefinition annotation.
- Author:
- Oliver Gierke, Thomas Darimont
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationRepositoryMetadata
public AnnotationRepositoryMetadata(Class<?> repositoryInterface)
- Creates a new
AnnotationRepositoryMetadata instance looking up repository types from a
RepositoryDefinition annotation.
- Parameters:
repositoryInterface - must not be null.
getIdType
public Class<? extends Serializable> getIdType()
- Description copied from interface:
RepositoryMetadata
- Returns the id class the given class is declared for.
- Returns:
- the id class of the entity managed by the repository for or
null if none found.
getDomainType
public Class<?> getDomainType()
- Description copied from interface:
RepositoryMetadata
- Returns the domain class the repository is declared for.
- Returns:
- the domain class the repository is handling or
null if none found.
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.