congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DomainDataRegionBuildingContext.getEnforcedCacheKeysFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
getEnforcedCacheKeysFactory
method
in
org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext

Best Java code snippets using org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext.getEnforcedCacheKeysFactory (Showing top 2 results out of 315)

origin: hibernate/hibernate-orm

  public AbstractDomainDataRegion(
      DomainDataRegionConfig regionConfig,
      RegionFactory regionFactory,
      CacheKeysFactory defaultKeysFactory,
      DomainDataRegionBuildingContext buildingContext) {
//        super( regionFactory.qualify( regionConfig.getRegionName() ), regionFactory );
    super( regionConfig.getRegionName(), regionFactory );

    this.sessionFactory = buildingContext.getSessionFactory();

    if ( defaultKeysFactory == null ) {
      defaultKeysFactory = DefaultCacheKeysFactory.INSTANCE;
    }
    this.effectiveKeysFactory = buildingContext.getEnforcedCacheKeysFactory() != null
        ? buildingContext.getEnforcedCacheKeysFactory()
        : defaultKeysFactory;
  }

origin: org.hibernate.orm/hibernate-core

  public AbstractDomainDataRegion(
      DomainDataRegionConfig regionConfig,
      RegionFactory regionFactory,
      CacheKeysFactory defaultKeysFactory,
      DomainDataRegionBuildingContext buildingContext) {
//        super( regionFactory.qualify( regionConfig.getRegionName() ), regionFactory );
    super( regionConfig.getRegionName(), regionFactory );

    this.sessionFactory = buildingContext.getSessionFactory();

    if ( defaultKeysFactory == null ) {
      defaultKeysFactory = DefaultCacheKeysFactory.INSTANCE;
    }
    this.effectiveKeysFactory = buildingContext.getEnforcedCacheKeysFactory() != null
        ? buildingContext.getEnforcedCacheKeysFactory()
        : defaultKeysFactory;
  }

org.hibernate.cache.cfg.spiDomainDataRegionBuildingContextgetEnforcedCacheKeysFactory

Javadoc

The CacheKeyFactory explicitly specified as part of the bootstrap by the user, by some "container", etc. If this method returns a non-null value, it is expected that RegionFactory implementors will use to be its CacheKeyFactory and return it when asked later.

Popular methods of DomainDataRegionBuildingContext

  • getSessionFactory
    Access to the SessionFactory for which a Region is being built.

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • CodeWhisperer 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