Spring Data Commons

org.springframework.data.repository.core
Interface RepositoryMetadata

All Known Subinterfaces:
RepositoryInformation
All Known Implementing Classes:
AnnotationRepositoryMetadata, DefaultRepositoryMetadata

public interface RepositoryMetadata

Metadata for repository interfaces.

Author:
Oliver Gierke

Method Summary
 Class<?> getDomainClass()
          Returns the domain class the repository is declared for.
 Class<?> getIdClass()
          Returns the id class the given class is declared for.
 Class<?> getRepositoryInterface()
          Returns the repository interface.
 

Method Detail

getIdClass

Class<?> getIdClass()
Returns the id class the given class is declared for.

Parameters:
clazz -
Returns:
the id class of the entity managed by the repository for or null if none found.

getDomainClass

Class<?> getDomainClass()
Returns the domain class the repository is declared for.

Parameters:
clazz -
Returns:
the domain class the repository is handling or null if none found.

getRepositoryInterface

Class<?> getRepositoryInterface()
Returns the repository interface.

Returns:

Spring Data Commons

Copyright © 2011. All Rights Reserved.