Codota Logo
DomainDataRegionConfig.getEntityCaching
Code IndexAdd Codota to your IDE (free)

How to use
getEntityCaching
method
in
org.hibernate.cache.cfg.spi.DomainDataRegionConfig

Best Java code snippets using org.hibernate.cache.cfg.spi.DomainDataRegionConfig.getEntityCaching (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

private Map<NavigableRole, EntityDataAccess> generateEntityDataAccessMap(
    DomainDataRegionConfig regionConfig) {
  if ( regionConfig.getEntityCaching().isEmpty() ) {
    return Collections.emptyMap();
  }
  final Map<NavigableRole, EntityDataAccess> accessMap = new ConcurrentHashMap<>();
  for ( EntityDataCachingConfig entityAccessConfig : regionConfig.getEntityCaching() ) {
    accessMap.computeIfAbsent(
        entityAccessConfig.getNavigableRole(),
        hierarchy -> generateEntityAccess( entityAccessConfig )
    );
  }
  return Collections.unmodifiableMap( accessMap );
}
origin: redisson/redisson

@Override
protected DomainDataStorageAccess createDomainDataStorageAccess(DomainDataRegionConfig regionConfig,
    DomainDataRegionBuildingContext buildingContext) {
  String defaultKey = null;
  if (!regionConfig.getCollectionCaching().isEmpty()) {
    defaultKey = COLLECTION_DEF;
  } else if (!regionConfig.getEntityCaching().isEmpty()) {
    defaultKey = ENTITY_DEF;
  } else if (!regionConfig.getNaturalIdCaching().isEmpty()) {
    defaultKey = NATURAL_ID_DEF;
  } else {
    throw new IllegalArgumentException("Unable to determine entity cache type!");
  }
  
  RMapCache<Object, Object> mapCache = getCache(regionConfig.getRegionName(), buildingContext.getSessionFactory().getProperties(), defaultKey);
  return new RedissonStorage(mapCache, buildingContext.getSessionFactory().getProperties(), defaultKey);
}

origin: hibernate/hibernate-orm

for ( EntityDataCachingConfig entityAccessConfig : regionConfig.getEntityCaching() ) {
  final EntityDataAccess entityDataAccess = entityAccessMap.put(
      entityAccessConfig.getNavigableRole(),
origin: org.hibernate.orm/hibernate-core

private Map<NavigableRole, EntityDataAccess> generateEntityDataAccessMap(
    DomainDataRegionConfig regionConfig) {
  if ( regionConfig.getEntityCaching().isEmpty() ) {
    return Collections.emptyMap();
  }
  final Map<NavigableRole, EntityDataAccess> accessMap = new ConcurrentHashMap<>();
  for ( EntityDataCachingConfig entityAccessConfig : regionConfig.getEntityCaching() ) {
    accessMap.computeIfAbsent(
        entityAccessConfig.getNavigableRole(),
        hierarchy -> generateEntityAccess( entityAccessConfig )
    );
  }
  return Collections.unmodifiableMap( accessMap );
}
origin: org.hibernate.orm/hibernate-core

private Map<NavigableRole, EntityDataAccess> generateEntityDataAccessMap(
    DomainDataRegionConfig regionConfig) {
  if ( regionConfig.getEntityCaching().isEmpty() ) {
    return Collections.emptyMap();
  }
  final Map<NavigableRole, EntityDataAccess> accessMap = new ConcurrentHashMap<>();
  for ( EntityDataCachingConfig entityAccessConfig : regionConfig.getEntityCaching() ) {
    accessMap.computeIfAbsent(
        entityAccessConfig.getNavigableRole(),
        hierarchy -> generateEntityAccess( entityAccessConfig )
    );
  }
  return Collections.unmodifiableMap( accessMap );
}
origin: org.hibernate.orm/hibernate-core

for ( EntityDataCachingConfig entityAccessConfig : regionConfig.getEntityCaching() ) {
  final EntityDataAccess entityDataAccess = entityAccessMap.put(
      entityAccessConfig.getNavigableRole(),
org.hibernate.cache.cfg.spiDomainDataRegionConfiggetEntityCaching

Javadoc

Retrieve the list of all entity to be stored in this region

Popular methods of DomainDataRegionConfig

  • getRegionName
  • getCollectionCaching
    Retrieve the list of all collection data to be stored in this region
  • getNaturalIdCaching

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • orElseThrow (Optional)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now