kr.pe.kwonnam.hibernate4memcached.strategies.BaseEntityMemcachedRegionAccessStrategy 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.EntityMemcachedRegion;
import org.hibernate.cache.spi.EntityRegion;
import org.hibernate.cache.spi.access.EntityRegionAccessStrategy;
/**
* @author KwonNam Son ([email protected])
* @see org.hibernate.cache.spi.access.EntityRegionAccessStrategy
*/
public abstract class BaseEntityMemcachedRegionAccessStrategy extends MemcachedRegionAccessStrategy implements EntityRegionAccessStrategy {
private EntityMemcachedRegion entityMemcachedRegion;
public BaseEntityMemcachedRegionAccessStrategy(EntityMemcachedRegion entityMemcachedRegion) {
super(entityMemcachedRegion);
this.entityMemcachedRegion = entityMemcachedRegion;
}
@Override
public EntityRegion getRegion() {
return entityMemcachedRegion;
}
}