kr.pe.kwonnam.hibernate4memcached.strategies.BaseCollectionMemcachedRegionAccessStrategy 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.CollectionMemcachedRegion;
import org.hibernate.cache.spi.CollectionRegion;
import org.hibernate.cache.spi.access.CollectionRegionAccessStrategy;
/**
* {@link CollectionRegionAccessStrategy}는 insert, update에는 반응하지 않으면 delete와 load에만 반응한다.
*
* @author KwonNam Son ([email protected])
* @see org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
*/
public abstract class BaseCollectionMemcachedRegionAccessStrategy extends MemcachedRegionAccessStrategy implements CollectionRegionAccessStrategy {
private CollectionMemcachedRegion collectionMemcachedRegion;
public BaseCollectionMemcachedRegionAccessStrategy(CollectionMemcachedRegion collectionMemcachedRegion) {
super(collectionMemcachedRegion);
this.collectionMemcachedRegion = collectionMemcachedRegion;
}
@Override
public CollectionRegion getRegion() {
return collectionMemcachedRegion;
}
}