Java Code Examples for org.hibernate.cache.internal.DefaultCacheKeysFactory#INSTANCE

The following examples show how to use org.hibernate.cache.internal.DefaultCacheKeysFactory#INSTANCE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractDomainDataRegion.java    From lams with GNU General Public License v2.0 6 votes vote down vote up
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;
	}
 
Example 2
Source File: RegionFactoryTemplate.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
protected CacheKeysFactory getImplicitCacheKeysFactory() {
	return DefaultCacheKeysFactory.INSTANCE;
}
 
Example 3
Source File: MemcachedRegionFactory.java    From hibernate-l2-memcached with Apache License 2.0 4 votes vote down vote up
public MemcachedRegionFactory() {
    this(DefaultCacheKeysFactory.INSTANCE);
}