kr.pe.kwonnam.hibernate4memcached.strategies.BaseNaturalIdMemcachedRegionAccessStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate4-memcached-core Show documentation
Show all versions of hibernate4-memcached-core Show documentation
hibernate4 memcached L2 cache implementation.
package kr.pe.kwonnam.hibernate4memcached.strategies;
import kr.pe.kwonnam.hibernate4memcached.regions.NaturalIdMemcachedRegion;
import org.hibernate.cache.spi.NaturalIdRegion;
import org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy;
/**
* @see org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
* @author KwonNam Son ([email protected])
*/
public abstract class BaseNaturalIdMemcachedRegionAccessStrategy extends MemcachedRegionAccessStrategy implements NaturalIdRegionAccessStrategy {
private NaturalIdMemcachedRegion naturalIdMemcachedRegion;
public BaseNaturalIdMemcachedRegionAccessStrategy(NaturalIdMemcachedRegion naturalIdMemcachedRegion) {
super(naturalIdMemcachedRegion);
this.naturalIdMemcachedRegion = naturalIdMemcachedRegion;
}
@Override
public NaturalIdRegion getRegion() {
return naturalIdMemcachedRegion;
}
}