Class EclipseStoreRepositoryFactory

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
software.xdev.spring.data.eclipse.store.repository.support.EclipseStoreRepositoryFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware

public class EclipseStoreRepositoryFactory extends org.springframework.data.repository.core.support.RepositoryFactorySupport
Creates the correct repository instance for repository-interfaces.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EclipseStoreRepositoryFactory(EclipseStoreStorage storage, org.springframework.transaction.PlatformTransactionManager transactionManager, jakarta.validation.Validator validator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T, ID> org.springframework.data.repository.core.EntityInformation<T,ID>
    getEntityInformation(Class<T> domainClass)
     
    protected Optional<org.springframework.data.repository.query.QueryLookupStrategy>
    getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
     
    <T> T
    getRepository(Class<T> repositoryInterface, org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments fragments)
     
    protected Class<?>
    getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
     
    protected org.springframework.data.repository.core.RepositoryInformation
    getRepositoryInformation(org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments fragments)
     
    protected Object
    getTargetRepository(org.springframework.data.repository.core.RepositoryInformation metadata)
     

    Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport

    addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepositoryFragments, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EclipseStoreRepositoryFactory

      public EclipseStoreRepositoryFactory(EclipseStoreStorage storage, org.springframework.transaction.PlatformTransactionManager transactionManager, jakarta.validation.Validator validator)
  • Method Details

    • getEntityInformation

      @Nonnull public <T, ID> org.springframework.data.repository.core.EntityInformation<T,ID> getEntityInformation(@Nonnull Class<T> domainClass)
      Specified by:
      getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getQueryLookupStrategy

      @Nonnull protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(@Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, @Nonnull org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
      Overrides:
      getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getTargetRepository

      @Nonnull protected Object getTargetRepository(@Nonnull org.springframework.data.repository.core.RepositoryInformation metadata)
      Specified by:
      getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getRepositoryBaseClass

      @Nonnull protected Class<?> getRepositoryBaseClass(@Nonnull org.springframework.data.repository.core.RepositoryMetadata metadata)
      Specified by:
      getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getRepositoryInformation

      @Nonnull protected org.springframework.data.repository.core.RepositoryInformation getRepositoryInformation(@Nonnull org.springframework.data.repository.core.RepositoryMetadata metadata, @Nonnull org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments fragments)
      Overrides:
      getRepositoryInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupport
    • getRepository

      @Nonnull public <T> T getRepository(@Nonnull Class<T> repositoryInterface, @Nonnull org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments fragments)
      Overrides:
      getRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupport