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 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 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 ); }
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 ); }
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 ); }
public org.hibernate.classic.Session openSession( final Connection connection, final boolean flushBeforeCompletionEnabled, final boolean autoCloseSessionEnabled, final ConnectionReleaseMode connectionReleaseMode) throws HibernateException { return new SessionImpl( connection, this, true, settings.getCacheProvider().nextTimestamp(), interceptor, settings.getDefaultEntityMode(), flushBeforeCompletionEnabled, autoCloseSessionEnabled, connectionReleaseMode ); }
settings.getCacheProvider().stop();
impl = settings.getCacheProvider().buildCache(regionName, properties);
impl = settings.getCacheProvider().buildCache(regionName, properties);
settings.getCacheProvider().stop();
this, true, settings.getCacheProvider().nextTimestamp(), interceptor, sessionEventListenerConfig,
settings.getCacheProvider().start( properties );
settings.getCacheProvider().start( properties );
Environment.USE_MINIMAL_PUTS, properties, settings.getCacheProvider().isMinimalPutsEnabledByDefault() ); log.info( "Optimize cache for minimal puts: " + enabledDisabled(useMinimalPuts) );
Environment.USE_MINIMAL_PUTS, properties, settings.getCacheProvider().isMinimalPutsEnabledByDefault() ); log.info( "Optimize cache for minimal puts: " + enabledDisabled(useMinimalPuts) );