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

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

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

origin: spring-projects/spring-data-mongodb

@Override
protected final RepositoryFactorySupport createRepositoryFactory() {
  RepositoryFactorySupport factory = getFactoryInstance(operations);
  if (createIndexesForQueryMethods) {
    factory.addQueryCreationListener(
        new IndexEnsuringQueryCreationListener(collectionName -> operations.indexOps(collectionName)));
  }
  return factory;
}
origin: spring-projects/spring-data-mongodb

@Override
protected final RepositoryFactorySupport createRepositoryFactory() {
  RepositoryFactorySupport factory = getFactoryInstance(operations);
  if (createIndexesForQueryMethods) {
    factory.addQueryCreationListener(new IndexEnsuringQueryCreationListener(
        collectionName -> IndexOperationsAdapter.blocking(operations.indexOps(collectionName))));
  }
  return factory;
}
origin: org.springframework.data/spring-data-mongodb

@Override
protected final RepositoryFactorySupport createRepositoryFactory() {
  RepositoryFactorySupport factory = getFactoryInstance(operations);
  if (createIndexesForQueryMethods) {
    factory.addQueryCreationListener(
        new IndexEnsuringQueryCreationListener(collectionName -> operations.indexOps(collectionName)));
  }
  return factory;
}
origin: org.springframework.data/spring-data-mongodb

@Override
protected final RepositoryFactorySupport createRepositoryFactory() {
  RepositoryFactorySupport factory = getFactoryInstance(operations);
  if (createIndexesForQueryMethods) {
    factory.addQueryCreationListener(new IndexEnsuringQueryCreationListener(
        collectionName -> IndexOperationsAdapter.blocking(operations.indexOps(collectionName))));
  }
  return factory;
}
org.springframework.data.repository.core.supportRepositoryFactorySupportaddQueryCreationListener

Javadoc

Adds a QueryCreationListener to the factory to plug in functionality triggered right after creation of RepositoryQuery instances.

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.
  • getRepositoryBaseClass
    Returns the base class backing the actual repository instance. Make sure #getTargetRepository(Reposi
  • getQueryLookupStrategy,
  • getRepositoryBaseClass,
  • getTargetRepository,
  • setBeanFactory,
  • setEvaluationContextProvider,
  • setRepositoryBaseClass,
  • validate,
  • 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
  • Github Copilot alternatives
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