Example usage for org.hibernate.cache.spi RegionFactory DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME

List of usage examples for org.hibernate.cache.spi RegionFactory DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME

Introduction

In this page you can find the example usage for org.hibernate.cache.spi RegionFactory DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME.

Prototype

String DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME

To view the source code for org.hibernate.cache.spi RegionFactory DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME.

Click Source Link

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);//w  w w .j a va 2 s. c  o m
    TimestampsRegionImpl region = createTimestampsRegion(cache, regionName);
    startRegion(region);
    return region;
}