All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.pe.kwonnam.hibernate4memcached.strategies.BaseCollectionMemcachedRegionAccessStrategy Maven / Gradle / Ivy

There is a newer version: 0.7
Show newest version
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에만 반응한다.
 *
 * @see org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
 * @author KwonNam Son ([email protected])
 */
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy