Class AotRepositoryInformation

java.lang.Object
org.springframework.data.repository.core.RepositoryInformationSupport
org.springframework.data.repository.config.AotRepositoryInformation
All Implemented Interfaces:
RepositoryInformation, RepositoryMetadata

public class AotRepositoryInformation extends RepositoryInformationSupport implements RepositoryInformation
RepositoryInformation based on RepositoryMetadata collected at build time.
Since:
3.0
Author:
Christoph Strobl, Mark Paluch
  • Constructor Details

  • Method Details

    • getFragments

      public Set<RepositoryFragment<?>> getFragments()
      Specified by:
      getFragments in interface RepositoryMetadata
      Returns:
      configured repository fragments.
      Since:
      3.0
    • isCustomMethod

      public boolean isCustomMethod(Method method)
      Description copied from interface: RepositoryInformation
      Returns whether the given method is a custom repository method.
      Specified by:
      isCustomMethod in interface RepositoryInformation
      Parameters:
      method -
      Returns:
    • isBaseClassMethod

      public boolean isBaseClassMethod(Method method)
      Description copied from interface: RepositoryInformation
      Returns whether the given method is logically a base class method. This also includes methods (re)declared in the repository interface that match the signatures of the base implementation.
      Specified by:
      isBaseClassMethod in interface RepositoryInformation
      Parameters:
      method - must not be null.
      Returns:
    • getTargetClassMethod

      public Method getTargetClassMethod(Method method)
      Description copied from interface: RepositoryInformation
      Returns the target class method that is backing the given method. This can be necessary if a repository interface redeclares a method of the core repository interface (e.g. for transaction behavior customization). Returns the method itself if the target class does not implement the given method. Implementations need to make sure the Method returned can be invoked via reflection, i.e. needs to be accessible.
      Specified by:
      getTargetClassMethod in interface RepositoryInformation
      Parameters:
      method - must not be null.
      Returns:
    • getRepositoryComposition

      public RepositoryComposition getRepositoryComposition()
      Description copied from interface: RepositoryInformation
      Returns the RepositoryComposition for this repository. This is used to determine the composition of the repository and its fragments.
      Specified by:
      getRepositoryComposition in interface RepositoryInformation
      Returns:
      never null.