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, Xeno Amess, Alessandro Nistico, Johannes Englmeier
  • Constructor Details

    • AnnotationRepositoryMetadata

      public AnnotationRepositoryMetadata(Class<?> repositoryInterface)
      Creates a new AnnotationRepositoryMetadata instance looking up repository types from a RepositoryDefinition annotation.
      Parameters:
      repositoryInterface - must not be null.
  • Method Details

    • getIdTypeInformation

      public TypeInformation<?> getIdTypeInformation()
      Description copied from interface: RepositoryMetadata
      Returns the TypeInformation of the id type of the repository.
      Returns:
      the TypeInformation class of the identifier of the entity managed by the repository. Will never be null.
    • getDomainTypeInformation

      public TypeInformation<?> getDomainTypeInformation()
      Description copied from interface: RepositoryMetadata
      Returns the TypeInformationof the domain type the repository is declared to manage. Will never be null.
      Returns:
      the domain class the repository is handling.
    • getFragments

      public Set<RepositoryFragment<?>> getFragments()
      Returns: