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

项目:hazelcast-hibernate5    文件:HazelcastLocalCacheRegionFactory.java   
@Override
public NaturalIdRegion buildNaturalIdRegion(final String regionName, final Properties properties,
                                            final CacheDataDescription metadata) throws CacheException {
    final HazelcastNaturalIdRegion<LocalRegionCache> region = new HazelcastNaturalIdRegion<LocalRegionCache>(
            instance, regionName, properties, metadata, new LocalRegionCache(regionName, instance, metadata));
    cleanupService.registerCache(region.getCache());

    return region;
}
项目:hazelcast-hibernate    文件:HazelcastLocalCacheRegionFactory.java   
public NaturalIdRegion buildNaturalIdRegion(final String regionName, final Properties properties,
                                            final CacheDataDescription metadata) throws CacheException {
    final HazelcastNaturalIdRegion<LocalRegionCache> region = new HazelcastNaturalIdRegion<LocalRegionCache>(
            instance, regionName, properties, metadata, new LocalRegionCache(regionName, instance, metadata));
    cleanupService.registerCache(region.getCache());
    return region;
}
项目:ignite    文件:HibernateRegionFactory.java   
/** {@inheritDoc} */
@Override public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties props,
                                                      CacheDataDescription metadata) throws CacheException {
    return new HibernateNaturalIdRegion(this,
        regionName,
        accessStgyFactory.node(),
        accessStgyFactory.regionCache(regionName),
        metadata);
}
项目:ignite    文件:HibernateRegionFactory.java   
/** {@inheritDoc} */
@Override public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties props,
    CacheDataDescription metadata) throws CacheException {
    return new HibernateNaturalIdRegion(this,
        regionName,
        accessStgyFactory.node(),
        accessStgyFactory.regionCache(regionName),
        metadata);
}
项目:hibernate-memcached    文件:MemcachedRegionFactory.java   
@Override
public NaturalIdRegion buildNaturalIdRegion(String regionName,
        Properties properties, CacheDataDescription metadata)
        throws CacheException {
    // TODO Auto-generated method stub
    return null;
}
项目:lams    文件:NoCachingRegionFactory.java   
@Override
public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata)
        throws CacheException {
    throw new NoCacheRegionFactoryAvailableException();
}
项目:hazelcast-hibernate5    文件:HazelcastCacheRegionFactory.java   
@Override
public NaturalIdRegion buildNaturalIdRegion(final String regionName, final Properties properties,
                                            final CacheDataDescription metadata) throws CacheException {
    return new HazelcastNaturalIdRegion<IMapRegionCache>(instance, regionName, properties, metadata,
            new IMapRegionCache(regionName, instance, properties, metadata));
}
项目:hazelcast-hibernate5    文件:NaturalIdRegionAccessStrategyAdapter.java   
@Override
public NaturalIdRegion getRegion() {
    return delegate.getHazelcastRegion();
}
项目:hazelcast-hibernate5    文件:NaturalIdRegionAccessStrategyAdapter.java   
@Override
public NaturalIdRegion getRegion() {
    return delegate.getHazelcastRegion();
}
项目:hazelcast-hibernate    文件:HazelcastCacheRegionFactory.java   
public NaturalIdRegion buildNaturalIdRegion(final String regionName, final Properties properties,
                                            final CacheDataDescription metadata) throws CacheException {
    return new HazelcastNaturalIdRegion<IMapRegionCache>(instance, regionName, properties, metadata,
            new IMapRegionCache(regionName, instance, properties, metadata));
}
项目:hazelcast-hibernate    文件:NaturalIdRegionAccessStrategyAdapter.java   
public NaturalIdRegion getRegion() {
    return delegate.getHazelcastRegion();
}
项目:ignite    文件:HibernateNaturalIdRegion.java   
/** {@inheritDoc} */
@Override public NaturalIdRegion getRegion() {
    return HibernateNaturalIdRegion.this;
}
项目:ignite    文件:HibernateNaturalIdRegion.java   
/** {@inheritDoc} */
@Override public NaturalIdRegion getRegion() {
    return HibernateNaturalIdRegion.this;
}
项目:hibernate4-memcached    文件:BaseNaturalIdRegionAccessStrategy.java   
@Override
public NaturalIdRegion getRegion() {
    return region;
}
项目:hibernate4-memcached    文件:ReadWriteNaturalIdRegionAccessStrategy.java   
@Override
public NaturalIdRegion getRegion() {
    return region;
}
项目:hibernate4-memcached    文件:BaseNaturalIdMemcachedRegionAccessStrategy.java   
@Override
public NaturalIdRegion getRegion() {
    return naturalIdMemcachedRegion;
}
项目:lams    文件:NaturalIdRegionAccessStrategy.java   
/**
 * Get the wrapped naturalId cache region
 *
 * @return The underlying region
 */
public NaturalIdRegion getRegion();
项目:TayzGrid    文件:ReadWriteTayzGridNaturalIdRegionAccessStraegy.java   
/**
 * Get the wrapped naturalId cache region
 *
 * @return The underlying region
 */
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion)_region;
}
项目:TayzGrid    文件:ReadOnlyTayzGridNaturalIdRegionAccessStrategy.java   
/**
 * Get the wrapped naturalId cache region
 *
 * @return The underlying region
 */
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) _region;
}
项目:TayzGrid    文件:NonStrictReadWriteTayzGridNaturalIdRegionAccessStrategy.java   
/**
 * Get the wrapped naturalId cache region
 *
 * @return The underlying region
 */
@Override
public NaturalIdRegion getRegion() {
    return (NaturalIdRegion) _region;
}
项目:TayzGrid    文件:TayzGridRegionFactory.java   
/**
 * Build a cache region specialized for storing NaturalId to Primary Key
 * mappings.
 *
 * @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 NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException {
    return new TayzGridNaturalIdRegion(regionName, properties, metadata);
}