Java 类org.hibernate.cache.spi.EntityRegion 实例源码

项目:hazelcast-hibernate5    文件:HazelcastLocalCacheRegionFactory.java   
@Override
public EntityRegion buildEntityRegion(final String regionName, final Properties properties,
                                      final CacheDataDescription metadata) throws CacheException {
    final HazelcastEntityRegion<LocalRegionCache> region = new HazelcastEntityRegion<LocalRegionCache>(instance,
            regionName, properties, metadata, new LocalRegionCache(regionName, instance, metadata));
    cleanupService.registerCache(region.getCache());
    return region;
}
项目:hazelcast-hibernate    文件:HazelcastLocalCacheRegionFactory.java   
public EntityRegion buildEntityRegion(final String regionName, final Properties properties,
                                      final CacheDataDescription metadata) throws CacheException {
    final HazelcastEntityRegion<LocalRegionCache> region = new HazelcastEntityRegion<LocalRegionCache>(instance,
            regionName, properties, metadata, new LocalRegionCache(regionName, instance, metadata));
    cleanupService.registerCache(region.getCache());
    return region;
}
项目:ignite    文件:HibernateRegionFactory.java   
/** {@inheritDoc} */
@Override public EntityRegion buildEntityRegion(String regionName, Properties props, CacheDataDescription metadata)
    throws CacheException {
    return new HibernateEntityRegion(this,
        regionName,
        accessStgyFactory.node(),
        accessStgyFactory.regionCache(regionName),
        metadata);
}
项目:ignite    文件:HibernateRegionFactory.java   
/** {@inheritDoc} */
@Override public EntityRegion buildEntityRegion(String regionName, Properties props, CacheDataDescription metadata)
    throws CacheException {
    return new HibernateEntityRegion(this,
        regionName,
        accessStgyFactory.node(),
        accessStgyFactory.regionCache(regionName),
        metadata);
}
项目:lams    文件:NoCachingRegionFactory.java   
@Override
public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata)
        throws CacheException {
    throw new NoCacheRegionFactoryAvailableException();
}
项目:hazelcast-hibernate5    文件:HazelcastCacheRegionFactory.java   
@Override
public EntityRegion buildEntityRegion(final String regionName, final Properties properties,
                                      final CacheDataDescription metadata) throws CacheException {
    return new HazelcastEntityRegion<IMapRegionCache>(instance, regionName, properties, metadata,
            new IMapRegionCache(regionName, instance, properties, metadata));
}
项目:hazelcast-hibernate5    文件:EntityRegionAccessStrategyAdapter.java   
@Override
public EntityRegion getRegion() {
    return delegate.getHazelcastRegion();
}
项目:hazelcast-hibernate5    文件:EntityRegionAccessStrategyAdapter.java   
@Override
public EntityRegion getRegion() {
    return delegate.getHazelcastRegion();
}
项目:hazelcast-hibernate    文件:HazelcastCacheRegionFactory.java   
public EntityRegion buildEntityRegion(final String regionName, final Properties properties,
                                      final CacheDataDescription metadata) throws CacheException {
    return new HazelcastEntityRegion<IMapRegionCache>(instance, regionName, properties, metadata,
            new IMapRegionCache(regionName, instance, properties, metadata));
}
项目:hazelcast-hibernate    文件:EntityRegionAccessStrategyAdapter.java   
public EntityRegion getRegion() {
    return delegate.getHazelcastRegion();
}
项目:ignite    文件:HibernateEntityRegion.java   
/** {@inheritDoc} */
@Override public EntityRegion getRegion() {
    return HibernateEntityRegion.this;
}
项目:ignite    文件:HibernateEntityRegion.java   
/** {@inheritDoc} */
@Override public EntityRegion getRegion() {
    return HibernateEntityRegion.this;
}
项目:high-performance-java-persistence    文件:ReadWriteCacheConcurrencyStrategyWithLockTimeoutTest.java   
private net.sf.ehcache.Cache getCache(Class clazz) throws IllegalAccessException {
    EntityPersister entityPersister = ((SessionFactoryImplementor) sessionFactory()).getEntityPersister(clazz.getName() );
    EntityRegion region = entityPersister.getCacheAccessStrategy().getRegion();
    Field cacheField = getField(region.getClass(), "cache");
    return  (net.sf.ehcache.Cache) cacheField.get(region);
}
项目:hibernate-memcached    文件:AbstractMemcachedRegionFactory.java   
public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata)
        throws CacheException {
    return new MemcachedEntityRegion(getCache(regionName), settings, metadata, properties);
}
项目:hibernate-memcached    文件:ReadOnlyMemcachedEntityRegionAccessStrategy.java   
public EntityRegion getRegion() {
    return region;
}
项目:hibernate-memcached    文件:ReadWriteMemcachedEntityRegionAccessStrategy.java   
public EntityRegion getRegion() {
    return region;
}
项目:hibernate-memcached    文件:NonStrictReadWriteMemcachedEntityRegionAccessStrategy.java   
public EntityRegion getRegion() {
    return region;
}
项目:hibernate4-memcached    文件:ReadWriteEntityRegionAccessStrategy.java   
@Override
public EntityRegion getRegion() {
    return region;
}
项目:hibernate4-memcached    文件:BaseEntityRegionAccessStrategy.java   
@Override
public EntityRegion getRegion() {
    return region;
}
项目:hibernate4-memcached    文件:BaseEntityMemcachedRegionAccessStrategy.java   
@Override
public EntityRegion getRegion() {
    return entityMemcachedRegion;
}
项目:hibernate-master-class    文件:ReadWriteCacheConcurrencyStrategyWithLockTimeoutTest.java   
private net.sf.ehcache.Cache getCache(Class clazz) throws IllegalAccessException {
    EntityPersister entityPersister = ((SessionFactoryImplementor) getSessionFactory()).getEntityPersister(clazz.getName() );
    EntityRegion region = entityPersister.getCacheAccessStrategy().getRegion();
    Field cacheField = getField(region.getClass(), "cache");
    return  (net.sf.ehcache.Cache) cacheField.get(region);
}
项目:lams    文件:EntityRegionAccessStrategy.java   
/**
 * Get the wrapped entity cache region
 *
 * @return The underlying region
 */
public EntityRegion getRegion();
项目:TayzGrid    文件:ReadOnlyTayzGridEntityRegionAccessStrategy.java   
/**
 * Get the wrapped naturalId cache region
 *
 * @return The underlying region
 */
@Override
public EntityRegion getRegion() {
    return (EntityRegion) _region;
}
项目:TayzGrid    文件:ReadWriteTayzGridEntityRegionAccessStrategy.java   
/**
 * Get the wrapped naturalId cache region
 *
 * @return The underlying region
 */
@Override
public EntityRegion getRegion() {
    return (EntityRegion) _region;
}
项目:TayzGrid    文件:NonStrictReadWriteTayzGridEntityRegionAccessStrategy.java   
/**
 * Get the wrapped naturalId cache region
 *
 * @return The underlying region
 */
@Override
public EntityRegion getRegion() {
    return (EntityRegion) _region;
}
项目:TayzGrid    文件:TayzGridRegionFactory.java   
/**
 * Build a cache region specialized for storing entity data.
 *
 * @param regionName The name of the region.
 * @param properties Configuration properties.
 * @param metadata Information regarding the type of data to be cached
 *
 * @return The built region
 *
 * @throws CacheException Indicates problems building the region.
 */
@Override
public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException {
    return new TayzGridEntityRegion(regionName, properties, metadata);
}