Tabnine Logo
RepositoryFactorySupport.getRepositoryBaseClass
Code IndexAdd Tabnine to your IDE (free)

How to use
getRepositoryBaseClass
method
in
org.springframework.data.repository.core.support.RepositoryFactorySupport

Best Java code snippets using org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryBaseClass (Showing top 2 results out of 315)

origin: org.springframework.data/spring-data-commons-core

/**
 * Returns the {@link RepositoryInformation} for the given repository interface.
 * 
 * @param repositoryInterface
 * @param customImplementationClass
 * @return
 */
protected RepositoryInformation getRepositoryInformation(RepositoryMetadata metadata,
    Class<?> customImplementationClass) {
  return new DefaultRepositoryInformation(metadata, getRepositoryBaseClass(metadata), customImplementationClass);
}
origin: apache/servicemix-bundles

/**
 * Returns the {@link RepositoryInformation} for the given repository interface.
 *
 * @param metadata
 * @param composition
 * @return
 */
private RepositoryInformation getRepositoryInformation(RepositoryMetadata metadata,
    RepositoryComposition composition) {
  RepositoryInformationCacheKey cacheKey = new RepositoryInformationCacheKey(metadata, composition);
  return repositoryInformationCache.computeIfAbsent(cacheKey, key -> {
    Class<?> baseClass = repositoryBaseClass.orElse(getRepositoryBaseClass(metadata));
    return new DefaultRepositoryInformation(metadata, baseClass, composition);
  });
}
org.springframework.data.repository.core.supportRepositoryFactorySupportgetRepositoryBaseClass

Javadoc

Returns the base class backing the actual repository instance. Make sure #getTargetRepository(RepositoryInformation) returns an instance of this class.

Popular methods of RepositoryFactorySupport

  • getRepositoryMetadata
    Returns the RepositoryMetadata for the given repository interface.
  • setBeanClassLoader
  • getRepository
    Returns a repository instance for the given interface backed by an instance providing implementation
  • getTargetRepositoryViaReflection
  • addRepositoryProxyPostProcessor
    Adds RepositoryProxyPostProcessors to the factory to allow manipulation of the ProxyFactory before t
  • getEntityInformation
    Returns the EntityInformation for the given domain class.
  • getQueryMethods
  • getRepositoryInformation
    Returns the RepositoryInformation for the given repository interface.
  • setNamedQueries
    Configures a NamedQueries instance to be handed to the QueryLookupStrategy for query creation.
  • setQueryLookupStrategyKey
    Sets the strategy of how to lookup a query to execute finders.
  • getQueryLookupStrategy
    Returns the QueryLookupStrategy for the given Key and QueryMethodEvaluationContextProvider.
  • getTargetRepository
    Create a repository instance as backing for the query proxy.
  • getQueryLookupStrategy,
  • getTargetRepository,
  • setBeanFactory,
  • setEvaluationContextProvider,
  • setRepositoryBaseClass,
  • validate,
  • addQueryCreationListener,
  • getProjectionFactory,
  • getRepositoryComposition

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now