public Cache buildCache(String names, Properties props) throws CacheException { return delegate.buildCache(names, props); }
public long nextTimestamp() { return delegate.nextTimestamp(); }
public void start(Properties arg0) throws CacheException { delegate.start(arg0); }
public void stop() { CacheProvider cp = delegate; if (cp != null) { cp.stop(); } }
Environment.USE_MINIMAL_PUTS, properties, settings.getCacheProvider().isMinimalPutsEnabledByDefault() ); log.info( "Optimize cache for minimal puts: " + enabledDisabled(useMinimalPuts) );
public void stop() { delegate.stop(); }
Environment.USE_MINIMAL_PUTS, properties, settings.getCacheProvider().isMinimalPutsEnabledByDefault() ); log.info( "Optimize cache for minimal puts: " + enabledDisabled(useMinimalPuts) );
public Cache buildCache(String regionName, Properties properties) throws CacheException { return delegate.buildCache(regionName, properties); }
public long nextTimestamp() { return delegate.nextTimestamp(); }
settings.getCacheProvider().stop();
public void start(Properties props) throws CacheException { delegate = createDelegate(props); delegate.start(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 org.hibernate.classic.Session openSession(Interceptor sessionLocalInterceptor) throws HibernateException { // note that this timestamp is not correct if the connection provider // returns an older JDBC connection that was associated with a // transaction that was already begun before openSession() was called // (don't know any possible solution to this!) long timestamp = settings.getCacheProvider().nextTimestamp(); return openSession( null, true, timestamp, sessionLocalInterceptor ); }
settings.getCacheProvider().stop();
settings.getCacheProvider().start( properties );
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 org.hibernate.classic.Session openTemporarySession() throws HibernateException { return new SessionImpl( null, this, true, settings.getCacheProvider().nextTimestamp(), interceptor, settings.getDefaultEntityMode(), false, false, ConnectionReleaseMode.AFTER_STATEMENT ); }
settings.getCacheProvider().start( properties );
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 org.hibernate.classic.Session openSession(Interceptor sessionLocalInterceptor) throws HibernateException { // note that this timestamp is not correct if the connection provider // returns an older JDBC connection that was associated with a // transaction that was already begun before openSession() was called // (don't know any possible solution to this!) long timestamp = settings.getCacheProvider().nextTimestamp(); return openSession( null, true, timestamp, sessionLocalInterceptor ); }