本文整理了Java中org.hibernate.cfg.Settings.getCacheRegionPrefix()
方法的一些代码示例,展示了Settings.getCacheRegionPrefix()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Settings.getCacheRegionPrefix()
方法的具体详情如下:
包路径:org.hibernate.cfg.Settings
类名称:Settings
方法名:getCacheRegionPrefix
暂无
代码示例来源:origin: kr.pe.kwonnam.hibernate4memcached/hibernate4-memcached-core
@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);
}
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
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 );
}
代码示例来源:origin: hibernate/hibernate
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);
}
代码示例来源:origin: hibernate/hibernate
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;
}
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
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;
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
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"})
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
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;
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
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;
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
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"})
代码示例来源:origin: hibernate/hibernate
String prefix = settings.getCacheRegionPrefix();
if ( prefix!=null ) regionName = prefix + '.' + regionName;
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
String prefix = settings.getCacheRegionPrefix();
if ( prefix!=null ) regionName = prefix + '.' + regionName;
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
final String cacheRegionPrefix = settings.getCacheRegionPrefix() == null ? "" : settings.getCacheRegionPrefix() + ".";
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
final String cacheRegionPrefix = settings.getCacheRegionPrefix() == null ? "" : settings.getCacheRegionPrefix() + ".";
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
if ( settings.getCacheRegionPrefix() != null) {
stringBuilder
.append( settings.getCacheRegionPrefix() )
.append( '.' );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
if ( settings.getCacheRegionPrefix() != null) {
stringBuilder
.append( settings.getCacheRegionPrefix() )
.append( '.' );
内容来源于网络,如有侵权,请联系作者删除!