Example usage for org.hibernate.cache.spi AbstractRegionFactory LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES

List of usage examples for org.hibernate.cache.spi AbstractRegionFactory LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES

Introduction

In this page you can find the example usage for org.hibernate.cache.spi AbstractRegionFactory LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES.

Prototype

List LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES

To view the source code for org.hibernate.cache.spi AbstractRegionFactory LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES.

Click Source Link

Document

Legacy names that used to be the default for the update timestamps region.

Usage

From source file:org.infinispan.hibernate.cache.v53.InfinispanRegionFactory.java

License:LGPL

@Override
public TimestampsRegion buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory) {
    log.debugf("Building timestamps cache region [%s]", regionName);

    List<String> legacyUnqualifiedNames = regionName
            .equals(RegionFactory.DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME)
                    ? AbstractRegionFactory.LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES
                    : Collections.emptyList();
    final AdvancedCache cache = getCache(qualify(regionName), regionName, DataType.TIMESTAMPS,
            legacyUnqualifiedNames);//from   ww w.j a  v a 2s  . co  m
    TimestampsRegionImpl region = createTimestampsRegion(cache, regionName);
    startRegion(region);
    return region;
}