@Override public void init() { String cacheRegionPrefix = settings.getCacheRegionPrefix() == null ? "" : settings.getCacheRegionPrefix() + "."; cacheNamespace = new CacheNamespace(cacheRegionPrefix + HibernateCacheTimestamperMemcachedImpl.class .getSimpleName(), false); log.debug("hibernate cache timestamper memcached implementation linitialized. CacheNamespace : {}", cacheNamespace); }
public UpdateTimestampsCache(Settings settings, Properties props) throws HibernateException { String prefix = settings.getCacheRegionPrefix(); regionName = prefix == null ? REGION_NAME : prefix + '.' + REGION_NAME; log.info( "starting update timestamps cache at region: " + regionName ); this.updateTimestamps = settings.getCacheProvider().buildCache( regionName, props ); }
public UpdateTimestampsCache(Settings settings, Properties props) throws HibernateException { String prefix = settings.getCacheRegionPrefix(); regionName = prefix==null ? REGION_NAME : prefix + '.' + REGION_NAME; log.info("starting update timestamps cache at region: " + regionName); this.updateTimestamps = settings.getCacheProvider().buildCache(regionName, props); }
public StandardQueryCache( final Settings settings, final Properties props, final UpdateTimestampsCache updateTimestampsCache, String regionName) throws HibernateException { if (regionName==null) regionName = StandardQueryCache.class.getName(); String prefix = settings.getCacheRegionPrefix(); if (prefix!=null) regionName = prefix + '.' + regionName; log.info("starting query cache at region: " + regionName); this.queryCache = settings.getCacheProvider().buildCache(regionName, props); this.updateTimestampsCache = updateTimestampsCache; this.regionName = regionName; }
public StandardQueryCache( final Settings settings, final Properties props, final UpdateTimestampsCache updateTimestampsCache, String regionName) throws HibernateException { if ( regionName == null ) { regionName = StandardQueryCache.class.getName(); } String prefix = settings.getCacheRegionPrefix(); if ( prefix != null ) { regionName = prefix + '.' + regionName; } log.info( "starting query cache at region: " + regionName ); this.queryCache = settings.getCacheProvider().buildCache(regionName, props); this.updateTimestampsCache = updateTimestampsCache; this.regionName = regionName; }
public UpdateTimestampsCache(Settings settings, Properties props, final SessionFactoryImplementor factory) throws HibernateException { this.factory = factory; String prefix = settings.getCacheRegionPrefix(); String regionName = prefix == null ? REGION_NAME : prefix + '.' + REGION_NAME; LOG.startingUpdateTimestampsCache( regionName ); this.region = settings.getRegionFactory().buildTimestampsRegion( regionName, props ); } @SuppressWarnings({"UnusedDeclaration"})
public StandardQueryCache( final Settings settings, final Properties props, final UpdateTimestampsCache updateTimestampsCache, String regionName) throws HibernateException { if ( regionName == null ) { regionName = StandardQueryCache.class.getName(); } String prefix = settings.getCacheRegionPrefix(); if ( prefix != null ) { regionName = prefix + '.' + regionName; } LOG.startingQueryCache( regionName ); this.cacheRegion = settings.getRegionFactory().buildQueryResultsRegion( regionName, props ); this.updateTimestampsCache = updateTimestampsCache; }
public StandardQueryCache( final Settings settings, final Properties props, final UpdateTimestampsCache updateTimestampsCache, String regionName) throws HibernateException { if ( regionName == null ) { regionName = StandardQueryCache.class.getName(); } String prefix = settings.getCacheRegionPrefix(); if ( prefix != null ) { regionName = prefix + '.' + regionName; } LOG.startingQueryCache( regionName ); this.cacheRegion = settings.getRegionFactory().buildQueryResultsRegion( regionName, props ); this.updateTimestampsCache = updateTimestampsCache; }
public UpdateTimestampsCache(Settings settings, Properties props, final SessionFactoryImplementor factory) throws HibernateException { this.factory = factory; String prefix = settings.getCacheRegionPrefix(); String regionName = prefix == null ? REGION_NAME : prefix + '.' + REGION_NAME; LOG.startingUpdateTimestampsCache( regionName ); this.region = settings.getRegionFactory().buildTimestampsRegion( regionName, props ); } @SuppressWarnings({"UnusedDeclaration"})
String prefix = settings.getCacheRegionPrefix(); if ( prefix!=null ) regionName = prefix + '.' + regionName;
String prefix = settings.getCacheRegionPrefix(); if ( prefix!=null ) regionName = prefix + '.' + regionName;
final String cacheRegionPrefix = settings.getCacheRegionPrefix() == null ? "" : settings.getCacheRegionPrefix() + ".";
final String cacheRegionPrefix = settings.getCacheRegionPrefix() == null ? "" : settings.getCacheRegionPrefix() + ".";
if ( settings.getCacheRegionPrefix() != null) { stringBuilder .append( settings.getCacheRegionPrefix() ) .append( '.' );
if ( settings.getCacheRegionPrefix() != null) { stringBuilder .append( settings.getCacheRegionPrefix() ) .append( '.' );